Signup Now
Results 1 to 2 of 2
  1. #1
    Free User
    Join Date
    Mar 2017
    Posts
    1
    Reputation
    10
    Rep Power
    0

    Talking Help Make A Hotkey

    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.

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by rafaelofdaru View Post
    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.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •