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

Changing how Trinity uses Mystic Ally?

Nescio

New Member
Joined
May 25, 2013
Messages
21
Reaction score
0
Hi,

Is there a way to make the bot spam Mystic Air Ally whenever its spirit is less than X even without monsters around? I tried changing the values in monk.cs but I didn't get it to work (I'm not familiar with DB/Trinity commands).

Currently I have:
Code:
            // Mystic ally
            if (CombatBase.CanCast(SNOPower.X1_Monk_MysticAlly_v2) && Player.PrimaryResource <= 170)
            {
                return new TrinityPower(SNOPower.X1_Monk_MysticAlly_v2, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 2);
            }

I have read the sticky [Guide] A walkthrough of changing skill activation criteria (range etc) for Dummies! but can not get it to work..

Any help would be appreciated.
 
Bump
I've found several other topics regarding this issues but none of them have any replies :(
 
check your spell delay in ur variables

Spelldelay is 30000 (30 seconds) which is equal to the cooldown of Mystic Ally without any CDR. It does not seem to use the skill every 30 seconds though.
 
not sure why it wouldnt work, but i remember messing with it before, i think one of those player. functions doesnt take into account exalted soul, maybe if you used <=150 it would work, but i use this

Code:
bool hasAirAlly = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.X1_Monk_MysticAlly_v2 && s.RuneIndex == 3);
			// Mystic ally
            if (CombatBase.CanCast(SNOPower.X1_Monk_MysticAlly_v2) && hasAirAlly && Player.PrimaryResourceMissing >= 110)
            {
                return new TrinityPower(SNOPower.X1_Monk_MysticAlly_v2, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 2);
            }
 
not sure why it wouldnt work, but i remember messing with it before, i think one of those player. functions doesnt take into account exalted soul, maybe if you used <=150 it would work, but i use this

Code:
bool hasAirAlly = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.X1_Monk_MysticAlly_v2 && s.RuneIndex == 3);
			// Mystic ally
            if (CombatBase.CanCast(SNOPower.X1_Monk_MysticAlly_v2) && hasAirAlly && Player.PrimaryResourceMissing >= 110)
            {
                return new TrinityPower(SNOPower.X1_Monk_MysticAlly_v2, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 2);
            }

I tested this but unfortunately the bot will stop using mystic ally all together. :(
I changed the spelldelay from 30000 (30 sec) to a value that is equal to 30, minus my effective CDR.

Changed the code in monk.cs to
Code:
            // Mystic ally
			if (Player.PrimaryResource <= 170 && (CombatBase.CanCast(SNOPower.X1_Monk_MysticAlly_v2, CombatBase.CanCastFlags.NoTimer)))
            {
                return new TrinityPower(SNOPower.X1_Monk_MysticAlly_v2, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 2);
            }
 
again, dont use primaryresource, i think there is a bug somewhere with exalted soul. also i think if you use (CombatBase.CanCast(SNOPower.X1_Monk_MysticAlly_v2, CombatBase.CanCastFlags.NoTimer) then your spell variables probably wont matter - i changed a lot of my other spells to use this as well.

mine works perfectly for me so i dont know.
 
Back
Top