What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Using xxx Spell when fighting Unique mob?

leeroy788

New Member
Joined
Mar 22, 2014
Messages
18
Reaction score
0
Hello,

I tried searching the forums but couldn't find what I needed. Is there a way to make it so I use a certain spell against any unique mob?

I run a leap slam primarily, but I want to use cyclone on unique mobs because of my high dmg with it. Is there anyway to go about doing this?
 
In Exile.cs, Heavy Strike is the best example of a skill that's only used on a monster of a specific rarity.

Code:
Register("Heavy Strike", ret => BestTarget.Rarity >= Rarity.Rare);

To make that only work for uniques, just change it to: Rarity.Unique.

For Cyclone, you'd change the line:

Code:
Register("Cyclone");

to

Code:
Register("Cyclone", ret => BestTarget.Rarity == Rarity.Unique);

and move it to the top of your RegisterMainAbilities function so no other skills execute first for uniques. The bot will use skills in order, so you want skills that use very specific conditions to execute first, then general ones last.
 
Thank you!! Thats what I needed. Appreciate the fast response.

+1 for pushedx getting a raise.
 
Sure thing! The Buddy owners take good care of us devs. :)
 
Back
Top