scipt not workking with no errors menu

User Tag List

Results 1 to 6 of 6
  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)

    scipt not workking with no 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")

    scipt not workking with no errors
  2. #2
    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)
    bump anyone here

  3. #3
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    At first; as far as im conserned for gossip's gotta use player:
    not pUnit:
    try change that first
    [/COLOR]

  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)
    nope makes no difference

  5. #5
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    What error are you getting in the world.exe on load / on use.
    For future reference, it does not need to be pUnit, it could be "Pancakes" or "lololcake" for all it matters as long as you define it at the top of the function, in theory, but a lot of fixes and such are often defined for unit, Unit and/or pUnit which is why people use them more.

  6. #6
    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)
    they is no error on load or when i click on the menu

Similar Threads

  1. Where can i get ascent websites that are not hosted with Wamp ?
    By Wheeze in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-11-2007, 06:10 PM
  2. Not work with Vista?
    By [email protected] in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 11-28-2007, 01:15 PM
  3. BC not working with Chrispee
    By frogtheman in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 10-17-2007, 07:50 PM
  4. Need help with glider! Error
    By sneakks in forum World of Warcraft General
    Replies: 0
    Last Post: 08-10-2007, 03:11 PM
  5. Free World of Warcraft (10 days not playing with payment info)
    By Fakeskuh in forum World of Warcraft General
    Replies: 5
    Last Post: 06-15-2006, 12:20 PM
All times are GMT -5. The time now is 06:13 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