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

User Tag List

Results 1 to 11 of 11
  1. #1
    MrOne's Avatar Contributor
    Reputation
    163
    Join Date
    Mar 2017
    Posts
    322
    Thanks G/R
    66/141
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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?

    Want to do something when using TownPortal, MapPortal or EndMapPylon
  2. #2
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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, johnbl (2 members gave Thanks to JackCeparou for this useful post)
  4. #3
    MrOne's Avatar Contributor
    Reputation
    163
    Join Date
    Mar 2017
    Posts
    322
    Thanks G/R
    66/141
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    Reputation
    163
    Join Date
    Mar 2017
    Posts
    322
    Thanks G/R
    66/141
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    Reputation
    152
    Join Date
    Jan 2013
    Posts
    420
    Thanks G/R
    23/130
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 Purchaser Authenticator enabled
    Reputation
    3693
    Join Date
    Jul 2012
    Posts
    2,532
    Thanks G/R
    46/3335
    Trade Feedback
    0 (0%)
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    lol, do you say there the is a value for 13? whats the meaning of it?
    Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...

  9. #8
    Levithan's Avatar Member
    Reputation
    6
    Join Date
    Feb 2008
    Posts
    28
    Thanks G/R
    11/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    Reputation
    163
    Join Date
    Mar 2017
    Posts
    322
    Thanks G/R
    66/141
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The info is from one of the latest changelogs...
    Supported version for all Resu plugins

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 10:58 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search