Results 1 to 2 of 2

Thread: equip stealth ring if monster is healed by player

  1. #1
    Normal User
    Join Date
    Oct 2012
    Posts
    18
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    equip stealth ring if monster is healed by player

    Is there any script that equips an stealth ring if a monster is healed by a player?
    Im having quite a problem with people trying to get me surrounded and heals my creatures...
    Would also be nice if the script removed the ring after like 1 minute?

    thx

  2. #2
    Normal User
    Join Date
    Oct 2012
    Posts
    18
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Code:
    local MESSAGES = getnewmessages("Local Chat") 
    local MESSAGES_QUANTITY = MESSAGES.count - 1 
    local MESSAGES1 = getnewmessages("Server Log")  
    local MESSAGES1_QUANTITY = MESSAGES1.count - 1  
    
    for INDEX = 0, MESSAGES_QUANTITY do 
        if (MESSAGES[MESSAGES_QUANTITY - INDEX].text:find("exura gran mas res")) then 
           if (ring == 0) then  
          moveitems("stealth ring","all","ring",1)  
       end  
    else  
       if (ring == 3049) then  
          moveitems(3049,"ring","all",1)  
       end  
    end 
    
    for INDEX = 0, MESSAGES1_QUANTITY do  
        if ((MESSAGES1[MESSAGES1_QUANTITY - INDEX].text:find("(.+) was healed by (.+) for (.+) hitpoints."))) then  
           if (ring == 0) then  
          moveitems("stealth ring","all","ring",1)  
       end  
    else  
       if (ring == 3049) then  
          moveitems(3049,"ring","all",1)  
       end    
    end
    I tried to make one myself but it wont work
    any idea why?

Posting Permissions

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