• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

OTClient Script to assign Hotkey

Ascuas Funkeln

Rakkedo Game
Joined
Apr 14, 2013
Messages
549
Solutions
33
Reaction score
309
Location
Poland
GitHub
AscuasFunkeln
Hello,

What i need is create in mod window button and when its pressed then script will assign (example: "F1 hotkey by text value")

Already got this
LUA:
function TEST(value)
    currentHotkeyLabel.value = "Attack"
    currentHotkeyLabel.autoSend = true
    updateHotkeyLabel(currentHotkeyLabel)
    updateHotkeyForm()
end
But this will setup hotkey on selected in hotkey window currentHotkeyLabel. And got problem, how to put information into label binded for example F1 key, instead of active "currentHotkeyLabel"?

Any help? :D
 
Back
Top