[Retail] About FrameScript_Execute menu

User Tag List

Results 1 to 4 of 4
  1. #1
    nfgstar's Avatar Member
    Reputation
    1
    Join Date
    Oct 2020
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Retail] About FrameScript_Execute

    9.0.5.38134
    FrameScript_Execute :0x807B80

    Inject and hook Present ,then call FrameScript_Execute , only the first call can work and seems not return.

    code like :

    Code:
    hookPresent(...)
    {
    ...
         typedef int64_t (__fastcall* exeScript )(const char*, const char*, int64_t);
    	exeScript es= reinterpret_cast<exeScript >((uintptr_t)GetModuleHandle(NULL) + 0x807B80);
            
    	es("ChatFrame1:AddMessage('ABCDEFG')","test",0);   // only the first call (any wow lua function)can work
    	es("CastSpellByID(123)", "test", 0);
    ...
    }
    Did I make mistakes? or Is there any other way to execute wow lua functions?

    thanks!
    Last edited by nfgstar; 04-12-2021 at 04:34 PM.

    [Retail] About FrameScript_Execute
  2. #2
    laozeixp@qq.com's Avatar Member
    Reputation
    1
    Join Date
    Oct 2018
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    me too,crashed everytime,waiting for answer.

  3. #3
    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)
    How are you calling it the second time? Present is called every frame, so the above code would be called over and over unless you have a static bool or whatnot set to only call it once. Also, another function is used to read the return values from lua. FSExecute will not return anything from the lua stack.

  4. #4
    xalcon's Avatar Contributor ふたなり
    Authenticator enabled
    Reputation
    198
    Join Date
    Oct 2008
    Posts
    291
    Thanks G/R
    20/58
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by nfgstar View Post
    9.0.5.38134
    FrameScript_Execute :0x807B80

    Inject and hook Present ,then call FrameScript_Execute , only the first call can work and seems not return.

    code like :

    Code:
    hookPresent(...)
    {
    ...
         typedef int64_t (__fastcall* exeScript )(const char*, const char*, int64_t);
    	exeScript es= reinterpret_cast<exeScript >((uintptr_t)GetModuleHandle(NULL) + 0x807B80);
            
    	es("ChatFrame1:AddMessage('ABCDEFG')","test",0);   // only the first call (any wow lua function)can work
    	es("CastSpellByID(123)", "test", 0);
    ...
    }
    Did I make mistakes? or Is there any other way to execute wow lua functions?

    thanks!
    We don't have much information to go with, so these are just guesses from personal experience.
    The function 0x807B80 is obfuscated and probably makes use of return address checks. If you aren't doing any form of patching or other workarounds, that's probably your problem.
    Also, lua is not thread safe. you should never call lua related functions from outside the lua thread. Keep in mind that the thread that calls DXGI::Present is not necessarily the same thread that is used for lua execution. Ever since they introduced DX12, there are multiple potential threads that can call present. This isn't much of an issue with DX11, but not guaranteed either - so I recommend checking the lua thread id.
    "Threads should always commit suicide - they should never be murdered" - DirectX SDK

Similar Threads

  1. About Spell_Cast_Spell in Retail.
    By 34D in forum WoW Memory Editing
    Replies: 0
    Last Post: 08-19-2020, 11:46 PM
  2. Question about retail theft consequences
    By polarmike76 in forum WoW Scams Help
    Replies: 27
    Last Post: 11-22-2008, 04:47 PM
  3. Quick question about switiching from private servers to retail
    By steveor in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 03-15-2008, 09:37 PM
  4. Your Thoughts about buying an Account
    By karokekid in forum World of Warcraft General
    Replies: 11
    Last Post: 06-12-2006, 04:25 PM
  5. MMORPG Gold and Services Retailer Reviews?
    By Matt in forum Suggestions
    Replies: 3
    Last Post: 05-21-2006, 12:05 AM
All times are GMT -5. The time now is 08:18 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