Results 1 to 2 of 2

Thread: Logout if 'Bank is robbed'

  1. #1
    Normal User d3nnis's Avatar
    Join Date
    Jun 2012
    Location
    Germany
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5

    Logout if 'Bank is robbed'

    When my character reached the bank and tryed to deposit and withdraw he got this message...

    Code:
    Naji: HELP! We have been robbed! I can't give you any gold until the robber has been brought to justice or we have received a compensation from the king. I think the robbers ran towards the Ancient Temple.
    Now I'm asking for a script that alerts or logs out the character when this message appears.
    Anyone can help?

  2. #2
    Normal User Straxor's Avatar
    Join Date
    Sep 2012
    Location
    Sweden
    Posts
    430
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    46
    Rep Power
    5
    PHP Code:
    local MESSAGES getnewmessages("NPCs"
    local MESSAGES_COUNT MESSAGES.count for INDEX 0MESSAGES_COUNT
    do
     if (
    MESSAGES[MESSAGES_COUNT INDEX].text:find("HELP! We have been robbed! I can't give you any gold until the robber has been brought to justice or we have received a compensation from the king. I think the robbers ran towards the Ancient Temple.")) 
    then 
    setcavebot
    ("off")
     
    wait(500010000
    closetibia() 
    end 
    end 

    Name Vocation Level
    Banuta -1 RP 190
    Tempel of Equilibrium Chosens RP 180
    Hive Surface/Towers EK 170


Posting Permissions

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