Lua Problems menu

User Tag List

Thread: Lua Problems

Results 1 to 4 of 4
  1. #1
    brue's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Problems

    Just 2 questions,

    Does anyone know the command to remove gold(like a NPC that buffs a player for 1 gold)


    Does anyone know the command to check if there is a item in the inventory(like a vip has a key to the vipplace, and a regular player doesnt, the command checks if you have the key, so you have an extra option to your teleport stone(the house) and the regular player doesnt see any extra option)

    Thanks

    Lua Problems
  2. #2
    brue's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone? Does anyone know those lua commands?

  3. #3
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    int luaUnit_GetMoney(lua_State * L, Unit * ptr);
    int luaUnit_CanRemoveCoinage(lua_State * L, Unit * ptr);
    int luaUnit_CanRemoveGold(lua_State * L, Unit * ptr);
    int luaUnit_CanRemoveSilver(lua_State * L, Unit * ptr);
    int luaUnit_RemoveCoinage(lua_State * L, Unit * ptr);
    int luaUnit_RemoveGold(lua_State * L, Unit * ptr);
    int luaUnit_RemoveSilver(lua_State * L, Unit * ptr);

    Found in Guaengine, should be easy to figure out pUnit:RemoveSilver(197, player) or player:RemoveSilver(197) etc, can't remember the correct syntax since I havn't used it before.

    HasItem(lua_State * L, Unit * ptr);

    Found as well, so maybe:

    if player:HasItem(id) == true then
    do this
    else
    end

    Give it a go.

  4. #4
    brue's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, I will check it out later(tomorrow i think) +rep for you because you helped me

Similar Threads

  1. Lua problem
    By Minichili in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-14-2008, 09:45 AM
  2. [Help] Lua problem
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-23-2008, 04:34 AM
  3. lua problem
    By *Alexz* in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 02-14-2008, 10:41 PM
  4. [Question]-Lua Problem
    By Peter1337 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-07-2008, 07:59 AM
  5. [Question] LUA problem
    By Peter1337 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-01-2008, 09:21 AM
All times are GMT -5. The time now is 05:15 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