Results 1 to 2 of 2

Thread: Sword ring and a weird action!

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    13
    Rep Power
    5

    Sword ring and a weird action!

    I need one action that equips sword ring when x monster on screen, but then remove if the monster is not on screen.

    Then I need an action that says for example "Hi" when get the message "loot of a cave rat".

    If someone could help me that would be awesome!

    Thanks in advance.
    HI CAN I USE THIS??????

  2. #2
    Normal User
    Join Date
    Jun 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    13
    Rep Power
    5
    Code:
    local LOCAL_CHAT_MESSAGES = getnewmessages("Server Log") 
    local LOCAL_CHAT_MESSAGES_QUANTITY = LOCAL_CHAT_MESSAGES.count - 1 
    local wptid 
    
    for INDEX = 0, LOCAL_CHAT_MESSAGES_QUANTITY do 
        if (LOCAL_CHAT_MESSAGES[LOCAL_CHAT_MESSAGES_QUANTITY - INDEX].text:find("loot of a cave rat:")) then 
            wait(500)
            say('hiho')
            wait(100)
    end 
    end

    That one does not work haha I'm guessing that I should have something before loot and after rat:, but I'm not sure what haha!
    HI CAN I USE THIS??????

Posting Permissions

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