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

Forcing use of certain spells

bedt

New Member
Joined
Mar 11, 2014
Messages
2
Reaction score
0
Hi,

First of all, thanks for a great community.

Im trying to figure out, if it is possible to make DB use only certain equipted spells ?

For example making the bot only use spell 1 and 2, as primary attack, leaving out spell 3 and 4.

The reason, is a build im trying out is making use of mimics, that spam spells.
My problem is that the bot itself is spamming the same spells, making it run out of mana.

Thanks in advance.

//Bedt
 
Im no programmer/developer, but i tried to play around with Trinity->Combat->ABilities
What this does it, it spams my Primary Skill as long as my resource is above or equal to 21

Code:
if (CanCast(SNOPower.x1_Crusader_Phalanx3) &&  Player.PrimaryResource >= 21 && TargetUtil.AnyMobsInRange(40f, 1))
{
return new TrinityPower(SNOPower.x1_Crusader_Phalanx3, 35f, CurrentTarget.ACDGuid);
}

Then i changed my resource generator so that it only gets triggered when my resource is less than or equal to 20
Code:
if (CanCast(SNOPower.X1_Crusader_Justice) &&  Player.PrimaryResource <= 20 && TargetUtil.AnyMobsInRange(20f, 1))
{
return new TrinityPower(SNOPower.X1_Crusader_Justice, 7f, CurrentTarget.ACDGuid);
}
 
Back
Top