I know literally nothing about gearswap, but when I first tried this I had the same issue, at least when using motes based gearswaps.
What I found to work in both the job_lua and/or the character-globals is the following:
Code
function job_self_command(cmdParams, eventArgs)
if cmdParams[1]:lower() == 'warp' then
send_command('input /equip ring2 "Warp Ring"; wait 10;input /item "Warp Ring" <me>')
add_to_chat(155, 'Warping')
elseif cmdParams[1]:lower() == 'mount' then
send_command('input /ma "Crawler" <me>')
add_to_chat(153, 'Giddy-Up!')
end
end
The following seemed to only work in non motes LUA for me, whenever I used it in a motes-include one it would break things.
Code
function self_command(command)
if command =='' then
send_command('')
end
end
however the following seems to work fine in motes based luas when put in either the job gearswap or the character globals without issue so far
Code
function job_self_command(cmdParams, eventArgs)
if cmdParams[1]:lower() == 'warp' then
send_command ('')
end
end