• Visit Rebornbuddy
  • How to incorporate Assassinate

    Discussion in 'Archives' started by FredrichChoppin, Dec 7, 2014.

    1. FredrichChoppin

      FredrichChoppin New Member

      Joined:
      Jul 26, 2014
      Messages:
      17
      Likes Received:
      0
      Trophy Points:
      1
      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.
       
    2. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      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: Dec 7, 2014
    3. FredrichChoppin

      FredrichChoppin New Member

      Joined:
      Jul 26, 2014
      Messages:
      17
      Likes Received:
      0
      Trophy Points:
      1
      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.
       
    4. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      why not use the kupper kupo edit, or either of the other ones :S
       
      Last edited: Dec 7, 2014
    5. FredrichChoppin

      FredrichChoppin New Member

      Joined:
      Jul 26, 2014
      Messages:
      17
      Likes Received:
      0
      Trophy Points:
      1
    6. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      You do know that only casts spinning edge, gust, mut and assassinate? cr should also handle animation lock btw :S
       
      Last edited: Dec 7, 2014
    7. FredrichChoppin

      FredrichChoppin New Member

      Joined:
      Jul 26, 2014
      Messages:
      17
      Likes Received:
      0
      Trophy Points:
      1
      That is only a lightly modified Kupo's routine. What would it "handling animation lock" look like? Please edit mine. Thanks!
       
    8. kaihaider

      kaihaider Community Developer

      Joined:
      May 18, 2010
      Messages:
      1,325
      Likes Received:
      5
      Trophy Points:
      38
      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
       

    Share This Page