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

Monk Mantra Spam

Had the same issue but I find that it only doesn't spam when using the healing and evasion mantra. You really shouldn't be relying on that spam to better tour build anyways.
 
up :)
wantto ask the same thing

need a spam for mantra of healing ;)
 
up :)
wantto ask the same thing

need a spam for mantra of healing ;)

Hi,
I use that myself.

Open
Code:
 Documents\DemonBuddy\Plugins\Trinity\Combat\Abilities\Monk.cs with notepad

Search for:

Code:
!GetHasBuff(SNOPower.X1_Monk_MantraOfHealing_v2)

Replace that entire block of code with

Code:
            //Use Mantra of Healing active if health is low for shield.
            /*if (CombatBase.CanCast(SNOPower.X1_Monk_MantraOfHealing_v2) && Player.CurrentHealthPct <= V.F("Monk.MantraOfHealing.UseHealthPct") &&
                !Player.IsIncapacitated && !GetHasBuff(SNOPower.X1_Monk_MantraOfHealing_v2))*/
			if (CombatBase.CanCast(SNOPower.X1_Monk_MantraOfHealing_v2) &&
                    (Player.PrimaryResource >= 50) && CurrentTarget != null)
            {
                return new TrinityPower(SNOPower.X1_Monk_MantraOfHealing_v2);
            }

Then in the same folder open
Code:
MonkCombat.cs
search for:
Code:
Mantra of Healing active if health

Replace that code block with:

Code:
            //Use Mantra of Healing active if health is low for shield.
            if (CombatBase.CanCast(SNOPower.X1_Monk_MantraOfHealing_v2) &&
                !Player.IsIncapacitated && CurrentTarget != null)
            {
                return new TrinityPower(SNOPower.X1_Monk_MantraOfHealing_v2);
            }

Then navigate to:
Code:
Documents\Plugins\Trinity\Configuration\TVars.cs

search for:
Code:
SpellDelay.X1_Monk_MantraOfHealing_v2

Change that value from 2800 to however fast you want the ability to be spammed. The value is in milliseconds. I recommend using a value around 200ms.

Good luck.

Oh and be sure to restart demonbuddy!
 
Last edited:
i did not have the 'MonkCombat.cs' but its working good anyway
 
I was attempting the same thing for the evasion mantra, either way I want to proc the Sunwoko set. My code is as follows, it seems to only activate the skill when the mantra cooldown has finished.

This is the Trinity/ROutines/Combat/Abilities - MonkCombat.cs which alone has got the mantra to spam. It's attached if anyone wants it.

if (CombatBase.CanCast(SNOPower.X1_Monk_MantraOfEvasion_v2) &&
(Player.PrimaryResource >= 50) && CurrentTarget != null)
{
return new TrinityPower(SNOPower.X1_Monk_MantraOfEvasion_v2);
}

if (CombatBase.CanCast(SNOPower.X1_Monk_MantraOfEvasion_v2) &&
!Player.IsIncapacitated && CurrentTarget != null)
{
return new TrinityPower(SNOPower.X1_Monk_MantraOfEvasion_v2);
}

I have also set my Trinity?Configuration?TVars.cs to;

Set(new TVar("SpellDelay.X1_Monk_MantraOfEvasion_v2", 50, "Spell Use Delay/Interval, milliseconds"));

Any help getting an actual spam working would be great, thanks.
 

Attachments

monk spam fix

use this. this will not wait for the 4 seconds active buff. it will repeatedly spam the mantra.
Code:
			if (CombatBase.CanCast(SNOPower.X1_Monk_MantraOfEvasion_v2, CombatBase.CanCastFlags.NoTimer) && 
					(Player.PrimaryResource >= 50) && CurrentTarget != null)
			{
				return new TrinityPower(SNOPower.X1_Monk_MantraOfEvasion_v2);
			}

based on your delay set on TVars.cs you should be able to spam with this code. i set the delay 200ms
 
Last edited:
I just change the variable in trinity to .95 for mantra of healing so spams when below 95% health
 
use this. this will not wait for the 4 seconds active buff. it will repeatedly spam the mantra.
Code:
			if (CombatBase.CanCast(SNOPower.X1_Monk_MantraOfEvasion_v2, CombatBase.CanCastFlags.NoTimer) && 
					(Player.PrimaryResource >= 50) && CurrentTarget != null)
			{
				return new TrinityPower(SNOPower.X1_Monk_MantraOfEvasion_v2);
			}

based on your delay set on TVars.cs you should be able to spam with this code. i set the delay 200ms

Thanks this works great!
 
Back
Top