Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Custom AI how-to
- ##
- ## Basic movement/attack routines for ranged and melee pets:
- ##
- ## Melee
- Target Distance > 1 Move Forward #Moves in melee range.
- Target Distance = 1 Attack(melee) #When in melee range, attack.
- ## Melee with shadow step and swarm
- Target Distance > 9 Move Forward #Go close enough to use Shadow Step.
- Target Distance > 1 Shadow Step #Teleport to target when not in melee range.
- Target Distance > 1 Move Forward #Go to melee range when shadow step on cooldown.
- Target Distance = 1 Swarm #Swarm when in melee range.
- Target Distance = 1 Attack(melee) #Melee attack when swarm on cooldown.
- ##
- ## Ranged
- Target Distance > 5 Move Forward #Go to maximum ranged distance allowed.
- Target Distance = 1 Move Away #Retreat when target is in melee range.
- Target Distance <= 5 Attack(ranged) #Attack target.
- Target Distance > 1 Move(forward) #Get closer to target when line of sight is obstructed(go around the corner for example).
- ## Move away directive in the above example may conflict with the last move forward, making pet go back-and-forth.
- ## Ranged with short teleport and struck out
- Target Distance > 5 Move Forward #Go to maximum ranged distance allowed.
- Self Buff != Space Retention AND #Space retention makes teleports fail.
- Target Distance = 1 Short Teleport #Use short teleport when in melee range.
- Target Distance = 1 Move Away #Retreat when target is in melee range under space retention effect.
- Target Distance <= 5 Struck Out #Struck out when in range.
- Target Distance <= 5 Attack(ranged) #Attack target when struck out on cooldown.
- Target Distance > 1 Move(forward) #Get closer to target when line of sight is obstructed(go around the corner for example).
- ##
- ## Magic
- ## is, as expected, tricky - pet can go out of mana or become silenced.
- ## obviously you can disregard the risk of silence or going out of mp and make it much simplier.
- ## Bolt spells, hybrid mage+ranged
- Target Distance > 9 Move Forward #Get within maximum bolt range.
- Self MP < 10% AND
- Target Distance > 5 Move Forward #Get in ranged attack distance when low on MP.
- Self MP < 10% Attack (ranged) #KEEP TARGET should be set to (off), attacks hostile target with ranged weapon when out of MP.
- #example of darkenss bolt check, may be used to apply other debuffs instead
- Self Buff != Silence AND
- Target Status != Blind Darkness Bolt #Keep target blinded.
- #end of example
- Self Buff != Silence (arrow spell) #KEEP TARGET should be set to (off), use spell when not silenced.
- Target Distance > 5 Move Forward #Get in ranged attack distance when silenced or cannot use spells (target not in line of sight).
- Self Buff = Silence Attack(ranged) #KEEP TARGET should be set to (off), attacks hostile target with ranged weapon when pet is silenced.
- Target Distance > 1 Move Forward #When not silenced or out of MP yet cannot use bolt spell, get closer to target.
- ## Bolt spells, hybrid lightning mage+ranged
- Target Distance > 9 Move Forward #Get within maximum bolt range.
- Self MP < 10% AND
- Target Distance > 5 Move Forward #Get in ranged attack distance when low on MP.
- Self MP < 10% Attack (ranged) #KEEP TARGET should be set to (off), attacks hostile target with ranged weapon when out of MP.
- Self Buff != Silence AND
- Target Status != Wet Water Bolt #Make sure target is made wet first, bells and quickling die from this alone.
- #No check for MP since its a cheap spell.
- Self Buff != Silence Lightning Bolt #KEEP TARGET should be set to (off), use spell when not silenced.
- Target Distance > 5 Move Forward #get in ranged attack distance when silenced or cannot use spells (target not in line of sight).
- Self Buff = Silence Attack(ranged) #KEEP TARGET should be set to (off), attacks hostile target with ranged weapon when pet is silenced.
- Target Distance > 1 Move Forward #When cannot attack, get closer.
- ## Bolt spells, pure mage
- Self Buff = Silence Move Away #KEEP TARGET should be set to (off), will move away from hostile target when silenced.
- Target Distance > 9 Move Forward #Get within maximum bolt range.
- Self MP => 10% (arrow spell) #KEEP TARGET should be set to (off), will shoot bolt when not out of mana.
- Self MP < 10% Move Away #Move around when out of mana.
- Target Distance > 1 Move Forward #When not silenced or out of MP yet cannot use bolt spell, get closer to target.
- ## Lightning/water ball spells, melee mage
- Target Distance > 9 Move Forward #Get close enough to use Shadow Step.
- Target Distance > 3 Move Forward #Get close enough to use ball spell.
- Self Mp => 10% AND
- Target Status = Wet Thunder Vortex #Use lightning ball on wet target.
- Target Status != Wet AND
- Target Distance > 1 Move Forward #if water ball below didnt hit the target, get around the corner.
- #It may still have a problem getting in range when target is already wet yet around the corner.
- #You may use Target Distance > 1 instead of > 3 instead to avoid this.
- Target Status != Wet Water Ball #Make target wet.
- Target Distance > 1 Move Forward #Get in melee range when all else fails.
- Target Distance = 1 Attack Melee #Melee attack when all else fails.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement