RETAIL   How to use  Spell_C_HandleTerrainClick menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    ostapus's Avatar Active Member
    Reputation
    58
    Join Date
    Nov 2008
    Posts
    176
    Thanks G/R
    2/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _chase View Post
    I am working on classic, and I too have this same problem. Do you get a divide by zero error? I'm still learning about native reversing, but I'm under the assumption the crash might be due to checking the call stack.
    So it throws an error when not called from the game's actual address space. Thus why I can call the wrapper functions without an issue, but trying to directly call the function from my injected dll will flag the call stack check and crash.
    I do use wrapper as well, and have no issues to call other function which does check return address. but calling the same way this (ClickToMove) function cause the crash. So i wonder if there are other checks unless i missing something
    Hard to track the issues especcifaly when code is obfuscated.
    Speaking about obfuscation - is there way to somehow automatically deobfuscate the code ?

    tia

    RETAIL   How to use  Spell_C_HandleTerrainClick
  2. #17
    GlittPrizes's Avatar Active Member CoreCoins Purchaser Authenticator enabled
    Reputation
    58
    Join Date
    Nov 2019
    Posts
    104
    Thanks G/R
    53/33
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can anyone provide OnTerrainClick offset or pattern for (38134)? I have a pattern for it, but I think it might be incorrect because the function is __int64 __fastcall OnTerrainClick(__int64 a1). And is it called with mover pointer followed by the location? It's hard to follow this thread whether which function you are talking about?

    edit: okay so I was using the correct offset after all. I pass the mover correctly, my coords are correct, but my click is sent into out space instead of clicking nearby... Any ideas?
    Last edited by GlittPrizes; 04-05-2021 at 07:07 PM.

  3. #18
    ostapus's Avatar Active Member
    Reputation
    58
    Join Date
    Nov 2008
    Posts
    176
    Thanks G/R
    2/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by GlittPrizes View Post
    Can anyone provide OnTerrainClick offset or pattern for (38134)? I have a pattern for it, but I think it might be incorrect because the function is __int64 __fastcall OnTerrainClick(__int64 a1). And is it called with mover pointer followed by the location? It's hard to follow this thread whether which function you are talking about?

    edit: okay so I was using the correct offset after all. I pass the mover correctly, my coords are correct, but my click is sent into out space instead of clicking nearby... Any ideas?
    i've 0x0000000141AD28E0 for OnTerrainClick... works for me. you have to check "click to move" options in interface options.

  4. #19
    GlittPrizes's Avatar Active Member CoreCoins Purchaser Authenticator enabled
    Reputation
    58
    Join Date
    Nov 2019
    Posts
    104
    Thanks G/R
    53/33
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I was able to get it working after passing zeros to the mover part.

  5. #20
    imnothonorbuddy's Avatar Member
    Reputation
    2
    Join Date
    Oct 2023
    Posts
    10
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if call it in same point twice, it will crash game lol

  6. #21
    imnothonorbuddy's Avatar Member
    Reputation
    2
    Join Date
    Oct 2023
    Posts
    10
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OnTerrainClick randomly crashes, by the way, I added a vector length check between the last and next walking points (6 meters) and added a 500ms time between clicks. BUT it's still randomly crashes) but this happens less often. im internally

  7. #22
    Mathex's Avatar Member
    Reputation
    4
    Join Date
    Sep 2023
    Posts
    3
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by imnothonorbuddy View Post
    OnTerrainClick randomly crashes, by the way, I added a vector length check between the last and next walking points (6 meters) and added a 500ms time between clicks. BUT it's still randomly crashes) but this happens less often. im internally
    It doesn't for me. What does your click data struct look like? I basically just use

    Code:
    struct ClickData
    {
        uintptr_t guid_high;
        uintptr_t guid_low;
        Vector3 location;
        int32_t click_type;
    };
    And always parse 0 for the guid fields and the click type varies of course.

  8. #23
    imnothonorbuddy's Avatar Member
    Reputation
    2
    Join Date
    Oct 2023
    Posts
    10
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Mathex View Post
    It doesn't for me. What does your click data struct look like? I basically just use

    Code:
    struct ClickData
    {
        uintptr_t guid_high;
        uintptr_t guid_low;
        Vector3 location;
        int32_t click_type;
    };
    And always parse 0 for the guid fields and the click type varies of course.
    i have this struct

    Code:
    struct click_data
    {
    	uint64_t mover_1;
    	uint64_t mover_2;
    	vec3 location;
    	int click_type;
    };
    and i click on terrain with
    Code:
    click_data point;
    point.mover_1 = 0;
    point.mover_2 = 0;
    point.location = next_pos;
    point.click_type = 0x4;

Page 2 of 2 FirstFirst 12

Similar Threads

  1. GUIDE: HOW TO USE TORRENTS (Look inside)
    By Hounro in forum Community Chat
    Replies: 14
    Last Post: 01-22-2007, 09:04 PM
  2. How to use fish bot?
    By Pixo in forum World of Warcraft Guides
    Replies: 0
    Last Post: 01-04-2007, 07:01 PM
  3. Hunter Pets how to use them to gank lowbies
    By Demonicmaster in forum World of Warcraft Exploits
    Replies: 4
    Last Post: 12-21-2006, 04:35 PM
  4. How To: use .rar files.
    By raamoz in forum World of Warcraft Guides
    Replies: 3
    Last Post: 11-06-2006, 02:51 PM
All times are GMT -5. The time now is 07:37 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