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

Need help with coding

Botter1337

Member
Joined
Jun 15, 2018
Messages
119
Reaction score
3
Hello,

can anyone help me with a code snippet to support the following:

keep up the damage buff from hexing pants for crusader speedrunning

???

I optimized Law usage and primary attack, but I don't know how to code it that the bot is moving constantly while attacking mobs
 
For which condition I need to add getLoiterPosition? For the spamCondemn one?

/Edit:
upload_2018-6-24_13-21-47.webp

Will this work?
 
Last edited:
Hello,

can anyone help me with a code snippet to support the following:

keep up the damage buff from hexing pants for crusader speedrunning

???

I optimized Law usage and primary attack, but I don't know how to code it that the bot is moving constantly while attacking mobs
If you get it figured out, I sure as hell would appreciate the routine lol.
 
Could need some help, I'm kinda lost since they reword DB and its structure I don't find stuff anymore in the code^^
@Phelon Would really love to get some help from you :) Just help me out with the good working support of hexing pants and I'm fine^^
 
That looks appropriate yes. Make sure you disable standing in buff to get it to work.
Well it doesn't work at all :D
I found a chinese modded trinity in demonbuddy subforums, including routine and extra's, with this one there it works like a charm
 
Well it doesn't work at all :D
I found a chinese modded trinity in demonbuddy subforums, including routine and extra's, with this one there it works like a charm
If you want to spam moving during attack.
Try GetZigZagTarget in GetOffensivePower()
 
If you want to spam moving during attack.
Try GetZigZagTarget in GetOffensivePower()
Well now he is moving, but not keeping up focus+restraint buff, because main attack don't get used while attacking elites/blues
 
Well now he is moving, but not keeping up focus+restraint buff, because main attack don't get used while attacking elites/blues
I want to see your code..
This code is not related to focus + restraint buff
 
Code:
        public TrinityPower GetOffensivePower()
        {
            TrinityPower power;
            TrinityActor target;
            Vector3 position;

            if (!Skills.Crusader.Punish.IsBuffActive && ShouldPunish(out target))
                return Punish(target);
                
            if (TrySpecialPower(out power))
                return power;

            if (TrySecondaryPower(out power))
                return power;

            if (TryPrimaryPower(out power))
                return power;
            
            if (Legendary.HexingPantsOfMrYan.IsEquipped && CurrentTarget.Distance < 20f)
                return Walk(TargetUtil.GetZigZagTarget(CurrentTarget.Position, 20f, true), 3f);

            return Walk(CurrentTarget.Position, 3f);
        }

Try this..
 
Code:
        public TrinityPower GetOffensivePower()
        {
            TrinityPower power;
            TrinityActor target;
            Vector3 position;

            if (!Skills.Crusader.Punish.IsBuffActive && ShouldPunish(out target))
                return Punish(target);
            
            if (TrySpecialPower(out power))
                return power;

            if (TrySecondaryPower(out power))
                return power;

            if (TryPrimaryPower(out power))
                return power;
        
            if (Legendary.HexingPantsOfMrYan.IsEquipped && CurrentTarget.Distance < 20f)
                return Walk(TargetUtil.GetZigZagTarget(CurrentTarget.Position, 20f, true), 3f);

            return Walk(CurrentTarget.Position, 3f);
        }

Try this..
Thx I will try it

Edit: Bot isn't moving at all while fighting mobs
 

Attachments

Ye I did, but still....I will keep going with the chinese stuff it's much much better than the default trinity

SO much better combar routine and so much better and smoother townruns(not the lame default one where the bot IDing and salvaging at every round + ton of other improvements
 
Ye I did, but still....I will keep going with the chinese stuff it's much much better than the default trinity

SO much better combar routine and so much better and smoother townruns(not the lame default one where the bot IDing and salvaging at every round + ton of other improvements
Where did you find the Chinese stuff?
 
Back
Top