script not workign now errors menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    olie440's Avatar Member
    Reputation
    2
    Join Date
    Sep 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    script not workign now errors

    im trying to code a npc to give gear depending on class but not working and no errors

    Code:
    function Welcome_OnGossip(pUnit, player)
    pUnit:GossipCreateMenu(125, player, 0)
    pUnit:GossipMenuAddItem(0, "Give me gear", 1, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Welcome_npc_OnGossip(pUnit, event, player)
    pUnit:SendChatMessage(12, 0, "Welcome to WoWAnarchy please join World chat and make a ticket if you need a GM's help!")
    Welcome_OnGossip(pUnit, player)
    end
    
    function Gossip_submenus(pUnit, event, player, id, intid, code, class)
    if (intid == 1) then
    
    
    if (pUnit:GetPlayerClass()) == 1 then
    pUnit:GossipCreateMenu(153, player, 0)
    pUnit:GossipMenuAddItem(0, "DPS", 2, 0)
    pUnit:GossipMenuAddItem(0, "tank", 3, 0)
    pUnit:GossipSendMenu(player)
    end
    
    
    if ((pUnit:GetPlayerClass()) == 2) then
    pUnit:GossipCreateMenu(145, player, 0)
    pUnit:GossipMenuAddItem(0, "Ret", 4, 0)
    pUnit:GossipMenuAddItem(0, "Prot", 5, 0)
    pUnit:GossipMenuAddItem(0, "Spell", 6, 0)
    pUnit:GossipSendMenu(player)
    end
    
    end
    
    if (intid == 2) then
    pUnit:AddItem(46146)
    pUnit:AddItem(46148)
    pUnit:AddItem(46149)
    pUnit:AddItem(46150)
    pUnit:AddItem(46151)
    end
    
    if (intid == 3)	then
    pUnit:AddItem(46162)
    pUnit:AddItem(46164)
    pUnit:AddItem(46166)
    pUnit:AddItem(46167)
    pUnit:AddItem(46169)
    end
    
    if (intid == 4) then
    pUnit:AddItem(46152)
    pUnit:AddItem(46153)
    pUnit:AddItem(46154)
    pUnit:AddItem(46155)
    pUnit:AddItem(46156)
    end
    end
    RegisterUnitGossipEvent(223, 1, "Welcome_npc_OnGossip")
    RegisterUnitGossipEvent(223, 2, "Gossip_submenus")

    script not workign now errors
  2. #2
    Allstar .ιllιlı.'s Avatar Banned
    Reputation
    284
    Join Date
    Jan 2009
    Posts
    481
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you sure your emulator supports .lua code? Have you turned it on?

  3. #3
    olie440's Avatar Member
    Reputation
    2
    Join Date
    Sep 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah it hooks to the npc fine just when i hit "give me gear" it doesn't take me to the next menu

  4. #4
    olie440's Avatar Member
    Reputation
    2
    Join Date
    Sep 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone got anyideas

  5. #5
    ßetray's Avatar Contributor
    Reputation
    207
    Join Date
    Apr 2007
    Posts
    659
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd suggest reposting or requesting this thread be moved to:
    Emulator Questions - MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides



Similar Threads

  1. LUA script not working
    By pedobear123 in forum World of Warcraft General
    Replies: 12
    Last Post: 09-01-2008, 09:38 AM
  2. Script not working
    By LJN in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-16-2008, 02:47 PM
  3. [HELP] Lua boss script not working-solutions?
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 03-21-2008, 08:19 AM
  4. [Help] Lua Script Not Working
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 26
    Last Post: 03-16-2008, 02:13 PM
  5. Simple Lua Script , not working need help!
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 12-30-2007, 02:06 PM
All times are GMT -5. The time now is 01:57 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