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

Someone help me with hydras

jkim1215

New Member
Joined
Apr 16, 2014
Messages
5
Reaction score
0
I am using 2 hydras when i am running the ghom profile, but it casts a hydra every other time i use a magic missile... is there a way to change the wizard.cs to cast only 2 hydras?
 
can someone provide info how to force usage of 2 hydras at a time?
 
Bump - need this aswell.

here's the code that needs revamp
// Hydra
if (!UseOOCBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_Hydra, CombatBase.CanCastFlags.NoTimer) &&
LastPowerUsed != SNOPower.Wizard_Hydra &&
(TargetUtil.AnyElitesInRange(15, 1) || TargetUtil.AnyMobsInRange(15, 4) || (CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= 15f)) &&
Player.PrimaryResource >= 15)
{
// For distant monsters, try to target a little bit in-front of them (as they run towards us), if it's not a treasure goblin
float fExtraDistance = 0f;
if (CurrentTarget.CentreDistance > 17f && !CurrentTarget.IsTreasureGoblin)
{
fExtraDistance = CurrentTarget.CentreDistance - 17f;
if (fExtraDistance > 5f)
fExtraDistance = 5f;
if (CurrentTarget.CentreDistance - fExtraDistance < 15f)
fExtraDistance -= 2;
}
Vector3 vNewTarget = MathEx.CalculatePointFrom(CurrentTarget.Position, Player.Position, CurrentTarget.CentreDistance - fExtraDistance);
return new TrinityPower(SNOPower.Wizard_Hydra, 30f, vNewTarget, CurrentWorldDynamicId, -1, 1, 2, WAIT_FOR_ANIM);
}

Atm it uses the rotation: Hydra-Magic missile-Hydra-Magic Missile-Hydra-Magic Missile-Hydra, and so on..
If someone could make it use hydras every 15 sec instead, that would be very appreciated :)
 
Wizard.cs, remove the NoTimer from the Hydra If statement, should then use Hydra every 12sec or whatever you use as spell delay timer.
 
can you upload the code please?

You simply change this:

if (!UseOOCBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_Hydra, CombatBase.CanCastFlags.NoTimer) &&

to this:

if (!UseOOCBuff && !Player.IsIncapacitated && CombatBase.CanCast(SNOPower.Wizard_Hydra) &&
 
Back
Top