Results 1 to 4 of 4

Thread: Goto label "safe" if ppl heal ur monsters??

  1. #1
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0

    Goto label "safe" if ppl heal ur monsters??

    if someone heals ur monsters, goto label "safe"
    and set wait for like 2 minutes OR

    if someone heals ur monsters, turn targetting off, and goto label refil. ?

    is it possible?

  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
    It is.. I have an action floating around somewhere that will create an alert if your target is healed. I guess you could have it disable targeting and goto a label too...


    PHP Code:
    local lastid 0  
    local lasthp 
    0   

    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 

  3. #3
    iBot User
    Join Date
    Jul 2012
    Posts
    246
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    7
    Rep Power
    0
    something like this then?

    PHP Code:
    local lastid 0  
    local lasthp 
    0   

    if target.id ~= lastid then  
    lastid 
    target.id  
    lasthp 
    target.hppc    
    elseif target.hppc-lasthp <= 15 then    
    lasthp 
    target.hppc   
    else gotolabel ("safe") & settargetting "no"   
    end 
    ? would it work? =P

    or

    PHP Code:
    local lastid 0  
    local lasthp 
    0   

    if target.id ~= lastid then  
    lastid 
    target.id  
    lasthp 
    target.hppc    
    elseif target.hppc-lasthp <= 15 then    
    lasthp 
    target.hppc    
    else gotolabel ("safe")
    wait 250
    settargetting 
    ("off")   
    end 

  4. #4
    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
    Coulda try that....

    But its gotolabel("safe") and settargeting("off")

    I havent tested going to a lavel from a persistent action before.

Posting Permissions

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