SpigotStyle
New Member
- Joined
- Jan 15, 2010
- Messages
- 98
- Reaction score
- 1
Sorry to seem like a complete programming noob here (I am), but I am having a little difficulty figuring out how to modify a plugin or CC to use my Badge of Conquest when the target gets to say, 45% or below.
I found some code that does something similar, but uses the trinket when your character gets below a particular health percentage. (Credit to NaRK for his modification of exemplar's PvP trinket plugin:
http://www.thebuddyforum.com/honorb...p/13081-plugin-pvp-basic-trinket-racials.html)I found some code that does something similar, but uses the trinket when your character gets below a particular health percentage. (Credit to NaRK for his modification of exemplar's PvP trinket plugin:
Code:
if (StyxWoW.Me.HealthPercent < 15 && StyxWoW.Me.Inventory.Equipped.Trinket1 != null && StyxWoW.Me.Inventory.Equipped.Trinket1.Name.Contains(" Emblem of Tenacity") && StyxWoW.Me.Inventory.Equipped.Trinket1.Cooldown <= 0)
{
Logging.Write("Health < 15% - " + " - " + StyxWoW.Me.Inventory.Equipped.Trinket1.Name);
StyxWoW.Me.Inventory.Equipped.Trinket1.Use();
return;
}
if (StyxWoW.Me.HealthPercent < 15 && StyxWoW.Me.Inventory.Equipped.Trinket2 != null && StyxWoW.Me.Inventory.Equipped.Trinket2.Name.Contains(" Emblem of Tenacity") && StyxWoW.Me.Inventory.Equipped.Trinket2.Cooldown <= 0)
{
Logging.Write("Health < 15% - " + " - " + StyxWoW.Me.Inventory.Equipped.Trinket2.Name);
StyxWoW.Me.Inventory.Equipped.Trinket2.Use();
return;
}
Any help would be greatly appreciated.






