View Full Version : Hotkey to run a script
anoyn
09-04-2015, 12:11 AM
1. Press a non-tibia hotkey
2. Lua script has listeners for certain button presses
3. runs script, Example: equip magic ring or magic wall in front of a moving player etc.
Side Note:
Function to Push Player
Way to get the player data that xenobot stores with advanced info option (Vocation, Level etc)
Guild chat proxy!
anoyn
09-12-2015, 11:59 PM
~Bump - Anyone else's thoughts on this?
It would indeed be nice for some pvp applications but I wouldn't put a high priority on it.
acrozo01
09-13-2015, 11:24 AM
Nice suggestions , If you ever used elfbot , I could the same system as there , I would be awesome
anoyn
09-13-2015, 03:27 PM
This would be really easy to add without implementing it into the GUI, working the same way as labels work.
Example
registerEventListener(HOTKEY_PRESSED, "hotkeyPressed")
function hotkeyPressed( hotkey )
if (hotkey == "MOUSE_5") then
toggleMagicRing()
elseif (hotkey == "MOUSE_4" ) then
loadSettings("Autoheal", "Support")
elseif (hotkey == "MOUSE_3" ) then
loadSettings("NoHeal", "Support")
end
end
HjugO
09-13-2015, 09:13 PM
This would be really easy to add without implementing it into the GUI, working the same way as labels work.
Example
registerEventListener(HOTKEY_PRESSED, "hotkeyPressed")
function hotkeyPressed( hotkey )
if (hotkey == "MOUSE_5") then
toggleMagicRing()
elseif (hotkey == "MOUSE_4" ) then
loadSettings("Autoheal", "Support")
elseif (hotkey == "MOUSE_3" ) then
loadSettings("NoHeal", "Support")
end
end
http://forums.xenobot.net/showthread.php?612-Xeneobot-Scripting&p=4137&viewfull=1#post4137
I didn't test.
anoyn
09-13-2015, 09:32 PM
http://forums.xenobot.net/showthread.php?612-Xeneobot-Scripting&p=4137&viewfull=1#post4137
I didn't test.
Dosent seem like it was implemented.
registerEventListener(XENO_KEYDOWN, "onXenoKeyDown")
function onXenoKeyDown(keyCode, ctrlDown, shiftDown)
--function never called
print("Function called")
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.