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

How to incorporate Assassinate

FredrichChoppin

New Member
Joined
Jul 26, 2014
Messages
17
Reaction score
0
So i know 0 things about coding or how to create a profile the most i can do is copy and past to make things work. I am trying to make my rogue combat routine cast assassinate when the target is below 20% health but i have no idea how. any assistance would be much appreciated.
 
Code:
Spell.Cast("Assassinate", Core.Player.CurrentTarget, Core.Player.CurrentTarget != null && Core.Player.CurrentTarget.CurrentHealthPercent < 20)

You should also check that you're in cooldown and you have so much time left in cooldown

you're better off using one of the custom cr's already uploaded if you don't know anything about coding :S

edit: oops forgot coroutine vs tree >_>
 
Last edited:
yah i use kupo but it doesnt incorporate a lot of spells its very basic so im trying to customize mine a bit more. my friend has come over and fixed this like 1000 times for me and in every update it gets rid of what he fixed. also i tryed to copy that and it didnt work. ill prolly just have my friend fix it for me thanks though. once i get it ill post what he did on here for others if they want.
 
why not use the kupper kupo edit, or either of the other ones :S
 
Last edited:
That is only a lightly modified Kupo's routine. What would it "handling animation lock" look like? Please edit mine. Thanks!
 
That is only a lightly modified Kupo's routine. What would it "handling animation lock" look like? Please edit mine. Thanks!
No, it does what you said, but that's not really what I meant. Animation lock makes it so if you do something like a cooldown like blood for blood 50ms before your GCD is ready, you'll have to wait something like 950ms with a gcd ready before it can actually do it. You can do

Actionmanager.CurrentActions.TryGetValue("LowLevelGCD", out SomeSpellData);

and then check SomeSpellData.Cooldown.TotalMilliseconds >= 1000 before doing off-gcd actions so the animation lock of an off-gcd action doesn't delay a gcd.

I was just letting you know kupo doesn't handle it but the three current cr's out there will. If you want to learn how to code your own, feel free to pm me anytime and i'll try to help
 
Back
Top