[Question] Make Items register Lua (Please don't leave me hanging like last time -.-) menu

User Tag List

Results 1 to 6 of 6
  1. #1
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] Make Items register Lua (Please don't leave me hanging like last time -.-)

    Hey there!

    I would like to know, how I correctly make an item available for right click so that when it's pressed it will register the Gossip script I have made for it.

    I made a junk item with WoW-V's creator, but I can't really make it work =/
    Any help/suggestions?

    Basically you right-click the item, and a code box appears.

    When I click the item however, nothing happens
    Last edited by AngelSandy; 06-08-2009 at 02:47 AM.

    [Question] Make Items register Lua (Please don't leave me hanging like last time -.-)
  2. #2
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *Bumping teh thread*

  3. #3
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well posting the script you are trying to get to work with it may help.. Include the Item id for the item in game as well.

  4. #4
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
     --[[Emnesia's VIP stone!]]--
    --[[Only to be used on Exalted Online's Server(s)!]]--
    	  --[[http://www.exaltedonline.net]]--
    
    
    function Item_OnUse(item, event, player)
        Item_menu(item, player)
    end
    function Item_menu(item, player)
    print "Item Right-Clicked!"
        if (player:IsInCombat() == true) then
        	player:SendAreaTriggerMessage("I wont work before you get out of combat, silly!")
        	player:SendBroadcastMessage("I wont work before you get out of combat, silly!")
    else
    	item:GossipCreateMenu(3543, player, 0)
        	item:GossipMenuAddItem(25, "Open my awesome Command Box!", 1, 1)
        	item:GossipMenuAddItem(25, "Close Me!", 2, 0)
    	item:GossipMenuAddItem(25, "Remove Ressurection Sickness!", 3, 0)
        	item:GossipSendMenu(player)
        end
    end
    function Item_OnSelect(item, event, player, id, intid, code)
    	if (intid == 3) then
    		player:LearnSpell(15007)
    		player:UnlearnSpell(15007)
    	player:SendAreaTriggerMessage("Good as new!")
    	player:SendBroadcastMessage("Good as new!")
    end
    and

    Code:
    RegisterItemGossipEvent(26,1,"Item_OnUse")
    RegisterItemGossipEvent(26,2,"Item_OnSelect")

  5. #5
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
     --[[Emnesia's VIP stone!]]--
    --[[Only to be used on Exalted Online's Server(s)!]]--
    	  --[[http://www.exaltedonline.net]]--
    
    
    function Item_OnUse(item, player, event)
    print "Item Right-Clicked!"
        if (player:IsInCombat() == true) then
        	player:SendAreaTriggerMessage("I wont work before you get out of combat, silly!")
        	player:SendBroadcastMessage("I wont work before you get out of combat, silly!")
    else
    	item:GossipCreateMenu(3543, player, 0)
        	item:GossipMenuAddItem(25, "Open my awesome Command Box!", 1, 1)
        	item:GossipMenuAddItem(25, "Close Me!", 2, 0)
    	item:GossipMenuAddItem(25, "Remove Ressurection Sickness!", 3, 0)
        	item:GossipSendMenu(player)
        end
    end
    
    	if (intid == 3) then
    	player:LearnSpell(15007)
    	player:UnlearnSpell(15007)
    	player:SendAreaTriggerMessage("Good as new!")
    	player:SendBroadcastMessage("Good as new!")
    end
    
    RegisterItemGossipEvent(26,1,"Item_OnUse")
    For testing try this, is there any error in your world.exe, then post it.

  6. #6
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Didn't work T_T

Similar Threads

  1. [Creation] Please Don't Leave Me
    By Distanced in forum Art & Graphic Design
    Replies: 5
    Last Post: 05-07-2009, 03:30 PM
All times are GMT -5. The time now is 06:45 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