IsSpellUsable (Lua) menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    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)
    Since GetLocalizedText seems to be a __thiscall, remove the "cave.AsmAddLine("add esp, 0xC");".

    IsSpellUsable (Lua)
  2. #17
    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)
    Originally Posted by Gorzul View Post
    Since GetLocalizedText seems to be a __thiscall, remove the "cave.AsmAddLine("add esp, 0xC");".
    It's a _cdecl function.

  3. #18
    HapaHaoleVA's Avatar Member
    Reputation
    4
    Join Date
    Apr 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ramey View Post
    It's a _cdecl function.
    Duh. That was it - much thanks.

  4. #19
    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)
    @ramey
    Are you sure? I don't see any "caller" stack cleanup in the wow code.

    Code:
    .text:006B79EE                 mov     ecx, [ebp+var_20]
    .text:006B79F1                 push    0FFFFFFFFh
    .text:006B79F3                 lea     eax, [ebp+var_164]
    .text:006B79F9                 push    eax
    .text:006B79FA                 call    GetLocalizedText
    .text:006B79FF                 push    eax
    .text:006B7A00                 push    esi
    .text:006B7A01                 push    0
    .text:006B7A03                 push    0FFFFFFFFh
    .text:006B7A05                 push    offset aItem_req_reput ; "ITEM_REQ_REPUTATION"
    .text:006B7A0A                 call    sub_49B170
    .text:006B7A0F                 add     esp, 0Ch

  5. #20
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ramey View Post
    It's a _cdecl function.
    No. It's __thiscall.

    .text:005A8500 push ebp
    .text:005A8501 mov ebp, esp
    .text:005A8503 push ebx
    .text:005A8504 push esi
    .text:005A8505 mov esi, ecx

    Use of ECX.

    .text:005A8557 retn 8

    Callee stack cleanup.

    It's not even CLOSE to __cdecl. Mistaking it for __stdcall is understandable, but __cdecl just makes zero sense.

  6. #21
    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)
    I was talking about the IsSpellUsable, was late and I misread Gorzul's post! sorry :x

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  3. Lua Ascent Script Documentation
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-26-2007, 12:42 PM
  4. LUA Refrences
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 11-22-2007, 08:09 PM
All times are GMT -5. The time now is 12:13 AM. 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