Signup Now
Results 1 to 3 of 3
  1. #1
    Free User
    Join Date
    Jun 2014
    Posts
    11
    Reputation
    10
    Rep Power
    0

    Lightbulb Persistente for changing stance based on current monter

    Hi,
    Im training with high guard lizards on my paladin, and i need Persistente script for changing stance if a monster is below 50% and changing back when it above 90%.
    Thats because none of the other training scripts suits this function.

    Thanks

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,423
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by zeyuri View Post
    Hi,
    Im training with high guard lizards on my paladin, and i need Persistente script for changing stance if a monster is below 50% and changing back when it above 90%.
    Thats because none of the other training scripts suits this function.

    Thanks
    I did not test.

    --Trainer
    auto(1000)
    local Trainer = true
    local monster = getcreature('Lizard High Guard')
    local CheckRangeMonster = true
    local RangeMonster = 1
    local HpLarger = random(80,90) --percentage, hp larger lizard, attack
    local HpLess = random(40,50) --percentage, hp less lizard, stop attack

    if $connected then
    if Trainer then
    if CheckRangeMonster then
    if monster.dist <= RangeMonster then
    if monster.hppc >= HpLarger then
    attack(monster.name)
    elseif monster.hppc <= HpLess then
    stopattack()
    end
    end
    else
    if monster.hppc >= HpLarger then
    attack(monster.name)
    elseif monster.hppc <= HpLess then
    stopattack()
    end
    end
    end
    end

  3. #3
    Free User
    Join Date
    Jun 2014
    Posts
    11
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Cisco View Post
    I did not test.

    --Trainer
    auto(1000)
    local Trainer = true
    local monster = getcreature('Lizard High Guard')
    local CheckRangeMonster = true
    local RangeMonster = 1
    local HpLarger = random(80,90) --percentage, hp larger lizard, attack
    local HpLess = random(40,50) --percentage, hp less lizard, stop attack

    if $connected then
    if Trainer then
    if CheckRangeMonster then
    if monster.dist <= RangeMonster then
    if monster.hppc >= HpLarger then
    attack(monster.name)
    elseif monster.hppc <= HpLess then
    stopattack()
    end
    end
    else
    if monster.hppc >= HpLarger then
    attack(monster.name)
    elseif monster.hppc <= HpLess then
    stopattack()
    end
    end
    end
    end
    thanks, dude, worked nicely

 

 

Tags for this Thread

Posting Permissions

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