Lua issue ( hide seek script) menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    zozoka's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua issue ( hide seek script)

    so here is the script:
    Code:
    function On_Gossip (pUnit, event, player)
    pUnit:GossipCreateMenu(100, player)
    pUnit:GossipMenuAddItem(player, 0, "noJIy4uTe CBOu nPu3!", 1, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus (pUnit, event, player, id, intid, code)
    if(intid == 1) then
    pUnit:GossipGossipMenuAddItem(99, player)
    pUnit:GossipMenuAddItem(player, 5, "Blade", 2, 0)
    pUnit:GossipMenuAddItem(player, 5, "Claw", 3, 0)
    pUnit:GossipMenuAddItem(player, 5, "Breeching", 4, 0)
    pUnit:GossipSendMenu(player)
    pUnit:SendChatMessage(10, 0, "HawJIu CblHa XyJIuraHa!!")
    end
    end
    
    if(intid == 2) then
    pUnit:AddItem(34894)
    pUnit:Despawn(0, 0)
    end
    
    if(intid == 3) then
    pUnit:AddItem(19365)
    pUnit:Despawn(0, 0)
    end
    
    if(intid == 4) then
    pUnit:AddItem(34616)
    pUnit:Despawn(0, 0)
    end
    
    RegisterUnitGossipEvent(112112 , 1, "On_Gossip")(112112 , 2, "Gossip_Submenus")
    and so, here is an issue
    _http://www.bilder-upload.eu/show.php?file=3MD4ODrzBSvm0S2.JPG

    Lua issue ( hide seek script)
  2. #2
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
     local npcid = 112112
    
    function On_Gossip (pUnit, event, player)
    pUnit:GossipCreateMenu(3453, player, 0)
    pUnit:GossipMenuAddItem(player, 0, "noJIy4uTe CBOu nPu3!", 1, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus (pUnit, event, player, id, intid, code)
    if(intid == 1) then
    pUnit:GossipCreateMenu(3453, player, 0)
    pUnit:GossipMenuAddItem(player, 5, "Blade", 2, 0)
    pUnit:GossipMenuAddItem(player, 5, "Claw", 3, 0)
    pUnit:GossipMenuAddItem(player, 5, "Breeching", 4, 0)
    pUnit:GossipSendMenu(player)
    pUnit:SendChatMessage(10, 0, "HawJIu CblHa XyJIuraHa!!")
    end
    end
    
    if(intid == 2) then
    pUnit:AddItem(34894)
    pUnit:Despawn(0, 0)
    end
    
    if(intid == 3) then
    pUnit:AddItem(19365)
    pUnit:Despawn(0, 0)
    end
    
    if(intid == 4) then
    pUnit:AddItem(34616)
    pUnit:Despawn(0, 0)
    end
    
    RegisterUnitGossipEvent(112112,1,"On_Gossip")
    RegisterUnitGossipEvent(112112,2,"Gossip_Submenus")

  3. #3
    zozoka's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    now i have the new issue :
    scripts\hide.lua:5: calling 'GossipMenuAddItem' on bad self (number expe
    cted, got userdata)
    scripts\hide.lua:5: calling 'GossipMenuAddItem' on bad self (number expe
    cted, got userdata)
    scripts\hide.lua:5: calling 'GossipMenuAddItem' on bad self (number expe
    cted, got userdata)
    scripts\hide.lua:5: calling 'GossipMenuAddItem' on bad self (number expe
    cted, got userdata)

  4. #4
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
     local npcid = 112112
    
    function On_Gossip(pUnit, event, player)
    	pUnit:GossipCreateMenu(3453, player, 0)
    	pUnit:GossipMenuAddItem(0, "noJIy4uTe CBOu nPu3!", 7, 0)
    	pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(pUnit, event, player, id, intid, code)
    if(intid == 7) then
    	pUnit:SendChatMessage(10, 0, "HawJIu CblHa XyJIuraHa!!")
    	pUnit:GossipCreateMenu(3453, player, 0)
    	pUnit:GossipMenuAddItem(0, "Blade", 5, 0)
    	pUnit:GossipMenuAddItem(0, "Claw", 6, 0)
    	pUnit:GossipMenuAddItem(0, "Breeching", 4, 0)
    	pUnit:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    	player:AddItem(34894, 1)
    	pUnit:GossipComplete(player)
    end
    
    if(intid == 6) then
    	player:AddItem(19365, 1)
    	pUnit:GossipComplete(player)
    end
    
    if(intid == 4) then
    	player:AddItem(34616, 1)
    	pUnit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(112112,1,"On_Gossip")
    RegisterUnitGossipEvent(112112,2,"Gossip_Submenus")
    I don't see the hide and seek in it tho...
    Last edited by Aznex; 09-30-2008 at 03:31 PM.

  5. #5
    zozoka's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BIG THX, but npc don`t despawn after the prize have claimed((
    I has made that npc is despawn, but now how to made that he will announce that he is find and event is closed?
    Last edited by zozoka; 09-30-2008 at 03:41 PM.

  6. #6
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    EDIT:
    Code:
     local npcid = 200005
    
    function On_Gossip(pUnit, event, player)
    	pUnit:GossipCreateMenu(3453, player, 0)
    	pUnit:GossipMenuAddItem(0, "noJIy4uTe CBOu nPu3!", 7, 0)
    	pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(pUnit, event, player, id, intid, code)
    if(intid == 7) then
    	pUnit:SendChatMessage(10, 0, "HawJIu CblHa XyJIuraHa!!")
    	pUnit:GossipCreateMenu(3453, player, 0)
    	pUnit:GossipMenuAddItem(0, "Blade", 5, 0)
    	pUnit:GossipMenuAddItem(0, "Claw", 6, 0)
    	pUnit:GossipMenuAddItem(0, "Breeching", 4, 0)
    	pUnit:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    	player:AddItem(34894, 1)
    	pUnit:Despawn(0, 0)
    	pUnit:GossipComplete(player)
    end
    
    if(intid == 6) then
    	player:AddItem(19365, 1)
    	pUnit:Despawn(0, 0)
    	pUnit:GossipComplete(player)
    end
    
    if(intid == 4) then
    	player:AddItem(34616, 1)
    	pUnit:Despawn(0, 0)
    	pUnit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(200005,1,"On_Gossip")
    RegisterUnitGossipEvent(200005,2,"Gossip_Submenus")
    Last edited by Aznex; 09-30-2008 at 03:56 PM.

  7. #7
    zozoka's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its all OK, but how to change this strange text?
    ImageShack - Hosting :: wowscrnshot100108013420ce3.jpg

Similar Threads

  1. [Lua] Working Hide & Seek
    By MuffinVendor in forum WoW EMU General Releases
    Replies: 4
    Last Post: 10-09-2008, 06:19 PM
  2. [LUA][SQL] Kil'jaeden Script
    By BrantX in forum World of Warcraft Emulator Servers
    Replies: 47
    Last Post: 06-21-2008, 10:51 AM
  3. [Guide]More LUA ascent 2.3 scripts
    By Pragma in forum WoW EMU Guides & Tutorials
    Replies: 27
    Last Post: 04-10-2008, 01:06 PM
  4. [Help] New to LUA, Need help with script.
    By nickelo in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-14-2008, 11:23 PM
  5. [Help] i need Lua help with this script...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 03-03-2008, 03:45 PM
All times are GMT -5. The time now is 07:35 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