[Lua] Help me :P menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Help me :P

    well i tryed to make this lua script, when you have completed a speciel quest you have acces to some functions. its queen and king. So when you done the king quest it just have to say something to him. And if you completed the Queen quest you have acces to some functions.

    Can't see whats wrong in it. +Rep to the one ho fix it

    HTML Code:
    function On_Gossip(unit, event, player)
    
    if (player:HasFinishedQuest(800001) == true) then
    unit:GossipCreateMenu(800000, player, 0)
    unit:GossipMenuAddItem(0, "Kristian is drunk agian.", 1, 0)
    unit:GossipMenuAddItem(0, "Im bored!", 2, 0)
    unit:GossipMenuAddItem(0, "We been threated by war!", 3, 0)
    unit:GossipSendMenu(player)
    else
    if (player:HasFinishedQuest(800000) == true) then
    unit:GossipCreateMenu(799999, player, 0)
    unit:GossipSendMenu(player)
    else
    unit:GossipCreateMenu(799998, player, 0)
    unit:GossipSendMenu(player)
    end
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 999) then
    unit:GossipCreateMenu(800000, player, 0)
    unit:GossipMenuAddItem(0, "Kristian is drunk agian.", 1, 0)
    unit:GossipMenuAddItem(0, "Im bored!", 2, 0)
    unit:GossipMenuAddItem(0, "We been threated by war!", 3, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    unit:GossipCreateMenu(800001, player, 0)
    unit:GossipMenuAddItem(0, "I'll need help with something else.", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    unit:GossipCreateMenu(800002, player, 0)
    unit:GossipMenuAddItem(0, "I'll need help with something else.", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    unit:GossipCreateMenu(800003, player, 0)
    unit:GossipMenuAddItem(0, "I'll need help with something else.", 999, 0)
    unit:GossipSendMenu(player)
    end
    end
    
    RegisterUnitGossipEvent(90923, 1, "On_Gossip")
    RegisterUnitGossipEvent(90923, 2, "Gossip_Submenus")

    [Lua] Help me :P
  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)
    I think you forgot to add a third 'end' in the first function.
    So try this
    Code:
    function On_Gossip(unit, event, player)
    
    if (player:HasFinishedQuest(800001) == true) then
    unit:GossipCreateMenu(800000, player, 0)
    unit:GossipMenuAddItem(0, "Kristian is drunk agian.", 1, 0)
    unit:GossipMenuAddItem(0, "Im bored!", 2, 0)
    unit:GossipMenuAddItem(0, "We been threated by war!", 3, 0)
    unit:GossipSendMenu(player)
    else
    if (player:HasFinishedQuest(800000) == true) then
    unit:GossipCreateMenu(799999, player, 0)
    unit:GossipSendMenu(player)
    else
    unit:GossipCreateMenu(799998, player, 0)
    unit:GossipSendMenu(player)
    end
    end
    end

  3. #3
    Scubast3ve's Avatar Member
    Reputation
    55
    Join Date
    Apr 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    if (player:HasFinishedQuest(800001) == true) then
    unit:GossipCreateMenu(800000, player, 0)
    unit:GossipMenuAddItem(0, "Kristian is drunk agian.", 1, 0)
    unit:GossipMenuAddItem(0, "Im bored!", 2, 0)
    unit:GossipMenuAddItem(0, "We been threated by war!", 3, 0)
    unit:GossipSendMenu(player)
    elseif (player:HasFinishedQuest(800000) == true) then
    unit:GossipCreateMenu(799999, player, 0)
    unit:GossipSendMenu(player)
    else
    unit:GossipCreateMenu(799998, player, 0)
    unit:GossipSendMenu(player)
    end
    end
    elseif is a command use it. i didnt check anything else so ill b back when im not lazxy
    Don't Forget To Give Rep To People Who Help You.

  4. #4
    Tikki100's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2008
    Posts
    83
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Scubast3ve verzion works! Thankyou so much! I add you rep

    THREAD CLOSED ^^ I dont need anymore help :P

Similar Threads

  1. [Help] Need LUA help? Post here!
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 10-03-2010, 01:18 PM
  2. [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
  3. LUA help
    By stoneharry in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 02-25-2008, 03:27 PM
  4. Lua help
    By reconz in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-18-2008, 07:03 PM
  5. Lua help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-04-2008, 12:17 PM
All times are GMT -5. The time now is 09:09 PM. 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