Results 1 to 4 of 4

Thread: Anti heal monsters.Need help with action.

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

    Anti heal monsters.Need help with action.

    I need help with action if i am attacking monster more than x time then play alert.

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    PHP Code:
    local lastid 0
    local lasthp 


    if target.id ~= lastid then
    lastid 
    target.id
    lasthp 
    target.hppc  
    elseif target.hppc-lasthp <= 15 then  
    lasthp 
    target.hppc  
    else playsound("monster.wav")  
    end 
    This will play an alarm if a monster you are attacking heals or is healed.

    I haven't tested it, I only converted it from Neobot to Ibot. Let me know if it works.

    I guess this should work if the monster(s) you are hunting cant heal themselves....

  3. #3
    Normal User
    Join Date
    Jul 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I need it for yalahar giant spiders, here it will be good,but it isn't it what i need. Anyway thank you.

  4. #4
    Normal User
    Join Date
    Apr 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I tested. it didnt work

Posting Permissions

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