[LUA] Remove Item? menu

User Tag List

Results 1 to 4 of 4
  1. #1
    EmuX's Avatar Active Member
    Reputation
    29
    Join Date
    Feb 2008
    Posts
    172
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [LUA] Remove Item?

    I was wondering if there was a way to make this LUA script remove your hearth stone. Also I was wondering if there is a way to remove the in-game unstucker.

    Code:
    function On_Gossip(pUnit, event, player)
     if (player:HasFinishedQuest(10) == true) then
     pUnit:GossipCreateMenu(18893, player, 0)
     pUnit:GossipMenuAddItem(0, "Teleport me!", 1, 0)
     pUnit:GossipSendMenu(player)
     else
     pUnit:SendBroadcastMessage("You need to do the quest first!")
    end
    end
    
    function Gossip_Submenus(pUnit, event, player, id, intid, code)
     if(intid == 1) then
     player:Teleport(0, -14420.2, 521.563, 5.00598)
    end
    end
    
    RegisterUnitGossipEvent(18893, 1, "On_Gossip")
    RegisterUnitGossipEvent(18893, 2, "Gossip_Submenus")

    [LUA] Remove Item?
  2. #2
    Dynashock's Avatar Contributor

    Reputation
    176
    Join Date
    Nov 2007
    Posts
    203
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Full syntax: player:RemoveItem(itemid, amount) thus add
    Code:
    player:RemoveItem(HEARTHSTONE_ID, 1)
    wherever you want the item to be removed. I recommend to add an item check though, to prevent errors, such as:
    Code:
     if player:HasItem(HEARTHSTONE_ID) then
          player:RemoveItem(HEARTHSTONE_ID, 1)
     end
    You cannot get rid of the client button unless you create a client patch which removes that button. However I think it might be possible to remove the handling of the unstucker in the source files, although I'm not sure where exactly.

  3. #3
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm pretty sure spellid 7355 is auto unstuck.

    There is a bunch of generic spells characters learn when they login (playercreateinfo tables have all this stuff). 'Stuck', 'Opening', 'Duel'... are a few of them. Deleting these from the player will make /duel, auto unstuck, opening chests, ect ect.. all do nothing.

    Hope this helps.

  4. #4
    EmuX's Avatar Active Member
    Reputation
    29
    Join Date
    Feb 2008
    Posts
    172
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +rep to the both of you thanks so much

Similar Threads

  1. [Release] Goldensun City+instance+lua+quests+items
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 61
    Last Post: 02-08-2008, 08:40 PM
  2. [LUA] Need item?
    By Ballwinkle in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 01-31-2008, 11:03 AM
  3. [EMU]Remove Item Cooldown WoW version 2.3
    By TheCrusher in forum WoW EMU Programs
    Replies: 34
    Last Post: 01-15-2008, 02:13 PM
  4. Removing Items , need help
    By entrepid in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 11-10-2007, 11:38 AM
  5. Add or Remove items from Vendors [ Guide ]
    By Hlini in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 10-27-2007, 01:55 AM
All times are GMT -5. The time now is 07: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