Plz Help me with my lua ;S menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    alfen95's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Plz Help me with my lua ;S

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Meeting and dueling places", 1, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Meeting and dueling places", 1, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Gmisland", 300, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 300) then
    player:Teleport(1, 16205.507966, 16214.343750, 1.111040)
    unit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(333333, 1, "On_Gossip")
    RegisterUnitGossipEvent(333333, 2, "Gossip_Submenus")
    Every time i load World i Get the message : Unexepted symbols near ` and something like that.

    I have enabled luas but it still says its wrong :S

    Plz Help me with my lua ;S
  2. #2
    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)
    Hi

    i don't know whats wrong with this script oO

    copy that into a new lua and put it into your scripts folder.

    Code:
    function NPC_OnGossip(Unit, Event, player)
    Unit:GossipCreateMenu(3544, player, 0)
    Unit:GossipMenuAddItem(2, "Meeting and dueling places", 1, 0)
    Unit:GossipSendMenu(player)
    end
    
    function NPC_OnSelect(Unit, Event, player, MenuId, id, Code)
    if (id == 999) then
    Unit:GossipMenuAddItem(2, "Meeting and dueling places", 1, 0)
    Unit:GossipComplete(player)
    end
    
    if (id == 1) then
    Unit:GossipCreateMenu(3544, player, 0)
    Unit:GossipMenuAddItem(1, "GM Island", 300, 0)
    Unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    Unit:GossipComplete(player)
    end
    
    if (id == 300) then
    player:Teleport(1, 16205.507966, 16214.343750, 1.111040)
    Unit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(333333, 1, "NPC_OnGossip")
    RegisterUnitGossipEvent(333333, 2, "NPC_OnSelect")
    Maybe this works for you.

  3. #3
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not 100% sure, but I believe this should work.

    Code:
    local npcid = 333333
    
    function Menu_OnGossipTalk(unit, event, player)
    	unit:GossipCreateMenu(3544, player, 0)
    	unit:GossipMenuAddItem(2, "Meeting and dueling places", 1, 0)
    	unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 999) then
    	unit:GossipCreateMenu(3543, player, 0)
    	unit:GossipMenuAddItem(2, "Meeting and dueling places", 1, 0)
    	unit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    	unit:GossipCreateMenu(3543, player, 0)
    	unit:GossipMenuAddItem(1, "Gmisland", 300, 0)
    	unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    	unit:GossipSendMenu(player)
    end
    
    if(intid == 300) then
    player:Teleport(1, 16205.507966, 16214.343750, 1.111040)
    unit:GossipComplete(player)
    end
    end
     
    RegisterUnitGossipEvent(333333,1,"Menu_OnGossipTalk")
    RegisterUnitGossipEvent(333333,2,"NPC_OnGossip_select")

  4. #4
    alfen95's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    14
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx ;D
    it worked ;D

Similar Threads

  1. Can someone please help me with my lua script.
    By ConnorJ in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 08-20-2013, 05:19 AM
  2. Plz help me with my Lua Teleporter Script
    By alfen95 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 07-26-2009, 03:37 PM
  3. plz Help with getting on server
    By DarkAdvocate in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 01-26-2008, 07:20 AM
  4. Help Me With A Thing Here! Plz Answer Fast
    By heijheija in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 09-12-2007, 08:35 AM
  5. Problems with WoWGlider.. Plz help
    By malware in forum World of Warcraft General
    Replies: 9
    Last Post: 09-08-2006, 09:07 PM
All times are GMT -5. The time now is 11:48 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