I created a small lem event which should work with all other tools without interfrerences.
You need lem to be installed
if not using kissassist you need Boxr installed
Tests done, working as intended now. If you copied befor this line was modified, you shall reload it. Had to add a "
Lua stop lem" at the bottom, to avoid interferences with the next lem-tic while camping.
Import the following event as "CampOnZoning" in the chapter "Condition Events"
CampOnZoning
Code:
cmV0dXJuIHsKIGxvYWQgPSB7CiAgYWx3YXlzID0gZmFsc2UsCiAgY2xhc3MgPSAiIiwKICB6b25lID0gIiIsCiB9LAogY29kZSA9ICJMUzB0UUhSNWNHVWdUWEVLTFMwdFFIUjVjR1VnU1cxSGRXa0tDbXh2WTJGc0lHMXhJRDBnY21WeGRXbHlaU2duYlhFbktRb0tiRzlqWVd3Z1puVnVZM1JwYjI0Z1UzUnZjRVJRVXlncENpQWdJQ0J0Y1M1amJXUW9KeTl6Y1hWbGJHTm9JQzl0Y1hBZ2IyNG5LUW9nSUNBZ2JYRXVaR1ZzWVhrb01UQXBDaUFnSUNCdGNTNWpiV1FvSnk5emNYVmxiR05vSUM5aWIzaHlJSEJoZFhObEp5a0tJQ0FnSUcxeExtUmxiR0Y1S0RFd0tRb2dJQ0FnZDJocGJHVWdiWEV1VkV4UExrMWxMa05oYzNScGJtY3VTVVFvS1NCa2J3b2dJQ0FnSUNBZ2JYRXVaR1ZzWVhrb01UQXdLUW9nSUNBZ1pXNWtDbVZ1WkFvS2JHOWpZV3dnWm5WdVkzUnBiMjRnVW1WemRXMWxSRkJUS0NrS0lDQWdiWEV1WTIxa0tDY3ZjM0YxWld4amFDQXZiWEZ3SUc5bVppY3BDaUFnSUcxeExtUmxiR0Y1S0RFd0tRb2dJQ0J0Y1M1amJXUW9KeTl6Y1hWbGJHTm9JQzlpYjNoeUlIVnVjR0YxYzJVbktRb2dJQ0J0Y1M1a1pXeGhlU2d4TUNrS1pXNWtDZ290TFNCMllXeHBaQ0JqYjI1a2FYUnBiMjV6Q2kwdEpIdGFiMjVsTGtsRWZTRTlNVFV4SUNZbUlDUjdXbTl1WlM1SlJIMG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SUNBZ0lDQWdJQ0FnSUNBZ0lDQWdJQzB0SUdoaGRtVWdkRzhnYzNSdmNDQk1kV0VnZEc4Z2NISmxkbVZ1ZENCdVpYaDBJR1YyWlc1MExYUnBZeUIwYnlCcGJuUmxjbVpsY21VZ2QybDBhQ0JqWVcxd0NpQWdJQ0J0Y1M1a1pXeGhlU2d4TlRBcENtVnVaQW9LY21WMGRYSnVJSHR2Ym14dllXUTliMjVmYkc5aFpDd2dZMjl1WkdaMWJtTTlZMjl1WkdsMGFXOXVMQ0JoWTNScGIyNW1kVzVqUFdGamRHbHZibjA9IiwKIGNhdGVnb3J5ID0gImdlbmVyYWwiLAogdHlwZSA9ICJjb25kaXRpb25zIiwKIG5hbWUgPSAiQ2FtcE9uWm9uaW5nIiwKfQ==
Usually this Event should be disabled.
At the Moment you activate the Event, it will save the actual ZoneId for comparison.
As soon as the ZoneId changes (indicates that you changed Zone), it will use "/mqp on " or /Boxr Pause" to hold all automation.
After that it will issue the command "/camp".
here the full source-code of the event
CampOnZoning
Code:
---@type Mq
---@type ImGui
local mq = require('mq')
local function StopDPS()
mq.cmd('/squelch /mqp on')
mq.delay(10)
mq.cmd('/squelch /boxr pause')
mq.delay(10)
while mq.TLO.Me.Casting.ID() do
mq.delay(100)
end
end
local function ResumeDPS()
mq.cmd('/squelch /mqp off')
mq.delay(10)
mq.cmd('/squelch /boxr unpause')
mq.delay(10)
end
-- valid conditions
--${Zone.ID}!=151 && ${Zone.ID}!=202 && ${Zone.ID}!=344 && ${Zone.ID}!=345 && ${Me.CombatState.NotEqual[COMBAT]} && !${Me.Moving} && !${Navigation.Active}
-- && !${Me.Invis} && !${Me.Casting.ID} && ${Me.PctMana}<90 && ${Me.PctHPs} >= 75
local ActualZoneId = 0
local function on_load()
ActualZoneId = mq.TLO.Zone.ID()
end
local function condition()
if mq.TLO.Zone.ID() ~= ActualZoneId then return true end -- not zoned yet
return false
end
local function action()
StopDPS()
mq.delay(10)
mq.cmd('/camp')
mq.delay(10)
mq.cmd('/Lua stop lem') -- have to stop Lua to prevent next event-tic to interfere with camp
mq.delay(150)
end
return {onload=on_load, condfunc=condition, actionfunc=action}
The main job is done at the function action()
possible variations of the line: mq.cmd('/camp')
mq.cmd('/camp desktop') -- you guess it, don't you
mq.cmd('/dgga /camp') -- if you activate the event on all chars, as soon as the first leaves the zone he will call whole group to camp (when using dannet)
possible variation of line: mq.cmd('/
Lua stop lem')
mq.cmd('/lem event CampOnZoning off') -- works only, if you named this event exactly "CampOnZoning" or else modify the name in this line to the name you chosed
Possible unwanted feature:
if you die and spawn elsewhere, the command "/camp" will be issued as well ... but you have 10 seconds to interrupt it (and issue "/
Lua run lem" to reactivate lem").