camera & TLS stuff 2.4.2 - need help menu

Shout-Out

User Tag List

Results 1 to 12 of 12
  1. #1
    mrbrdo's Avatar Member
    Reputation
    5
    Join Date
    Jun 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    camera & TLS stuff 2.4.2 - need help

    Hey

    I've been struggling with calculating the right angle direction my char must face to walk to a NPC... I don't know what i'm doing wrong really, i just can't seem to get the right angle. I did a little dirty vector resizing trick so i've got it working but i'd love if someone could give an example of how the angle is properly calculated. I basically have the X/Y of me and the NPC, + what angle is my char facing.

    Other things i'd like to know - 2.4.2, i'm using TLS method:
    - where to read if you are alive/dead
    - where to read if you are in combat
    - party members possible? (to find them)

    On the side note is there any PoC or working example of how to avoid walls while walking and stuff you can bump into?
    Can someone also recommend any source i could look at, which does stuff like the angle i'm having problems with, or anything useful.

    Thank you!

    camera & TLS stuff 2.4.2 - need help
  2. #2
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To get the facing from X,Y to X2,Y2 in radians, use atan.

    float fFace = atan2f( Y2 - Y, X2 - X );

    If you want the degrees angle, then use (fFace * 180) / M_PI.

  3. #3
    Xarg0's Avatar Member
    Reputation
    61
    Join Date
    Jan 2008
    Posts
    389
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you could check the movement state, if you're in goast movementstate you're dead ^^
    I hacked 127.0.0.1

  4. #4
    mrbrdo's Avatar Member
    Reputation
    5
    Join Date
    Jun 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you both i will try it.

    Btw what is the offset from the player base for the movement state? Any link where there are updated offsets (preferably relative to TLS) for 2.4.2?

  5. #5
    craby987's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xarg0 View Post
    you could check the movement state, if you're in goast movementstate you're dead ^^
    If you could set your movement state to ghost while alive couldn't you walk across water?

  6. #6
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ^ Theres a movement state for water walking, and yes you can set it and run across water. However, on live servers you need to intercept the movement packets and change your movement state back to normal to prevent a disconnect.

  7. #7
    craby987's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kynox View Post
    ^ Theres a movement state for water walking, and yes you can set it and run across water. However, on live servers you need to intercept the movement packets and change your movement state back to normal to prevent a disconnect.
    I see. A quick detour of the SendPacket(), add some filters and done!

  8. #8
    mrbrdo's Avatar Member
    Reputation
    5
    Join Date
    Jun 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hm sorry, where is the movement state actually? can't find it in any of the enums

  9. #9
    mrbrdo's Avatar Member
    Reputation
    5
    Join Date
    Jun 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Kynox can you help again? Haven't gotten a reply for a week so i thought i should kinda bump this one...

    Thanks

  10. #10
    sweeper18's Avatar Member
    Reputation
    2
    Join Date
    Aug 2006
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know this might seems stupid, but if you have 0 health you are dead and haven't released, if you have 1 health and 0 mana, you are dead and need to walk there... this is just a simple fix of course, it is still open to you actually ever having 1 hp and 0 mana which you open for having a known bug.

  11. #11
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    if ((PLAYER_FLAGS & 0x10) == 0x10) //then the player is a ghost and needs to get his corpse

  12. #12
    mrbrdo's Avatar Member
    Reputation
    5
    Join Date
    Jun 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks! both is helpful, 0 means not released and player flags tell me if i'm ghost. thanks.

Similar Threads

  1. [Question] Need help to change Camera view
    By Svempy in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 07-11-2010, 06:36 AM
  2. need help with some stuff plz =p
    By darkriderking in forum World of Warcraft General
    Replies: 1
    Last Post: 12-09-2008, 03:22 AM
  3. Need help with some stuff
    By jordy in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 06-14-2008, 04:17 AM
  4. Another noob needing help with TLS...
    By KOS0937 in forum WoW Memory Editing
    Replies: 7
    Last Post: 05-24-2008, 01:12 AM
  5. [HELP!!!] Need help setting up and stuff...!!
    By Jayson22 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 05-17-2008, 11:06 AM
All times are GMT -5. The time now is 09:51 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search