I would like to know if there is any hotkey that if certain player speaks to me the character automatically logout. I'm being hunted and it would help me.
I would like to know if there is any hotkey that if certain player speaks to me the character automatically logout. I'm being hunted and it would help me.
1- Wrong area, post in Lua > Requests
2-
Persistent
auto(200)
local CheckPlayerSaid = true
local NamePlayer = "Cachero"
local UseMessage = false --check if the player has sent any specific message
local Message = "you death" --if UseMessage checked, edit message player
local YourSections = {'Hunt'} --{'Hunt'} ... {'Floor 1', 'Floor 2'} {'Hunt', 'City'} etc...
local NameReconnect = 'Reconnect' --if use auto reconnect, write name persistent reconnect
if $connected then
if CheckPlayerSaid then
if table.find(YourSections, $wptsection) then
foreach newmessage m do
if (not UseMessage and m.sender == NamePlayer) or (UseMessage and m.sender == NamePlayer and m.content == Message) then
setsetting('Persistent/Scripts/'..NameReconnect..'/Enabled', 'no')
logout()
end
end
end
end
end
If you want Hotkey, just remove the auto(200) and put in the hotkeys.