UseItem parameters menu

User Tag List

Results 1 to 6 of 6
  1. #1
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    UseItem parameters

    Does anyone know what the parameters are to UseItem? The first one seems to be a pointer, but I have no idea to what. When I use a conjured water, the pointer points to 0x001EFAA8, when I use a "Tough Hunk of Bread" it points to 0x001EFAA0.

    The assembly of the functions which call UseItem are very confusing to me. I can't figure out ultimately where the value comes from. My best guess is it may be a pointer to the client cache db or something.

    The second parameter seems to always be NULL, and ecx points to the object structure.

    Any insights?

    Also, to temporarily bypass this issue I thought I would use Lua_DoString("UseItemByName(...."), but that crashes WoW. Are the Blizzard-ui-only restrictions enforced on calls to Lua_DoString?

    UseItem parameters
  2. #2
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try updating TLS and make sure you're using the right params, etc. for DoString(). I'll look at it and see if I can provide any insight

  3. #3
    ramey's Avatar Member
    Reputation
    45
    Join Date
    Jan 2008
    Posts
    320
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First, the blizzard ui only aren't enforced on DoString, so you're calling it wrong somehow.

    Um... Not sure at all but perhaps its a pointer to the CGItem_C. I could be completely wrong, just a guess.

    I'll let you guess about the ecx bit, dunno about 2nd param being null

  4. #4
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Watery-bread lives in between at 0x001EFAA4.

    :P

  5. #5
    Gorzul's Avatar Member
    Reputation
    8
    Join Date
    May 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which offset do you use for Lua_DoString? Lua_DoString("UseItemByName(...)") works perfectly fine for me.

  6. #6
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ramey View Post
    First, the blizzard ui only aren't enforced on DoString, so you're calling it wrong somehow.

    Um... Not sure at all but perhaps its a pointer to the CGItem_C. I could be completely wrong, just a guess.

    I'll let you guess about the ecx bit, dunno about 2nd param being null
    ecx is the object in question (the "CGItem_C"). The 1st param is not an object (that is, casting it to one and calling GetObjectName crashes the app).

    Originally Posted by Gorzul View Post
    Which offset do you use for Lua_DoString? Lua_DoString("UseItemByName(...)") works perfectly fine for me.
    [11:10:59]: 0x0049AB60 -> Lua_DoString

    Casting spells works fine with Lua_DoString

Similar Threads

  1. PQInterface Rotation Options - Parameter
    By CyberTuck328 in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 10-04-2013, 10:22 PM
  2. [3.3.3.11723] CGWorld_C::Intersect parameters?
    By eLaps in forum WoW Memory Editing
    Replies: 5
    Last Post: 05-13-2010, 09:17 AM
  3. Passing string pointer as parameter crashes WoW
    By Burningmace in forum WoW Memory Editing
    Replies: 7
    Last Post: 02-12-2010, 04:04 PM
  4. how to handle lua unicode parameter ?
    By leather in forum WoW Memory Editing
    Replies: 3
    Last Post: 03-26-2009, 08:28 PM
  5. "accounts" table parameters(read, never ask again:))
    By x6x6x6x in forum WoW EMU General Releases
    Replies: 8
    Last Post: 12-15-2008, 12:44 PM
All times are GMT -5. The time now is 04:50 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