Results 1 to 4 of 4
  1. #1
    linabutterfly's Avatar
    Join Date
    Sep 2014
    Gender
    female
    Posts
    2
    Reputation
    10
    Thanks
    1

    Question How to tell whether a target is affected by a skill using AS3?

    Hello,

    I'm making an auto attacker for the rogue class using AS3. Is there a way to tell whether my target is affected by "Viper's Kiss" and how much time is remaining on it?

    Thanks.

  2. #2
    Oliboli8769's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Boliworlds
    Posts
    2,197
    Reputation
    455
    Thanks
    3,815
    Interesting question, I never looked into that...
    It would probably be on the Avatar class somewhere but I'm unsure.
    Good luck

  3. #3
    linabutterfly's Avatar
    Join Date
    Sep 2014
    Gender
    female
    Posts
    2
    Reputation
    10
    Thanks
    1
    After Some debugging it seems that active effects are in an Avatar's ".dataLeaf.auras".
    The aura itself can be identified by it's "nam" property. It also has a property "ts" which I assume to be the time stamp of when the aura was applied. so you can tell how much time is left in the aura by subtracting ts from Now.
    hopefully the following code will explain:

    Code:
    protected function IsTargetPoisoned():Boolean
    {
    	var Player:Object = Game.world.myAvatar;
    	var Target:Object = Player.target;
    	var aura:Object;
    	for each(aura in Target.dataLeaf.auras)
    		if (aura.nam == "Viper's Kiss")
    			return true;
    return false; 
    }
    I hope this will help anyone who has a related question.

  4. The Following User Says Thank You to linabutterfly For This Useful Post:

    Darakath (09-21-2014)

  5. #4
    Oliboli8769's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Location
    Boliworlds
    Posts
    2,197
    Reputation
    455
    Thanks
    3,815
    @linabutterfly
    Thought it would be something like that, nice find

Similar Threads

  1. How to tell if Files are REALLY a false positive.
    By User1 in forum Combat Arms Hacks & Cheats
    Replies: 13
    Last Post: 08-29-2009, 08:53 AM
  2. How To Tell If You Have A Virus
    By que999 in forum Suggestions, Requests & Help
    Replies: 1
    Last Post: 08-11-2009, 07:42 PM
  3. How To Tell If You Have A Virus
    By que999 in forum General
    Replies: 26
    Last Post: 08-09-2009, 09:36 PM
  4. How To Tell If You Have A Virus
    By que999 in forum CrossFire Hacks & Cheats
    Replies: 10
    Last Post: 08-06-2009, 04:43 PM
  5. How to tell if you need more RAM...
    By mostwanted in forum Programming Tutorials
    Replies: 5
    Last Post: 07-16-2009, 08:46 PM