Want to do something when using TownPortal, MapPortal or EndMapPylon menu

These ads disappear when you log in.

Results 1 to 11 of 11
  1. #1
    MrOne's Avatar Contributor CoreCoins User
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    267
    Thanks G/R
    26/106
    Trade Feedback
    0 (0%)

    Want to do something when using TownPortal, MapPortal or EndMapPylon

    Hi,

    I want to make action when my character using TownPortal, MapPortal or EndMapPylon (this pylon at the end of first or second map dungeon).

    Like:

    if ("myCharacter is using town portal" || "back pylon" || "using map portal") do something
    else do something else

    Is it possible?

    These ads disappear when you log in.

  2. #2
    JackCeparou's Avatar Savvy ? 🐒 CoreCoins User
    Reputation
    488
    Join Date
    Mar 2017
    Posts
    578
    Thanks G/R
    32/451
    Trade Feedback
    0 (0%)
    For the tp in town :
    PHP Code:
    if ((int)Hud.Game.Me.AnimationState == 13// town tp 
    But I have no clue about your other questions.
    (Maybe it's possible to do some check inside the INewAreaHandler?)
    Hide the Rum! --> Default theme customization 101 <--

  3. Thanks MrOne (1 members gave Thanks to JackCeparou for this useful post)
  4. #3
    MrOne's Avatar Contributor CoreCoins User
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    267
    Thanks G/R
    26/106
    Trade Feedback
    0 (0%)
    Thx, ill check. If You find more solutions, that will be great

    EDIT: No need to search more, this AnimationState == 13 case covers all situation (TP to town, TP using map and TP using pylon).Jack ... great answer like always !!!
    Last edited by MrOne; 06-08-2018 at 09:43 AM.

  5. #4
    JackCeparou's Avatar Savvy ? 🐒 CoreCoins User
    Reputation
    488
    Join Date
    Mar 2017
    Posts
    578
    Thanks G/R
    32/451
    Trade Feedback
    0 (0%)
    Originally Posted by MrOne View Post
    EDIT: No need to search more, this AnimationState == 13 case covers all situation (TP to town, TP using map and TP using pylon).
    Oh, great, thanks for reporting, that's good to know ;p
    Hide the Rum! --> Default theme customization 101 <--

  6. #5
    MrOne's Avatar Contributor CoreCoins User
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    267
    Thanks G/R
    26/106
    Trade Feedback
    0 (0%)
    Originally Posted by JackCeparou View Post
    Oh, great, thanks for reporting, that's good to know ;p
    Funny is that i locate this:
    Code:
    public enum AcdAnimationState
        {
            Invalid = -1,
            Idle = 1,
            Running = 2,
            Transform = 3,
            TakingDamage = 6,
            Casting = 7,
            Attacking = 8,
            Channeling = 10,
            Dead = 11,
        }
    but there is no info about 13 how did you figure it out?

  7. #6
    prrovoss's Avatar Contributor CoreCoins User Authenticator enabled
    Reputation
    147
    Join Date
    Jan 2013
    Posts
    435
    Thanks G/R
    21/125
    Trade Feedback
    0 (0%)
    Originally Posted by MrOne View Post
    Funny is that i locate this:
    Code:
    public enum AcdAnimationState
        {
            Invalid = -1,
            Idle = 1,
            Running = 2,
            Transform = 3,
            TakingDamage = 6,
            Casting = 7,
            Attacking = 8,
            Channeling = 10,
            Dead = 11,
        }
    but there is no info about 13 how did you figure it out?
    probably just printing out the current animState

  8. #7
    KillerJohn's Avatar TurboHUD HUDmaster CoreCoins User Authenticator enabled
    Reputation
    2655
    Join Date
    Jul 2012
    Posts
    2,364
    Thanks G/R
    4/2329
    Trade Feedback
    0 (0%)
    lol, do you say there the is a value for 13? whats the meaning of it?

  9. #8
    Levithan's Avatar Member
    Reputation
    6
    Join Date
    Feb 2008
    Posts
    28
    Thanks G/R
    11/4
    Trade Feedback
    0 (0%)
    13 is when using Town Portal (T), end of rift stone to teleport back and the teleport when using the map. Its when the teleport bar above the character appears

  10. #9
    MrOne's Avatar Contributor CoreCoins User
    Reputation
    121
    Join Date
    Mar 2017
    Posts
    267
    Thanks G/R
    26/106
    Trade Feedback
    0 (0%)
    Originally Posted by KillerJohn View Post
    lol, do you say there the is a value for 13? whats the meaning of it?
    Like Levithan say, now i use it in my plugin and it work every time KJ is it new for you?

  11. #10
    JackCeparou's Avatar Savvy ? 🐒 CoreCoins User
    Reputation
    488
    Join Date
    Mar 2017
    Posts
    578
    Thanks G/R
    32/451
    Trade Feedback
    0 (0%)
    Originally Posted by MrOne View Post
    Like Levithan say, now i use it in my plugin and it work every time KJ is it new for you?
    It was added in one of the lastest release ; )
    PHP Code:
    namespace Turbo.Plugins
    {

        public 
    enum AcdAnimationState
        
    {
            
    Invalid = -1,
            
    Idle 1,
            
    Running 2,
            
    Transform 3,
            
    TakingDamage 6,
            
    Casting 7,
            
    Attacking 8,
            
    Channeling 10,
            
    Dead 11,
            
    CastingPortal 13,
        }


    Thanks KJ for adding it, one less cast to write
    Hide the Rum! --> Default theme customization 101 <--

  12. #11
    User5981's Avatar Contributor CoreCoins User
    Reputation
    275
    Join Date
    Aug 2017
    Posts
    589
    Thanks G/R
    26/258
    Trade Feedback
    0 (0%)
    The info is from one of the latest changelogs...
    Supported version for all Resu plugins
    Hit the thanks button & give me reputation, DAMMIT!

Similar Threads

  1. ok i want to know something.
    By krisfahnz in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-17-2007, 08:47 PM
  2. What do you want to do right here right now?
    By Nolixz in forum Community Chat
    Replies: 15
    Last Post: 10-16-2007, 12:29 AM
  3. TeamSpeak tools, other ways to do something with TeamSpeak. Incl a crasher.
    By Juhlemanden in forum World of Warcraft Bots and Programs
    Replies: 9
    Last Post: 08-05-2007, 12:21 PM
  4. Need To Do Something Really Evil To A Player
    By Niko33 in forum World of Warcraft General
    Replies: 13
    Last Post: 10-15-2006, 03:35 PM
All times are GMT -5. The time now is 03:23 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search