Whats wrong with this LUA Script? menu

User Tag List

Results 1 to 2 of 2
  1. #1
    controlsx2's Avatar Member
    Reputation
    16
    Join Date
    Jun 2007
    Posts
    223
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whats wrong with this LUA Script?

    No matter what i try it doesnt seem to work. What happens right now is if your click Instant 80 the window closes instantly if you click the other nothing happens.

    Code:
    function talk(Unit, event, player)
    Unit:GossipCreateMenu(5192, player, 0)
    Unit:GossipMenuAddItem(0, "Instant Become Level 80", 1,0)
    Unit:GossipMenuAddItem(0, "Choose to Take a Leveling Road Where Great Treasure Awaits!", 2,0)
    Unit:GossipSendMenu(player)
    end
    
    function select(Unit, event, player, id, intid, code)
    if(intid == 1) then
    Unit:GossipCreateMenu(5193, player, 0)
    Unit:GossipMenuAddItem(0, "If your Choose The Path of Instant 80, i will use my magic to give you enough experience to level to 80 and teleport you to the mall. Although you will never be able to return to me to change your mind.", 1,0)
    Unit:GossipMenuAddItem(0, "I Have Made my Decision! Level Me!!", 4,4)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    Unit:GossipCreateMenu(5194, player, 0)
    Unit:GossipMenuAddItem(0, "If your Choose The Path of Leveling, i will use my magic to teleport you to a leveling road, i will also give you an Focusing Stone Which will allow you freely travel back and fourth between the leveling road and the rest of the world! Upon reaching 80 you will be given a choice of a many great objects, Although you will be Permitted to change your mind if you choose to have my magic boost you then your soul will be forever tainted and you will never recieve the weapon i speak of", 75,4)
    Unit:GossipMenuAddItem(0, "I Have Made my Decision! Teleport Me!!", 5,4)
    Unit:GossipMenuAddItem(0, "I am unsure show me my other options again", 75,4)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    Unit:GossipCreateMenu(5195, player, 0)
    player:SetPlayerLevel(80)
    Unit:SendChatMessage(0,0, "Ahhhh, My Power is Not Strong Enough, i cannot teleport you! Lucky were still in development lol xD Ill fix it before release we just need a mall first")
    Unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    Unit:GossipCreateMenu(5196, player, 0)
    Unit:SendChatMessage(0,0, "Ahhhh, My Power is Not Strong Enough, i cannot teleport you! Lucky were still in development lol xD Ill fix it before release we just need a mall first")
    Unit:GossipMenuAddItem(0, "[Main Menu]", 75, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 75) then
    Unit:GossipCreateMenu(5197, player, 0)
    Unit:GossipMenuAddItem(0, "Instant Become Level 80", 1,0)
    Unit:GossipMenuAddItem(0, "Choose to Take a Leveling Road Where Great Treasure Awaits!", 2,0)
    Unit:GossipSendMenu(player)
    end
    end
    
    RegisterUnitGossipEvent(55192, 1, "talk")
    RegisterUnitGossipEvent(55192 ,2, "select")

    Whats wrong with this LUA Script?
  2. #2
    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)
    edit: i failed - but make sure SetPlayerLevel works on your server. i know its bugged out and doesn't work on mine.

    Also, i know certain NPCtext ID's won't let you talk to a gossip npc for some reason, its happened to me a few times. Just try changing
    GossipCreateMenu(xxx, player, 0) to 100 or something, just to see if it works.
    Last edited by Vision1000; 06-16-2009 at 01:10 AM.

Similar Threads

  1. Whats wrong with my LUA script?
    By controlsx2 in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 03-03-2009, 11:09 AM
  2. whats wrong with this LUA?
    By Envoke in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 02-22-2009, 10:06 AM
  3. [helpzerz] What is wrong with this lua script?
    By w21froster in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 05-21-2008, 09:45 PM
  4. Whats wrong with this LUA Script?
    By controlsx2 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-20-2008, 03:03 PM
All times are GMT -5. The time now is 05:50 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