Whats wrong with my Script menu

Shout-Out

User Tag List

Results 1 to 10 of 10
  1. #1
    edded's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whats wrong with my Script

    Can someone tell me whats from with this script. The error isn't when world is loading but in game when the script is beening run. This is the error

    scripts\Teleporter.lua:3: attempt to index global 'unit' (a nil value)


    Heres the script


    Code:
    local npcid = 995533
    function On_Gossip(Unit, event, player)
    unit:GossipCreateMenu(5555, player, 0) 
    unit:GossipMenuAdditem(6, "[Mall Vendors]", 600, 0)
    unit:GossipMenuAddItem(6, "[Teleporter Services]", 601, 0)
    unit:GossipMenuAddItem(4, "[Morphing Services]", 602, 0)
    unit:GossipMenuAddItem(4, "[Jukebox]", 603, 0)
    unit:GossipMenuAddItem(4, "[Sound Effects]", 608, 0)
    unit:GossipMenuAddItem(3, "[Advance All Skills]", 620, 0)
    unit:GossipMenuAddItem(3, "[Advance Riding Skill]", 653, 0)    
    unit:GossipMenuAddItem(2, "[Buff Options]", 605, 0)
    unit:GossipMenuAddItem(2, "[Remove Ressurection Sickness]", 604, 0)
    unit:GossipMenuAddItem(6, "[Hearthstone Fix]", 607, 0) 
    unit:GossipMenuAddItem(1, "[F.A.Q Section]", 606, 0)
    unit:GossipMenuAddItem(3, "[Spawn Repair Gnome]", 609, 0)
    unit:GossipMenuAddItem(1, "[Second Main Page]", 614, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(Unit, event, player, id, intid, code, misc)
    if(intid == 614) then 
    unit:GossipCreateMenu(3547, player, 0)
    unit:GossipMenuAddItem(6, "[Non-Combat Pet Store]", 619, 0)  
    unit:GossipMenuAddItem(6, "[QuizMaster]", 616, 0)
    unit:GossipMenuAddItem(5, "[Special Mounts]", 653, 0)
    unit:GossipMenuAddItem(5, "[Scrolls]", 656, 0)
    unit:GossipMenuAddItem(4, "[Flasks & Potions]", 672, 0)
    unit:GossipSendMenu(player)
    end
    end
    
    if(intid == 672) then
    unit:GossipCreateMenu(3559, player, 0)
    unit:GossipMenuAddItem(3, "[Elixir of Mighty Thoughts]", 686, 0)
    unit:GossipMenuAddItem(3, "[Elixir of Mighty Agility]", 685, 0)
    unit:GossipMenuAddItem(3, "[Elixir of Mighty Foritude]", 684, 0)
    unit:GossipMenuAddItem(4, "[Elixir of Mighty Strength]", 683, 0)
    unit:GossipMenuAddItem(3, "[Elixir of Protection]", 682, 0)
    unit:GossipMenuAddItem(3, "[Elixir of Deadly Strikes]", 681, 0)
    unit:GossipMenuAddItem(3, "[Elixir of Mighty Defense]", 678, 0)
    unit:GossipMenuAddItem(4, "[Elixir of Expertise]", 679, 0)
    unit:GossipMenuAddItem(3, "[Elixir of Armor Piercing]", 680, 0)
    unit:GossipMenuAddItem(3, "[Elixir of Lightning Speed]", 673, 0)  
    unit:GossipMenuAddItem(2, "[Flask of the Frost Wyrm]", 674, 0)
    unit:GossipMenuAddItem(3, "[Flask of Stoneblood]", 675, 0)
    unit:GossipMenuAddItem(4, "[Flash of Endless Rage]", 676, 0)
    unit:GossipMenuAddItem(3, "[Flask of Pure Mojo]", 677, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 673) then
    player:AddItem(44331, 20)
    end
    if(intid == 674) then
    player:AddItem(40082, 20)
    end
    if(intid == 675) then
    player:AddItem(40083, 20)
    end
    if(intid == 676) then
    player:AddItem(40084, 20)
    end
    if(intid == 677) then
    player:AddItem(40404, 20)
    end
    if(intid == 678) then
    player:AddItem(44328, 20)
    end
    if(intid == 679) then
    player:AddItem(44329, 20)
    end
    if(intid == 680) then
    player:AddItem(44330, 20)
    end
    if(intid == 681) then
    player:AddItem(44327, 20)
    end
    if(intid == 682) then
    player:AddItem(40097, 20)
    end
    if(intid == 683) then
    player:AddItem(40072, 20)
    end
    if(intid == 684) then
    player:AddItem(40078, 20)
    end
    if(intid == 685) then
    player:AddItem(39666, 20)
    end
    if(intid == 686) then
    player:AddItem(44332, 20)
    end
    
    if(intid == 656) then
    unit:GossipCreateMenu(3559, player, 0)
    unit:GossipMenuAddItem(3, "[Scroll of Agility VIII]", 668, 0)  
    unit:GossipMenuAddItem(2, "[Scroll of Intellect VIII]", 669, 0)
    unit:GossipMenuAddItem(3, "[Scroll of Spirit VIII]", 670, 0)
    unit:GossipMenuAddItem(4, "[Scroll of Stamina VIII]", 671, 0)
    unit:GossipMenuAddItem(3, "[Scroll of Strength VIII]", 672, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 668) then
    player:AddItem(43464, 20)
    end
    if(intid == 669) then
    player:AddItem(37092, 20)
    end
    if(intid == 670) then
    player:AddItem(37098, 20)
    end
    if(intid == 671) then
    player:AddItem(37094, 20)
    end
    if(intid == 672) then
    player:AddItem(43466, 20)
    end
    
    if(intid == 619) then
    unit:GossipCreateMenu(3557, player, 0)
    unit:GossipMenuAddItem(3, "[Guns]", 638, 0)  
    unit:GossipMenuAddItem(3, "[Maces]", 639, 0)
    unit:GossipMenuAddItem(2, "[Two-Handed Swords]", 640, 0)
    unit:GossipMenuAddItem(3, "[Bows]", 641, 0)
    unit:GossipMenuAddItem(4, "[Axes]", 642, 0)
    unit:GossipMenuAddItem(3, "[Swords]", 643, 0)
    unit:GossipMenuAddItem(5, "[Staves]", 644, 0)
    unit:GossipMenuAddItem(3, "[Two-Handed Axes]", 645, 0)
    unit:GossipMenuAddItem(6, "[Two-Handed Maces]", 646, 0)
    unit:GossipMenuAddItem(3, "[Daggers]", 647, 0)
    unit:GossipMenuAddItem(3, "[Thrown]", 648, 0)
    unit:GossipMenuAddItem(3, "[Crossbows]", 649, 0)
    unit:GossipMenuAddItem(3, "[Wands]", 650, 0)
    unit:GossipMenuAddItem(3, "[Polearms]", 651, 0)
    unit:GossipMenuAddItem(3, "[Fist Weapons]", 652, 0)
    unit:GossipSendMenu(player)
    end
    if(intid == 638) then
    unit:AdvanceSkill(46, 500)
    end
    if(intid == 639) then
    unit:AdvanceSkill(54, 500)
    end
    if(intid == 640) then
    unit:AdvanceSkill(55, 500)
    end
    if(intid == 641) then
    unit:AdvanceSkill(45, 500)
    end
    if(intid == 642) then
    unit:AdvanceSkill(44, 500)
    end
    if(intid == 643) then
    unit:AdvanceSkill(43, 500)
    end
    if(intid == 644) then
    unit:AdvanceSkill(136, 500)
    end
    if(intid == 645) then
    unit:AdvanceSkill(172, 500)
    end
    if(intid == 646) then
    unit:AdvanceSkill(160, 500)
    end
    if(intid == 647) then
    unit:AdvanceSkill(173, 500)
    end
    if(intid == 648) then
    unit:AdvanceSkill(176, 500)
    end
    if(intid == 649) then
    unit:AdvanceSkill(226, 500)
    end
    if(intid == 650) then
    unit:AdvanceSkill(228, 500)
    end
    if(intid == 651) then
    unit:AdvanceSkill(229, 500)
    end
    if(intid == 652) then
    unit:AdvanceSkill(473, 500)
    end
    
    if(intid == 654) then
    unit:GossipCreateMenu(3558, player, 0)
    unit:GossipMenuAddItem(3, "[Old Crappy McWeakSauce]", 655, 0)  
    unit:GossipMenuAddItem(2, "[Fluorescent Mechanostrider]", 657, 0)
    unit:GossipMenuAddItem(3, "[Frost Wyrm]", 658, 0)
    unit:GossipMenuAddItem(4, "[Kessel's Elekk]", 659, 0)
    unit:GossipMenuAddItem(3, "[Northrend Nerubian Mount (Test)]", 660, 0)
    unit:GossipMenuAddItem(5, "[Naxxramas Deathcharger]", 661, 0)
    unit:GossipMenuAddItem(3, "[Red and Blue Mechanostrider]", 662, 0)
    unit:GossipMenuAddItem(6, "[Baron Rivendare's Deathcharger]", 663, 0)
    unit:GossipMenuAddItem(3, "[Pink Tallstrider]", 664, 0)
    unit:GossipMenuAddItem(3, "[Ivory Tallstrider]", 665, 0)
    unit:GossipMenuAddItem(3, "[Dodostrider]", 666, 0)
    unit:GossipMenuAddItem(3, "[Video Mount]", 667, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 667) then
    player:LearnSpell(33631)
    player:GossipComplete(player)
    end
    if(intid == 666) then
    player:LearnSpell(34068)
    player:GossipComplete(player)
    end
    if(intid == 665) then
    player:LearnSpell(8396)
    player:GossipComplete(player)
    end
    if(intid == 664) then
    player:LearnSpell(10802)
    player:GossipComplete(player)
    end
    if(intid == 663) then
    player:LearnSpell(17481)
    player:GossipComplete(player)
    end
    if(intid == 662) then
    player:LearnSpell(17456)
    player:GossipComplete(player)
    end
    if(intid == 661) then
    player:LearnSpell(29059)
    player:GossipComplete(player)
    end
    if(intid == 660) then
    player:LearnSpell(46908)
    player:GossipComplete(player)
    end
    if(intid == 655) then
    player:LearnSpell(32420)
    player:GossipComplete(player)
    end
    if(intid == 659) then
    player:LearnSpell(31973)
    player:GossipComplete(player)
    end
    if(intid == 658) then
    player:LearnSpell(43810)
    player:GossipComplete(player)
    end
    if(intid == 657) then
    player:LearnSpell(17458)
    player:GossipComplete(player)
    end
    
    if(intid == 618) then
    player:LearnSpell(39160)
    player:LearnSpell(42447)
    player:LearnSpell(6758)
    player:LearnSpell(51510)
    player:LearnSpell(50317)
    player:GossipComplete(player)
    end 
    
    if(intid == 616) then
    unit:GossipCreateMenu(3549, player, 0) 
    unit:GossipMenuAddItem(2, "[World of Warcraft Quiz (1)]", 633, 0)
    unit:GossipMenuAddItem(5, "[Misc Quiz (2)]", 634, 0)
    unit:GossipMenuAddItem(6, "[Car Quiz (3)]", 635, 0)
    unit:GossipMenuAddItem(6, "[Computer Quiz (4)]", 636, 0)
    unit:GossipMenuAddItem(6, "[Counter-Strike Quiz (5)]", 637, 0)
    unit:GossipSendMenu(player)
    end 
    
    if(intid == 615) then
    unit:GossipCreateMenu(3550, player, 0) 
    unit:GossipMenuAddItem(5, "[Dragon Kite]", 623, 0)
    unit:GossipMenuAddItem(4, "[Chucks Bucket]", 624, 0)
    unit:GossipMenuAddItem(3, "[Blue Murloc Egg]", 625, 0)
    unit:GossipMenuAddItem(3, "[Clockwork Rocket Bot]", 626, 0)
    unit:GossipMenuAddItem(2, "[Banana Charm]", 627, 0)
    unit:GossipMenuAddItem(3, "[Hippogryph Hatchling]", 628, 0)
    unit:GossipMenuAddItem(3, "[Egbert's Egg]", 629, 0)
    unit:GossipMenuAddItem(3, "[Elekk Training Collar]", 630, 0)
    unit:GossipMenuAddItem(3, "[Gaint Sewer Rat]", 631, 0)
    unit:GossipMenuAddItem(4, "[Ghostly Skull]", 632, 0)
    unit:GossipMenuAddItem(4, "[Mojo]", 633, 0)
    unit:GossipSendMenu(player)
    end 
    
    if(intid == 623) then
    player:AddItem(34493, 1)
    end
    if(intid == 624) then
    player:AddItem(35350, 1)
    end
    if(intid == 625) then
    player:AddItem(20371, 1)
    end
    if(intid == 626) then
    player:AddItem(34425, 1)
    end
    if(intid == 627) then
    player:AddItem(32588, 1)
    end
    if(intid == 628) then
    player:AddItem(23713, 1)
    end
    if(intid == 629) then
    player:AddItem(32616, 1)
    end
    if(intid == 630) then
    player:AddItem(32622, 1)
    end
    if(intid == 631) then
    player:AddItem(43698, 1)
    end
    if(intid == 632) then
    player:AddItem(39973, 1)
    end
    if(intid == 633) then
    player:AddItem(33993, 1)
    end
    
    if(intid == 600) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(8, "[Class Trainers]", 1, 0)
    unit:GossipMenuAddItem(8, "[Tier 7]", 2, 0)
    unit:GossipMenuAddItem(8, "[Weapons]", 3, 0)
    unit:GossipMenuAddItem(8, "[Rings] [Necklace] [Shield] [Trinkets]", 4, 0)
    unit:GossipMenuAddItem(8, "[Tabard] [Cloak]", 5, 0)
    unit:GossipMenuAddItem(8, "[Season 5] [Relics] [Container]", 6, 0)
    unit:GossipMenuAddItem(8, "[Glyph 1] [Glyph 2] [Wrist]", 7, 0)
    unit:GossipMenuAddItem(8, "[Book A-Z] [Leather A-Z]", 8, 0)
    unit:GossipMenuAddItem(8, "[Jewelcrafting A-Z] [Engineering/Enchanting A-Z]", 9, 0)
    unit:GossipMenuAddItem(8, "[Alchemy/Blacksmithing/Tailoring]", 10, 0)
    unit:GossipMenuAddItem(8, "[Waist] [Feet] [Heirloom]", 11, 0)
    unit:GossipMenuAddItem(8, "[Ground Mounts] [Flying Mounts]", 12, 0)
    unit:GossipMenuAddItem(8, "[Item Enhancement]", 13, 0)
    unit:GossipMenuAddItem(8, "[Reagents 1]", 14, 0)
    unit:GossipMenuAddItem(8, ">->Next Page>->", 500, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 605) then
    unit:FullCastSpellOnTarget(33081, player)
    unit:FullCastSpellOnTarget(33082, player)
    unit:FullCastSpellOnTarget(33080, player)
    unit:FullCastSpellOnTarget(33079, player)
    unit:FullCastSpellOnTarget(33078, player)
    unit:FullCastSpellOnTarget(33077, player)
    end
    
    if(intid == 500) then 
    unit:GossipCreateMenu(3543, player, 0) 
    unit:GossipMenuAddItem(8, "[Reagents 2]", 16, 0)  
    unit:GossipMenuAddItem(8, "[General Goods]", 17, 0)
    unit:GossipMenuAddItem(8, "[Quiver, AmmoPouch, Projectile]", 18, 0)
    unit:GossipMenuAddItem(8, "[Currency]", 19, 0)
    unit:GossipMenuAddItem(8, "[Gemstones]", 20, 0)
    unit:GossipMenuAddItem(8, "[Armor Tokens, Keys]", 21, 0)
    unit:GossipMenuAddItem(8, "[Proffession Trainers]", 22, 0)
    unit:GossipMenuAddItem(8, "[Riding Trainer]", 23, 0)
    unit:GossipMenuAddItem(8, "[Weapons Trainer]", 24, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 606) then 
    unit:GossipCreateMenu(1010, player, 0)
    unit:GossipMenuAddItem(1, "Q: How do I change my Realmlist?", 900, 0)
    unit:GossipMenuAddItem(1, "A: Go into My Computer (Either C:/ - D:/ - E:/) and Go into My Program Files, find World of warcraft", 901, 0)
    unit:GossipMenuAddItem(1, "Q: What is the Orginial Patchlist for WoW Retail?", 902, 0)
    unit:GossipMenuAddItem(1, "A: Set realmlist: eu.logon.worldofwarcraft.com", 904, 0)
    unit:GossipMenuAddItem(1, "A: Set patchlist: eu.version.worldofwarcraft.com", 903, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 608) then 
    unit:GossipCreateMenu(89998, player, 0)
    unit:GossipMenuAddItem(0, "Illidan", 8099, 0)
    unit:GossipMenuAddItem(0, "Kil Jaeden", 8097, 0)
    unit:GossipMenuAddItem(0, "Misc", 8096, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 8099) then
    unit:GossipCreateMenu(89997, player, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 1", 8001, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 2", 8002, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 3", 8003, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 4", 8004, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 5", 8005, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 6", 8006, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 7", 8007, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 8", 8008, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 9", 8009, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 10", 8010, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 11", 8011, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 12", 8012, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 13", 8013, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 14", 8014, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 15", 8015, 0)
    unit:GossipMenuAddItem(1,"[Second Page]", 8098, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 8098) then
    unit:GossipCreateMenu(89996, player, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 16", 8016, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 17", 8017, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 18", 8018, 0)
    unit:GossipMenuAddItem(1,"Play Illidan 19", 8019, 0)
    unit:GossipMenuAddItem(1,"[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 8097) then
    unit:GossipCreateMenu(89995, player, 0)
    unit:GossipMenuAddItem(1,"Play Kil Jaeden 1", 8020, 0)
    unit:GossipMenuAddItem(1,"Play Kil Jaeden 2", 8021, 0)
    unit:GossipMenuAddItem(1,"Play Kil Jaeden 3", 8022, 0)
    unit:GossipMenuAddItem(1,"Play Kil Jaeden 4", 8023, 0)
    unit:GossipMenuAddItem(1,"Play Kil Jaeden 5", 8024, 0)
    unit:GossipMenuAddItem(1,"Play Kil Jaeden 6", 8025, 0)
    unit:GossipMenuAddItem(1,"Play Kil Jaeden 7", 8026, 0)
    unit:GossipMenuAddItem(1,"Play Kil Jaeden 8", 8027, 0)
    unit:GossipMenuAddItem(1,"Play Aveena 1", 8028, 0)
    unit:GossipMenuAddItem(1,"Play Aveena 2", 8029, 0)
    unit:GossipMenuAddItem(1,"Play Aveena 3", 8030, 0)
    unit:GossipMenuAddItem(1,"Play Kalecgos", 8031, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 8096) then
    unit:GossipCreateMenu(89994, player, 0)
    unit:GossipMenuAddItem(1,"Play MURLOC", 8032, 0)
    unit:GossipMenuAddItem(1,"Play Shade of Akama", 8033, 0)
    unit:GossipMenuAddItem(1,"Play Night Elf Female Joke", 8034, 0)
    unit:GossipMenuAddItem(1,"Play Pissed Orc Peon", 8035, 0)
    unit:GossipMenuAddItem(1,"Play Thrall Greeting", 8036, 0)
    unit:GossipMenuAddItem(1,"Play Headless Horseman Laugh", 8037, 0)
    unit:GossipMenuAddItem(1,"Play Headless Horseman Failed When all of you is dead", 8038, 0)
    unit:GossipMenuAddItem(1,"Play Headless Horseman He Dies!", 8039, 0)
    unit:GossipMenuAddItem(1,"Play Mr. Smith Deadmines 1", 8040, 0)
    unit:GossipMenuAddItem(1,"Play Mr. Smith Deadmines 2", 8041, 0)
    unit:GossipMenuAddItem(1,"Play Mr. Smith Deadmines 3", 8042, 0)
    unit:GossipMenuAddItem(1,"Play Mr. Smith Deadmines 4", 8043, 0)
    unit:GossipMenuAddItem(1,"Play Thrall - Aggroing", 8044, 0)
    unit:GossipMenuAddItem(1,"Play Thrall - Greeting", 8045, 0)
    unit:GossipMenuAddItem(1,"Play Jaina Proudmoore", 8046, 0)
    unit:GossipMenuAddItem(1,"[Second Page]", 8095, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 8095) then
    unit:GossipCreateMenu(89993, player, 0)
    unit:GossipMenuAddItem(1,"Play Summon Succubus", 8047, 0)
    unit:GossipMenuAddItem(1,"Play Succubus Buttslap whip", 8048, 0)
    unit:GossipMenuAddItem(1,"Play Horde Talk", 8049, 0)
    unit:GossipMenuAddItem(1,"Play Baby Murloc", 8050, 0)
    unit:GossipMenuAddItem(1,"Play Whissle", 8051, 0)
    unit:GossipMenuAddItem(1,"[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 8051) then 
    player:PlaySoundToSet(10027)
    player:GossipComplete(player)
    end
    
    if(intid == 8050) then 
    player:PlaySoundToSet(8475)
    player:GossipComplete(player)
    end
    
    if(intid == 8049) then 
    player:PlaySoundToSet(7120)
    player:GossipComplete(player)
    end
    
    if(intid == 8048) then 
    player:PlaySoundToSet(7096)
    player:GossipComplete(player)
    end
    
    if(intid == 8047) then 
    player:PlaySoundToSet(6099)
    player:GossipComplete(player)
    end
    
    if(intid == 8046) then 
    player:PlaySoundToSet(5882)
    player:GossipComplete(player)
    end
    
    if(intid == 8045) then 
    player:PlaySoundToSet(6004)
    player:GossipComplete(player)
    end
    
    if(intid == 8044) then 
    player:PlaySoundToSet(5880)
    player:GossipComplete(player)
    end
    
    if(intid == 8043) then 
    player:PlaySoundToSet(5779)
    player:GossipComplete(player)
    end
    
    if(intid == 8042) then 
    player:PlaySoundToSet(5778)
    player:GossipComplete(player)
    end
    
    if(intid == 8041) then 
    player:PlaySoundToSet(5777)
    player:GossipComplete(player)
    end
    
    if(intid == 8040) then 
    player:PlaySoundToSet(5775)
    player:GossipComplete(player)
    end
    
    if(intid == 8039) then 
    player:PlaySoundToSet(11964)
    player:GossipComplete(player)
    end
    
    if(intid == 8038) then 
    player:PlaySoundToSet(11967)
    player:GossipComplete(player)
    end
    
    if(intid == 8037) then 
    player:PlaySoundToSet(11965)
    player:GossipComplete(player)
    end
    
    if(intid == 8036) then 
    player:PlaySoundToSet(7214)
    player:GossipComplete(player)
    end
    
    if(intid == 8035) then 
    player:PlaySoundToSet(7195)
    player:GossipComplete(player)
    end
    
    if(intid == 8034) then 
    player:PlaySoundToSet(6179)
    player:GossipComplete(player)
    end
    
    if(intid == 8033) then 
    player:PlaySoundToSet(11389)
    player:GossipComplete(player)
    end
    
    if(intid == 8032) then 
    player:PlaySoundToSet(11802)
    player:GossipComplete(player)
    end
    
    if(intid == 8031) then 
    player:PlaySoundToSet(12541)
    player:GossipComplete(player)
    end
    
    if(intid == 8030) then 
    player:PlaySoundToSet(12513)
    player:GossipComplete(player)
    end
    
    if(intid == 8029) then 
    player:PlaySoundToSet(12512)
    player:GossipComplete(player)
    end
    
    if(intid == 8028) then 
    player:PlaySoundToSet(12511)
    player:GossipComplete(player)
    end
    
    if(intid == 8027) then 
    player:PlaySoundToSet(12501)
    player:GossipComplete(player)
    end
    
    if(intid == 8026) then 
    player:PlaySoundToSet(12500)
    player:GossipComplete(player)
    end
    
    
    if(intid == 8025) then 
    player:PlaySoundToSet(12499)
    player:GossipComplete(player)
    end
    
    if(intid == 8024) then 
    player:PlaySoundToSet(12498)
    player:GossipComplete(player)
    end
    
    if(intid == 8023) then 
    player:GossipComplete(player)
    end
    
    if(intid == 8022) then 
    player:PlaySoundToSet(12496)
    player:GossipComplete(player)
    end
    
    if(intid == 8021) then 
    player:PlaySoundToSet(12495)
    player:GossipComplete(player)
    end
    
    if(intid == 8020) then 
    player:PlaySoundToSet(12527)
    player:GossipComplete(player)
    end
    
    if(intid == 8001) then 
    player:PlaySoundToSet(11463)
    player:GossipComplete(player)
    end
    
    if(intid == 8002) then
    player:PlaySoundToSet(11464)
    player:GossipComplete(player)
    end
    
    if(intid == 8003) then
    player:PlaySoundToSet(11465)
    player:GossipComplete(player)
    end
    
    if(intid == 8004) then
    player:PlaySoundToSet(11466)
    player:GossipComplete(player)
    end
    
    if(intid == 8005) then
    player:PlaySoundToSet(11467)
    player:GossipComplete(player)
    end
    
    if(intid == 8006) then
    player:PlaySoundToSet(11468)
    player:GossipComplete(player)
    end
    
    if(intid == 8007) then
    player:PlaySoundToSet(11469)
    player:GossipComplete(player)
    end
    
    if(intid == 8008) then
    player:PlaySoundToSet(11470)
    player:GossipComplete(player)
    end
    
    if(intid == 8009) then
    player:PlaySoundToSet(11471)
    player:GossipComplete(player)
    end
    
    if(intid == 8010) then
    player:PlaySoundToSet(11472)
    player:GossipComplete(player)
    end
    
    if(intid == 8011) then
    player:PlaySoundToSet(11473)
    player:GossipComplete(player)
    end
    
    if(intid == 8012) then
    player:PlaySoundToSet(11474)
    player:GossipComplete(player)
    end
    
    if(intid == 8013) then
    player:PlaySoundToSet(11475)
    player:GossipComplete(player)
    end
    
    if(intid == 8014) then
    player:PlaySoundToSet(11476)
    player:GossipComplete(player)
    end
    
    if(intid == 8015) then
    player:PlaySoundToSet(11477)
    player:GossipComplete(player)
    end
    
    if(intid == 8016) then
    player:PlaySoundToSet(11478)
    player:GossipComplete(player)
    end
    
    if(intid == 8017) then
    player:PlaySoundToSet(11479)
    player:GossipComplete(player)
    end
    
    if(intid == 8018) then
    player:PlaySoundToSet(11480)
    player:GossipComplete(player)
    end
    
    
    if(intid == 602) then 
    unit:GossipCreateMenu(1001, player, 0) 
    unit:GossipMenuAddItem(8, "[Bosses]", 6616, 0)  
    unit:GossipMenuAddItem(8, "[Mechanicals]", 6615, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 604) then
    if(player:HasAura(15007) == true) then
    player:RemoveAura(15007)
    player:GossipComplete(player)
    end
    end
    if (intid == 607) then
    if(misc:GetItemCount(6948) < 1) then
    player:AddItem(6948, 1)
    else
    player:SendAreaTriggerMessage("You currently have a Hearthstone")
    player:GossipComplete(player)
    end
    end
    if(intid == 603) then 
    unit:GossipCreateMenu(1000, player, 0)
    unit:GossipMenuAddItem(1,"Play Anguish Walk", 7001, 0)
    unit:GossipMenuAddItem(1,"Play Vigil Walk Music", 7002, 0)
    unit:GossipMenuAddItem(1,"Play Brewfest Music", 7003, 0)
    unit:GossipMenuAddItem(1,"Play Nagrand Music", 7004, 0)
    unit:GossipMenuAddItem(1,"Play Power of the Horde", 7005, 0)
    unit:GossipMenuAddItem(1,"Play Silvermoon City Music", 7006, 0)
    unit:GossipMenuAddItem(1,"Play Drama Music", 7007, 0)
    unit:GossipMenuAddItem(1,"Play Dwarf Music", 7008, 0)
    unit:GossipMenuAddItem(1,"Play Stormwind City Music", 7009, 0)
    unit:GossipMenuAddItem(1,"Play Irish Ditty Music", 7010, 0)
    unit:GossipMenuAddItem(1,"Play Horde Tavern Music", 7011, 0)
    unit:GossipMenuAddItem(1,"Play Alliance Tavern Music", 7012, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 7001) then 
    player:PlaySoundToSet(11700)
    player:GossipComplete(player)
    end
    if(intid == 7002) then
    player:PlaySoundToSet(11702)
    player:GossipComplete(player)
    end
    if(intid == 7003) then
    player:PlaySoundToSet(11810)
    player:GossipComplete(player)
    end
    if(intid == 7004) then
    player:PlaySoundToSet(10849)
    player:GossipComplete(player)
    end
    if(intid == 7005) then
    player:PlaySoundToSet(11803)
    player:GossipComplete(player)
    end
    if(intid == 7006) then
    player:PlaySoundToSet(9801)
    player:GossipComplete(player)
    end
    if(intid == 7007) then
    player:PlaySoundToSet(11706)
    player:GossipComplete(player)
    end
    if(intid == 7008) then
    player:PlaySoundToSet(11810)
    player:GossipComplete(player)
    end
    if(intid == 7009) then
    player:PlaySoundToSet(2532)
    player:GossipComplete(player)
    end
    if(intid == 7010) then
    player:PlaySoundToSet(11805)
    player:GossipComplete(player)
    end
    if(intid == 7011) then
    player:PlaySoundToSet(5234)
    player:GossipComplete(player)
    end
    if(intid == 7012) then
    player:PlaySoundToSet(4516)
    player:GossipComplete(player)
    end
    
    if(intid == 6617) then
    unit:GossipCreateMenu(1002, player, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into A-Me 01", 6001, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Advanced Target Dummy", 6002, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Arcane Protector", 6003, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Arcane Servant", 6004, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Arcanite Dragonling", 6005, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Arcatraz Sentinel", 6006, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Archery Target", 6007, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Area 52 Death Machine", 6008, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Battle Chicken", 6009, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Crimson Cannon", 6010, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Death's Door Fel Cannon", 6011, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Electrocutioner 6000", 6012, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Gnome Drag Car", 6013, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Goblin Drag Car", 6014, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Love Fool", 6015, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6616) then
    unit:GossipCreateMenu(1003, player, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Kil'jaden", 1001, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Archimonde", 1002, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Akil'zon", 1003, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Al'ar", 1004, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Anetheron", 1005, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Attumen the Huntsman", 1006, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Azgalor", 1007, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Brutallus", 1008, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Doom Lord Kazzak", 1009, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Doomwalker", 1010, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Fathom-Lord Karathress", 1011, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Felmyst", 1012, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Gruul the Dragonkiller", 1013, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Gurtogg Bloodboil", 1014, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Halazzi", 1015, 0)
    unit:GossipMenuAddItem(6, "[Second Page]", 6612, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6612) then
    unit:GossipCreateMenu(1004, player, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Hex Lord Malacrass", 2001, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into High Astromancer Solarian", 2002, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into High King Maulgar", 2003, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into High Warlord Naj'entus", 2004, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Hydross the Unstable", 2005, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Illidan Stormrage", 2006, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Jan'alai", 2007, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Kalecgos", 2008, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Kael'thas Sunstrider", 2009, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Kaz'rogal", 2010, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Kil'jaeden", 2011, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Lady Vashj", 2012, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Leotheras the Blind", 2013, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into M'uru", 2014, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Magtheridon", 2015, 0)
    unit:GossipMenuAddItem(6, "[Third Page]", 6613, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6613) then
    unit:GossipCreateMenu(1005, player, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Maiden of Virtue", 3001, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Moroes", 3002, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Morogrim Tidewalker", 3003, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Mother Shahraz", 3004, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Nalorakk", 3005, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Netherspite", 3006, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Nightbane", 3007, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Prince Malchezaar", 3008, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Rage Winterchill", 3009, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Reliquary of the Lost", 3010, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Romulo", 3011, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Julianne", 3012, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Shade of Akama", 3013, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Shade of Aran", 3014, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Supremus", 3015, 0)
    unit:GossipMenuAddItem(6, "[Fourth Page]", 6614, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6614) then
    unit:GossipCreateMenu(1006, player, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Terestian Illhoof", 4001, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Teron Gorefiend", 4002, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into The Big Bad Wolf", 4003, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into The Curator", 4004, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into The Lurker Below", 4005, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Void Reaver", 4006, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Zul'jin", 4007, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Onyxia", 4008, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Maiev Shadowsong Large", 4009, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Maiev Shadowsong Normal", 4010, 0)
    unit:GossipMenuAddItem(6, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6615) then
    unit:GossipCreateMenu(1007, player, 0)
    unit:GossipMenuAddItem(1, "Morph Me into XT:9", 5001, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Walking Bomb", 5002, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Unpainted Mechanostrider", 5003, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Truesilver Boar", 5004, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Tonk Mine", 5005, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into The Threshwackonator 4100", 5006, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Techbot", 5007, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Swift White Mechanostrider", 5008, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Goblin Steam Tonk", 5009, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Red Mechanostrider", 5010, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into R-3D0", 5011, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Peacekeeper Security Suit", 5012, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Overwatch Mark I", 5013, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Naga Distiller", 5014, 0)
    unit:GossipMenuAddItem(1, "Morph Me Into Mekgineer Thermaplugg", 5015, 0)
    unit:GossipMenuAddItem(6, "[Second Page]", 6616, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6015) then
    player:SetModel(16011)
    player:GossipComplete(player)
    end
    
    if(intid == 6014) then
    player:SetModel(10318)
    player:GossipComplete(player)
    end
    
    if(intid == 6013) then
    player:SetModel(2490)
    player:GossipComplete(player)
    end
    
    
    if(intid == 1007) then
    player:SetModel(18526)
    player:GossipComplete(player)
    end
    
    if(intid == 1008) then
    player:SetModel(22711)
    player:GossipComplete(player)
    end
    
    if(intid == 1009) then
    player:SetModel(17887)
    player:GossipComplete(player)
    end
    
    if(intid == 1010) then
    player:SetModel(21435)
    player:GossipComplete(player)
    end
    
    if(intid == 1011) then
    player:SetModel(20662)
    player:GossipComplete(player)
    end
    
    if(intid == 1012) then
    player:SetModel(22838)
    player:GossipComplete(player)
    end
    
    if(intid == 1013) then
    player:SetModel(18698)
    player:GossipComplete(player)
    end
    
    if(intid == 1014) then
    player:SetModel(21443)
    player:GossipComplete(player)
    end
    
    if(intid == 1015) then
    player:SetModel(21632)
    player:GossipComplete(player)
    end
    
    if(intid == 2001) then
    player:SetModel(22332)
    player:GossipComplete(player)
    end
    
    if(intid == 2002) then
    player:SetModel(18239)
    player:GossipComplete(player)
    end
    
    if(intid == 2003) then
    player:SetModel(18649)
    player:GossipComplete(player)
    end
    
    if(intid == 2004) then
    player:SetModel(21174)
    player:GossipComplete(player)
    end
    
    
    if(intid == 3014) then
    player:SetModel(16621)
    player:GossipComplete(player)
    end
    
    if(intid == 3015) then
    player:SetModel(21145)
    player:GossipComplete(player)
    end
    
    if(intid == 4001) then
    player:SetModel(11343)
    player:GossipComplete(player)
    end
    
    if(intid == 4002) then
    player:SetModel(21576)
    player:GossipComplete(player)
    end
    
    if(intid == 4003) then
    player:SetModel(17053)
    player:GossipComplete(player)
    end
    
    if(intid == 4004) then
    player:SetModel(16958)
    player:GossipComplete(player)
    end
    
    if(intid == 4005) then
    player:SetModel(20216)
    player:GossipComplete(player)
    end
    
    if(intid == 4006) then
    player:SetModel(18951)
    player:GossipComplete(player)
    end
    
    if(intid == 4007) then
    player:SetModel(21899)
    player:GossipComplete(player)
    end
    
    if(intid == 4008) then
    player:SetModel(8570)
    player:GossipComplete(player)
    end
    
    if(intid == 4010) then
    player:SetModel(20628)
    player:GossipComplete(player)
    end
    
    
    if(intid == 4009) then
    player:SetModel(21349)
    player:GossipComplete(player)
    end
    
    if(intid == 601) then 
    unit:GossipCreateMenu(1000, player, 0)
    local race=player:GetPlayerRace()
    if race==2 or race==5 or race==6 or race==8 or race==10 then
    unit:GossipMenuAddItem(4, "Horde Cities",200, 0)
    end
    local race=player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    unit:GossipMenuAddItem(4, "Alliance Cities",201, 0)
    end
    unit:GossipMenuAddItem(3, "Northrend Locations", 648, 0)
    unit:GossipMenuAddItem(4, "Azeroth Instances", 205, 0)
    unit:GossipMenuAddItem(4, "Outland Instances", 206, 0)
    unit:GossipMenuAddItem(4, "PvP Arenas", 207, 0)
    unit:GossipMenuAddItem(1, "Dalaran", 649, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 201) then
    unit:GossipCreateMenu(99, player, 0)
    unit:GossipMenuAddItem(2, "Stormwind", 300, 0)
    unit:GossipMenuAddItem(2, "Ironforge", 301, 0)
    unit:GossipMenuAddItem(2, "Darnassus", 302, 0)
    unit:GossipMenuAddItem(2, "The Exodar", 303, 0)
    unit:GossipSendMenu(player)
    end
    if(intid == 648) then
    unit:GossipCreateMenu(70, player, 0)
    unit:GossipMenuAddItem(1, "Dragonblight", 650, 0)
    unit:GossipMenuAddItem(1, "Howling Fjord", 651, 0)
    unit:GossipMenuAddItem(1, "Grizzly Hills", 652, 0)
    unit:GossipMenuAddItem(1, "Icecrown", 653, 0)
    unit:GossipMenuAddItem(1, "Strom Peaks", 654, 0)
    unit:GossipMenuAddItem(1, "Zul'Drak", 655, 0)
    unit:GossipMenuAddItem(1, "Sholazar Basin", 656, 0)
    unit:GossipMenuAddItem(1, "Borean Tundra", 657, 0)
    unit:GossipMenuAddItem(1, "Wintergrasp", 658, 0)
    unit:GossipMenuAddItem(1, "Crystalsong", 659, 0)
    unit:GossipSendMenu(player)
    end
    if (intid == 200) then
    unit:GossipCreateMenu(99, player, 0) 
    unit:GossipMenuAddItem(2, "Orgrimmar", 304, 0)
    unit:GossipMenuAddItem(2, "The Undercity", 305, 0)
    unit:GossipMenuAddItem(2, "Thunder Bluff", 306, 0)
    unit:GossipMenuAddItem(2, "Silvermoon", 307, 0)
    unit:GossipSendMenu(player)
    end
    if (intid == 205) then
    unit:GossipCreateMenu(99, player, 0)
    unit:GossipMenuAddItem(2, "Shadowfang Keep", 371, 0)
    unit:GossipMenuAddItem(2, "Scarlet Monastery", 372, 0)
    unit:GossipMenuAddItem(2, "Zul'Farrak", 373, 0)
    unit:GossipMenuAddItem(2, "Stratholme", 374, 0)
    unit:GossipMenuAddItem(2, "Scholomance", 375, 0)
    unit:GossipMenuAddItem(2, "Blackrock Spire", 376, 0)
    unit:GossipMenuAddItem(2, "Onyxia's Lair", 377, 0)
    unit:GossipMenuAddItem(2, "Molten Core", 378, 0)
    unit:GossipMenuAddItem(2, "Zul'Gurub", 379, 0)
    unit:GossipMenuAddItem(2, "Karazhan", 380, 0)
    unit:GossipMenuAddItem(2, "Ahn'Qirai 20", 381, 0)
    unit:GossipMenuAddItem(2, "Ahn'Qirai 40", 382, 0)
    unit:GossipMenuAddItem(2, "Naxxramas", 383, 0)
    unit:GossipMenuAddItem(2, "Caverns of Time", 384, 0)
    unit:GossipSendMenu(player)
    end
    if (intid == 206) then
    unit:GossipCreateMenu(99, player, 0)
    unit:GossipMenuAddItem(2, "Outlands Raids", 285, 0)
    unit:GossipMenuAddItem(2, "Hellfire Ramparts", 386, 0)
    unit:GossipMenuAddItem(2, "The Blood Furnace", 387, 0)
    unit:GossipMenuAddItem(2, "The Shattered Halls", 388, 0)
    unit:GossipMenuAddItem(2, "The Underbog", 389, 0)
    unit:GossipMenuAddItem(2, "The Slave Pens", 390, 0)
    unit:GossipMenuAddItem(2, "The Steamvault", 391, 0)
    unit:GossipMenuAddItem(2, "Mana-Tombs", 392, 0)
    unit:GossipMenuAddItem(2, "Auchenai Crypts", 393, 0)
    unit:GossipMenuAddItem(2, "Sethekk Halls", 394, 0)
    unit:GossipMenuAddItem(2, "Shadow Labyrinth", 395, 0)
    unit:GossipMenuAddItem(2, "The Mechanar", 396, 0)
    unit:GossipMenuAddItem(2, "The Botanica", 397, 0)
    unit:GossipMenuAddItem(2, "The Arcatraz", 398, 0)
    unit:GossipSendMenu(player)
    end
    if (intid == 285) then
    unit:GossipCreateMenu(99, player, 0)
    unit:GossipMenuAddItem(2, "Magtheridon's Lair", 399, 0)
    unit:GossipMenuAddItem(2, "Serpentshrine Cavern", 400, 0)
    unit:GossipMenuAddItem(2, "Gruul's Lair", 401, 0)
    unit:GossipMenuAddItem(2, "The Eye", 402, 0)
    unit:GossipMenuAddItem(2, "Black Temple", 403, 0)
    unit:GossipSendMenu(player)
    end
    if (intid == 207) then
    unit:GossipCreateMenu(99, player, 0)
    unit:GossipMenuAddItem(2, "Gurabashi Arena", 410, 0)
    unit:GossipSendMenu(player)
    end
    
    
    if (intid == 1) then
    unit:GossipCreateMenu(800, player, 0)
    unit:GossipMenuAddItem(2, "Classtrainer Melee 1", 100, 0)
    unit:GossipMenuAddItem(2, "Classtrainer Melee 2", 101, 0)
    unit:GossipMenuAddItem(2, "Classtrainer Spell 1", 102, 0)
    unit:GossipMenuAddItem(2, "Classtrainer Spell 2", 103, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 2) then
    unit:GossipCreateMenu(501, player, 0)
    unit:GossipMenuAddItem(2, "Tier7  1 Vendor", 104, 0)
    unit:GossipMenuAddItem(2, "Tier7  2 Vendor", 105, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 3) then
    unit:GossipCreateMenu(502, player, 0)
    unit:GossipMenuAddItem(2, "Weapons 200+ Vendor", 106, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 4) then
    unit:GossipCreateMenu(503, player, 0)
    unit:GossipMenuAddItem(2, "Rings Vendor", 107, 0)
    unit:GossipMenuAddItem(2, "Necklace Vendor", 108, 0)
    unit:GossipMenuAddItem(2, "Shield Vendor", 108, 0)
    unit:GossipMenuAddItem(2, "Trinkets Vendor", 148, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 5) then
    unit:GossipCreateMenu(504, player, 0)
    unit:GossipMenuAddItem(2, "Tabard Vendor", 110, 0)
    unit:GossipMenuAddItem(2, "Cloak Vendor", 111, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 6) then
    unit:GossipCreateMenu(505, player, 0)
    unit:GossipMenuAddItem(2, "Season 5 Vendor", 112, 0)
    unit:GossipMenuAddItem(2, "Relic Vendor", 113, 0)
    unit:GossipMenuAddItem(2, "Container Vendor", 114, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 7) then
    unit:GossipCreateMenu(506, player, 0)
    unit:GossipMenuAddItem(2, "Glyph 1 Vendor", 115, 0)
    unit:GossipMenuAddItem(2, "Glyph 2 Vendor", 116, 0)
    unit:GossipMenuAddItem(2, "Wrist Vendor", 117, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 8) then
    unit:GossipCreateMenu(507, player, 0)
    unit:GossipMenuAddItem(2, "Book A-Z Vendor", 118, 0)
    unit:GossipMenuAddItem(2, "Leather A-Z Vendor", 119, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 9) then
    unit:GossipCreateMenu(508, player, 0)
    unit:GossipMenuAddItem(2, "Jewelcrafting A-Z Vendor", 120, 0)
    unit:GossipMenuAddItem(2, "Engineering/Enchanting A-Z Vendor", 121, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    
    if (intid == 10) then
    unit:GossipCreateMenu(509, player, 0)
    unit:GossipMenuAddItem(2, "Alchemy/Blacksmithing/Tailoring Vendor", 122, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 11) then
    unit:GossipCreateMenu(510, player, 0)
    unit:GossipMenuAddItem(2, "Waist Vendor", 123, 0)
    unit:GossipMenuAddItem(2, "Feet Vendor", 124, 0)
    unit:GossipMenuAddItem(2, "Heirloom Vendor", 125, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 12) then
    unit:GossipCreateMenu(511, player, 0)
    unit:GossipMenuAddItem(2, "Ground Mounts Vendor", 126, 0)
    unit:GossipMenuAddItem(2, "Flying MOunts Vendor", 127, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 13) then
    unit:GossipCreateMenu(512, player, 0)
    unit:GossipMenuAddItem(2, "Item Enhancement (Permanent) Vendor", 128, 0)
    unit:GossipMenuAddItem(2, "Item Enhancement (Temporary) Vendor", 129, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 14) then
    unit:GossipCreateMenu(513, player, 0)
    unit:GossipMenuAddItem(2, "Reagent ( Enchanting ) Vendor", 130, 0)
    unit:GossipMenuAddItem(2, "Reagent ( Leatherworking ) Vendor", 131, 0)
    unit:GossipMenuAddItem(2, "Reagent ( Blacksmithing ) Vendor", 132, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 16) then
    unit:GossipCreateMenu(514, player, 0)
    unit:GossipMenuAddItem(2, "Reagent ( Inscription ) Vendor", 133, 0)
    unit:GossipMenuAddItem(2, "Reagent ( Engineering ) Vendor", 134, 0)
    unit:GossipMenuAddItem(2, "Reagent ( Alchemy ) Vendor", 135, 0)
    unit:GossipMenuAddItem(2, "Reagent ( Tailoring ) Vendor", 136, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 17) then
    unit:GossipCreateMenu(515, player, 0)
    unit:GossipMenuAddItem(2, "General Goods Vendor", 137, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 18) then
    unit:GossipCreateMenu(516, player, 0)
    unit:GossipMenuAddItem(2, "Quiver, AmmoPouch, Projectile Vendor", 138, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 19) then
    unit:GossipCreateMenu(517, player, 0)
    unit:GossipMenuAddItem(2, "Currency Vendor", 139, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 20) then
    unit:GossipCreateMenu(518, player, 0)
    unit:GossipMenuAddItem(2, "Gemstone I Vendor", 140, 0)
    unit:GossipMenuAddItem(2, "Gemstone II Vendor", 141, 0)
    unit:GossipMenuAddItem(2, "Gemstone III", 142, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 21) then
    unit:GossipCreateMenu(519, player, 0)
    unit:GossipMenuAddItem(2, "Armor Tokens Vendor", 143, 0)
    unit:GossipMenuAddItem(2, "Keys Vendor", 144, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 22) then
    unit:GossipCreateMenu(520, player, 0)
    unit:GossipMenuAddItem(2, "Proffession Trainer I", 145, 0)
    unit:GossipMenuAddItem(2, "Proffession Trainer II", 149, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 23) then
    unit:GossipCreateMenu(521, player, 0)
    unit:GossipMenuAddItem(2, "Riding Trainer", 146, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 24) then
    unit:GossipCreateMenu(522, player, 0)
    unit:GossipMenuAddItem(2, "Weapons Trainer", 147, 0)
    unit:GossipMenuAddItem(0, "[Back]", 600, 0)
    unit:GossipSendMenu(player)
    end
    
    if (intid == 300) then 
    player:Teleport(0, -9100.480469, 406.950745, 92.594185)
    player:GossipComplete()
    end
    if (intid == 301) then 
    player:Teleport(0, -5028.265137, -825.976563, 495.301575)
    player:GossipComplete()
    end
    if (intid == 302) then
    player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
    player:GossipComplete()
    end
    if (intid == 303) then 
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
    player:GossipComplete()
    end
    if (intid == 304) then 
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    player:GossipComplete()
    end
    if (intid == 305) then
    player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    player:GossipComplete()
    end
    if (intid == 306) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    player:GossipComplete()
    end
    if (intid == 307) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    player:GossipComplete()
    end
    if (intid == 370) then
    player:Teleport(530, -2859.522461, 3182.34773, 10.008426);
    player:GossipComplete()
    end
    if (intid == 371) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143);
    player:GossipComplete()
    end
    if (intid == 372) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085);
    player:GossipComplete()
    end
    if (intid == 373) then
    player:Teleport(1, -6797.278809, -2903.917969, 9.953360);
    player:GossipComplete()
    end
    if (intid == 374) then
    player:Teleport(0, -11919.073242, -1202.459374, 92.298744);
    player:GossipComplete()
    end
    if (intid == 375) then
    player:Teleport(1, -8394.730469, 1485.658447, 21.038563);
    player:GossipComplete()
    end
    if (intid == 376) then
    player:Teleport(1, -8247.316406, 1970.156860, 129.071472);
    player:GossipComplete()
    end
    if (intid == 377) then
    player:Teleport(409, 1089.6, -470.19, -106.41);
    player:GossipComplete()
    end
    if (intid == 378) then
    player:Teleport(249, 30.0, -64.0, -5.0);
    player:GossipComplete()
    end
    if (intid == 379) then
    player:Teleport(533, 3006.06, -3436.72, 293.891);
    player:GossipComplete()
    end
    if (intid == 380) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983);
    player:GossipComplete()
    end
    if (intid == 381) then
    player:Teleport(0, 3359.111572, -3380.8444238, 144.781860);
    player:GossipComplete()
    end
    if (intid == 382) then
    player:Teleport(0, -7527.129883, -1224.997437, 285.733002);
    player:GossipComplete()
    end
    if (intid == 383) then
    player:Teleport(532, -11087.3, -1977.47, 49.6135);
    player:GossipComplete()
    end
    if (intid == 384) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376);
    player:GossipComplete()
    end
    if (intid == 386) then
    player:Teleport(530, -360.670990, 3071.899902, -15.097700);
    player:GossipComplete()
    end
    if (intid == 387) then
    player:Teleport(530, -303.506012, 3164.820068, 31.742500);
    player:GossipComplete()
    end
    if (intid == 388) then
    player:Teleport(530, -311.083527, 3083.291748, -3.745923);
    player:GossipComplete()
    end
    if (intid == 389) then
    player:Teleport(530, 777.088989, 6763.450195, -72.062561);
    player:GossipComplete()
    end
    if (intid == 390) then
    player:Teleport(530, 719.507996, 6999.339844, -73.074303);
    player:GossipComplete()
    end
    if (intid == 391) then
    player:Teleport(530, 816.590027, 6934.669922, -80.544601);
    player:GossipComplete()
    end
    if (intid == 392) then
    player:Teleport(530, -3079.810059, 4943.040039, -101.046997);
    player:GossipComplete()
    end
    if (intid == 393) then
    player:Teleport(530, -3361.959961, 5225.770020, -101.047997);
    player:GossipComplete()
    end
    if (intid == 394) then
    player:Teleport(530, -3362.219971, 4660.410156, -101.049004);
    player:GossipComplete()
    end
    if (intid == 395) then
    player:Teleport(530, -3645.060059, 4943.620117, -101.047997);
    player:GossipComplete()
    end
    if (intid == 396) then
    player:Teleport(530, 2862.409912, 1546.089966, 252.158691);
    player:GossipComplete()
    end
    if (intid == 397) then
    player:Teleport(530, 3413.649902, 1483.319946, 182.837997);
    player:GossipComplete()
    end
    if (intid == 398) then
    player:Teleport(530, 3311.598145, 1332.745117, 505.557251);
    player:GossipComplete()
    end
    if (intid == 399) then
    player:Teleport(530, -313.678986, 3088.350098, -116.501999);
    player:GossipComplete()
    end
    if (intid == 400) then
    player:Teleport(530, 830.542908, 6865.445801, -63.785503);
    player:GossipComplete()
    end
    if (intid == 401) then
    player:Teleport(530, 3549.424072, 5179.854004, -4.430779);
    player:GossipComplete()
    end
    if (intid == 402) then
    player:Teleport(530, 3087.310059, 1373.790039, 184.643005);
    player:GossipComplete()
    end
    if (intid == 403) then
    player:Teleport(564, 97.0894, 1001.96, -86.8798);
    player:GossipComplete()
    end
    if (intid == 410) then
    player:Teleport(0, -13243.240234, 197.949799, 32.112690);
    player:GossipComplete()
    end
    if(intid == 650) then
    player:Teleport(571, 2981.362305, 291.108032, 84.906631);
    player:GossipComplete()
    end
    if(intid == 651) then
    player:Teleport(571, 452.491608, -4010.313965, 268.903809);
    player:GossipComplete()
    end
    if(intid == 652) then
    player:Teleport(571, 3730.314453, -3859.454346, 183.489944);
    player:GossipComplete()
    end
    if(intid == 653) then
    player:Teleport(571, 6591.855469, 2451.750732, 467.928711);
    player:GossipComplete()
    end
    if(intid == 654) then
    player:Teleport(571, 7266.094238, -1338.805542, 911.679749);
    player:GossipComplete()
    end
    if(intid == 655) then
    player:Teleport(571, 5444.818848, -1746.449585, 248.347855);
    player:GossipComplete()
    end
    if(intid == 656) then
    player:Teleport(571, 4872.304688, 5535.682617, -62.462074);
    player:GossipComplete()
    end
    if(intid == 657) then
    player:Teleport(571, 4502.164551, 5560.019531, 51.479229);
    player:GossipComplete()
    end
    if(intid == 658) then
    player:Teleport(571, 4608.474121, 2847.145020, 396.896790);
    player:GossipComplete()
    end
    if(intid == 659) then
    player:Teleport(571, 5331.596191, 142.360580, 168.219833);
    player:GossipComplete()
    end
    if(intid == 649) then
    player:Teleport(571, 5806.516602, 628.091370, 647.240662);
    player:GossipComplete()
    end
    
    
    
    
    
    
    
    if (intid == 149) then
    local x =player:GetX ()
    local y =player:GetY ()
    local z =player:GetZ ()
    local o =player:GetO ()
    player:SpawnCreature (70007, x, y, z, o, 35, 70000)
    player:GossipComplete()
    end
    
    RegisterUnitGossipEvent(995533, 1, "On_Gossip")
    RegisterUnitGossipEvent(995533, 2,"Gossip_Submenus")
    Thank Help Would be GREATLY apprecaited

    Whats wrong with my Script
  2. #2
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It should be pUnit here:

    Code:
    local npcid = 995533
    function On_Gossip(pUnit, event, player)
    pUnit:GossipCreateMenu(5555, player, 0) 
    pUnit:GossipMenuAdditem(6, "[Mall Vendors]", 600, 0)
    pUnit:GossipMenuAddItem(6, "[Teleporter Services]", 601, 0)
    pUnit:GossipMenuAddItem(4, "[Morphing Services]", 602, 0)
    pUnit:GossipMenuAddItem(4, "[Jukebox]", 603, 0)
    pUnit:GossipMenuAddItem(4, "[Sound Effects]", 608, 0)
    pUnit:GossipMenuAddItem(3, "[Advance All Skills]", 620, 0)
    pUnit:GossipMenuAddItem(3, "[Advance Riding Skill]", 653, 0)    
    pUnit:GossipMenuAddItem(2, "[Buff Options]", 605, 0)
    pUnit:GossipMenuAddItem(2, "[Remove Ressurection Sickness]", 604, 0)
    pUnit:GossipMenuAddItem(6, "[Hearthstone Fix]", 607, 0) 
    pUnit:GossipMenuAddItem(1, "[F.A.Q Section]", 606, 0)
    pUnit:GossipMenuAddItem(3, "[Spawn Repair Gnome]", 609, 0)
    pUnit:GossipMenuAddItem(1, "[Second Main Page]", 614, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(pUnit, event, player, id, intid, code, misc)
    if(intid == 614) then 
    pUnit:GossipCreateMenu(3547, player, 0)
    pUnit:GossipMenuAddItem(6, "[Non-Combat Pet Store]", 619, 0)  
    pUnit:GossipMenuAddItem(6, "[QuizMaster]", 616, 0)
    pUnit:GossipMenuAddItem(5, "[Special Mounts]", 653, 0)
    pUnit:GossipMenuAddItem(5, "[Scrolls]", 656, 0)
    pUnit:GossipMenuAddItem(4, "[Flasks & Potions]", 672, 0)
    pUnit:GossipSendMenu(player)
    end
    end
    
    if(intid == 672) then
    pUnit:GossipCreateMenu(3559, player, 0)
    pUnit:GossipMenuAddItem(3, "[Elixir of Mighty Thoughts]", 686, 0)
    pUnit:GossipMenuAddItem(3, "[Elixir of Mighty Agility]", 685, 0)
    pUnit:GossipMenuAddItem(3, "[Elixir of Mighty Foritude]", 684, 0)
    pUnit:GossipMenuAddItem(4, "[Elixir of Mighty Strength]", 683, 0)
    pUnit:GossipMenuAddItem(3, "[Elixir of Protection]", 682, 0)
    pUnit:GossipMenuAddItem(3, "[Elixir of Deadly Strikes]", 681, 0)
    pUnit:GossipMenuAddItem(3, "[Elixir of Mighty Defense]", 678, 0)
    pUnit:GossipMenuAddItem(4, "[Elixir of Expertise]", 679, 0)
    pUnit:GossipMenuAddItem(3, "[Elixir of Armor Piercing]", 680, 0)
    pUnit:GossipMenuAddItem(3, "[Elixir of Lightning Speed]", 673, 0)  
    pUnit:GossipMenuAddItem(2, "[Flask of the Frost Wyrm]", 674, 0)
    pUnit:GossipMenuAddItem(3, "[Flask of Stoneblood]", 675, 0)
    pUnit:GossipMenuAddItem(4, "[Flash of Endless Rage]", 676, 0)
    pUnit:GossipMenuAddItem(3, "[Flask of Pure Mojo]", 677, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 673) then
    player:AddItem(44331, 20)
    end
    if(intid == 674) then
    player:AddItem(40082, 20)
    end
    if(intid == 675) then
    player:AddItem(40083, 20)
    end
    if(intid == 676) then
    player:AddItem(40084, 20)
    end
    if(intid == 677) then
    player:AddItem(40404, 20)
    end
    if(intid == 678) then
    player:AddItem(44328, 20)
    end
    if(intid == 679) then
    player:AddItem(44329, 20)
    end
    if(intid == 680) then
    player:AddItem(44330, 20)
    end
    if(intid == 681) then
    player:AddItem(44327, 20)
    end
    if(intid == 682) then
    player:AddItem(40097, 20)
    end
    if(intid == 683) then
    player:AddItem(40072, 20)
    end
    if(intid == 684) then
    player:AddItem(40078, 20)
    end
    if(intid == 685) then
    player:AddItem(39666, 20)
    end
    if(intid == 686) then
    player:AddItem(44332, 20)
    end
    
    if(intid == 656) then
    pUnit:GossipCreateMenu(3559, player, 0)
    pUnit:GossipMenuAddItem(3, "[Scroll of Agility VIII]", 668, 0)  
    pUnit:GossipMenuAddItem(2, "[Scroll of Intellect VIII]", 669, 0)
    pUnit:GossipMenuAddItem(3, "[Scroll of Spirit VIII]", 670, 0)
    pUnit:GossipMenuAddItem(4, "[Scroll of Stamina VIII]", 671, 0)
    pUnit:GossipMenuAddItem(3, "[Scroll of Strength VIII]", 672, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 668) then
    player:AddItem(43464, 20)
    end
    if(intid == 669) then
    player:AddItem(37092, 20)
    end
    if(intid == 670) then
    player:AddItem(37098, 20)
    end
    if(intid == 671) then
    player:AddItem(37094, 20)
    end
    if(intid == 672) then
    player:AddItem(43466, 20)
    end
    
    if(intid == 619) then
    pUnit:GossipCreateMenu(3557, player, 0)
    pUnit:GossipMenuAddItem(3, "[Guns]", 638, 0)  
    pUnit:GossipMenuAddItem(3, "[Maces]", 639, 0)
    pUnit:GossipMenuAddItem(2, "[Two-Handed Swords]", 640, 0)
    pUnit:GossipMenuAddItem(3, "[Bows]", 641, 0)
    pUnit:GossipMenuAddItem(4, "[Axes]", 642, 0)
    pUnit:GossipMenuAddItem(3, "[Swords]", 643, 0)
    pUnit:GossipMenuAddItem(5, "[Staves]", 644, 0)
    pUnit:GossipMenuAddItem(3, "[Two-Handed Axes]", 645, 0)
    pUnit:GossipMenuAddItem(6, "[Two-Handed Maces]", 646, 0)
    pUnit:GossipMenuAddItem(3, "[Daggers]", 647, 0)
    pUnit:GossipMenuAddItem(3, "[Thrown]", 648, 0)
    pUnit:GossipMenuAddItem(3, "[Crossbows]", 649, 0)
    pUnit:GossipMenuAddItem(3, "[Wands]", 650, 0)
    pUnit:GossipMenuAddItem(3, "[Polearms]", 651, 0)
    pUnit:GossipMenuAddItem(3, "[Fist Weapons]", 652, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 638) then
    pUnit:AdvanceSkill(46, 500)
    end
    if(intid == 639) then
    pUnit:AdvanceSkill(54, 500)
    end
    if(intid == 640) then
    pUnit:AdvanceSkill(55, 500)
    end
    if(intid == 641) then
    pUnit:AdvanceSkill(45, 500)
    end
    if(intid == 642) then
    pUnit:AdvanceSkill(44, 500)
    end
    if(intid == 643) then
    pUnit:AdvanceSkill(43, 500)
    end
    if(intid == 644) then
    pUnit:AdvanceSkill(136, 500)
    end
    if(intid == 645) then
    pUnit:AdvanceSkill(172, 500)
    end
    if(intid == 646) then
    pUnit:AdvanceSkill(160, 500)
    end
    if(intid == 647) then
    pUnit:AdvanceSkill(173, 500)
    end
    if(intid == 648) then
    pUnit:AdvanceSkill(176, 500)
    end
    if(intid == 649) then
    pUnit:AdvanceSkill(226, 500)
    end
    if(intid == 650) then
    pUnit:AdvanceSkill(228, 500)
    end
    if(intid == 651) then
    pUnit:AdvanceSkill(229, 500)
    end
    if(intid == 652) then
    pUnit:AdvanceSkill(473, 500)
    end
    
    if(intid == 654) then
    pUnit:GossipCreateMenu(3558, player, 0)
    pUnit:GossipMenuAddItem(3, "[Old Crappy McWeakSauce]", 655, 0)  
    pUnit:GossipMenuAddItem(2, "[Fluorescent Mechanostrider]", 657, 0)
    pUnit:GossipMenuAddItem(3, "[Frost Wyrm]", 658, 0)
    pUnit:GossipMenuAddItem(4, "[Kessel's Elekk]", 659, 0)
    pUnit:GossipMenuAddItem(3, "[Northrend Nerubian Mount (Test)]", 660, 0)
    pUnit:GossipMenuAddItem(5, "[Naxxramas Deathcharger]", 661, 0)
    pUnit:GossipMenuAddItem(3, "[Red and Blue Mechanostrider]", 662, 0)
    pUnit:GossipMenuAddItem(6, "[Baron Rivendare's Deathcharger]", 663, 0)
    pUnit:GossipMenuAddItem(3, "[Pink Tallstrider]", 664, 0)
    pUnit:GossipMenuAddItem(3, "[Ivory Tallstrider]", 665, 0)
    pUnit:GossipMenuAddItem(3, "[Dodostrider]", 666, 0)
    pUnit:GossipMenuAddItem(3, "[Video Mount]", 667, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 667) then
    player:LearnSpell(33631)
    player:GossipComplete(player)
    end
    if(intid == 666) then
    player:LearnSpell(34068)
    player:GossipComplete(player)
    end
    if(intid == 665) then
    player:LearnSpell(8396)
    player:GossipComplete(player)
    end
    if(intid == 664) then
    player:LearnSpell(10802)
    player:GossipComplete(player)
    end
    if(intid == 663) then
    player:LearnSpell(17481)
    player:GossipComplete(player)
    end
    if(intid == 662) then
    player:LearnSpell(17456)
    player:GossipComplete(player)
    end
    if(intid == 661) then
    player:LearnSpell(29059)
    player:GossipComplete(player)
    end
    if(intid == 660) then
    player:LearnSpell(46908)
    player:GossipComplete(player)
    end
    if(intid == 655) then
    player:LearnSpell(32420)
    player:GossipComplete(player)
    end
    if(intid == 659) then
    player:LearnSpell(31973)
    player:GossipComplete(player)
    end
    if(intid == 658) then
    player:LearnSpell(43810)
    player:GossipComplete(player)
    end
    if(intid == 657) then
    player:LearnSpell(17458)
    player:GossipComplete(player)
    end
    
    if(intid == 618) then
    player:LearnSpell(39160)
    player:LearnSpell(42447)
    player:LearnSpell(6758)
    player:LearnSpell(51510)
    player:LearnSpell(50317)
    player:GossipComplete(player)
    end 
    
    if(intid == 616) then
    pUnit:GossipCreateMenu(3549, player, 0) 
    pUnit:GossipMenuAddItem(2, "[World of Warcraft Quiz (1)]", 633, 0)
    pUnit:GossipMenuAddItem(5, "[Misc Quiz (2)]", 634, 0)
    pUnit:GossipMenuAddItem(6, "[Car Quiz (3)]", 635, 0)
    pUnit:GossipMenuAddItem(6, "[Computer Quiz (4)]", 636, 0)
    pUnit:GossipMenuAddItem(6, "[Counter-Strike Quiz (5)]", 637, 0)
    pUnit:GossipSendMenu(player)
    end 
    
    if(intid == 615) then
    pUnit:GossipCreateMenu(3550, player, 0) 
    pUnit:GossipMenuAddItem(5, "[Dragon Kite]", 623, 0)
    pUnit:GossipMenuAddItem(4, "[Chucks Bucket]", 624, 0)
    pUnit:GossipMenuAddItem(3, "[Blue Murloc Egg]", 625, 0)
    pUnit:GossipMenuAddItem(3, "[Clockwork Rocket Bot]", 626, 0)
    pUnit:GossipMenuAddItem(2, "[Banana Charm]", 627, 0)
    pUnit:GossipMenuAddItem(3, "[Hippogryph Hatchling]", 628, 0)
    pUnit:GossipMenuAddItem(3, "[Egbert's Egg]", 629, 0)
    pUnit:GossipMenuAddItem(3, "[Elekk Training Collar]", 630, 0)
    pUnit:GossipMenuAddItem(3, "[Gaint Sewer Rat]", 631, 0)
    pUnit:GossipMenuAddItem(4, "[Ghostly Skull]", 632, 0)
    pUnit:GossipMenuAddItem(4, "[Mojo]", 633, 0)
    pUnit:GossipSendMenu(player)
    end 
    
    if(intid == 623) then
    player:AddItem(34493, 1)
    end
    if(intid == 624) then
    player:AddItem(35350, 1)
    end
    if(intid == 625) then
    player:AddItem(20371, 1)
    end
    if(intid == 626) then
    player:AddItem(34425, 1)
    end
    if(intid == 627) then
    player:AddItem(32588, 1)
    end
    if(intid == 628) then
    player:AddItem(23713, 1)
    end
    if(intid == 629) then
    player:AddItem(32616, 1)
    end
    if(intid == 630) then
    player:AddItem(32622, 1)
    end
    if(intid == 631) then
    player:AddItem(43698, 1)
    end
    if(intid == 632) then
    player:AddItem(39973, 1)
    end
    if(intid == 633) then
    player:AddItem(33993, 1)
    end
    
    if(intid == 600) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(8, "[Class Trainers]", 1, 0)
    pUnit:GossipMenuAddItem(8, "[Tier 7]", 2, 0)
    pUnit:GossipMenuAddItem(8, "[Weapons]", 3, 0)
    pUnit:GossipMenuAddItem(8, "[Rings] [Necklace] [Shield] [Trinkets]", 4, 0)
    pUnit:GossipMenuAddItem(8, "[Tabard] [Cloak]", 5, 0)
    pUnit:GossipMenuAddItem(8, "[Season 5] [Relics] [Container]", 6, 0)
    pUnit:GossipMenuAddItem(8, "[Glyph 1] [Glyph 2] [Wrist]", 7, 0)
    pUnit:GossipMenuAddItem(8, "[Book A-Z] [Leather A-Z]", 8, 0)
    pUnit:GossipMenuAddItem(8, "[Jewelcrafting A-Z] [Engineering/Enchanting A-Z]", 9, 0)
    pUnit:GossipMenuAddItem(8, "[Alchemy/Blacksmithing/Tailoring]", 10, 0)
    pUnit:GossipMenuAddItem(8, "[Waist] [Feet] [Heirloom]", 11, 0)
    pUnit:GossipMenuAddItem(8, "[Ground Mounts] [Flying Mounts]", 12, 0)
    pUnit:GossipMenuAddItem(8, "[Item Enhancement]", 13, 0)
    pUnit:GossipMenuAddItem(8, "[Reagents 1]", 14, 0)
    pUnit:GossipMenuAddItem(8, ">->Next Page>->", 500, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 605) then
    pUnit:FullCastSpellOnTarget(33081, player)
    pUnit:FullCastSpellOnTarget(33082, player)
    pUnit:FullCastSpellOnTarget(33080, player)
    pUnit:FullCastSpellOnTarget(33079, player)
    pUnit:FullCastSpellOnTarget(33078, player)
    pUnit:FullCastSpellOnTarget(33077, player)
    end
    
    if(intid == 500) then 
    pUnit:GossipCreateMenu(3543, player, 0) 
    pUnit:GossipMenuAddItem(8, "[Reagents 2]", 16, 0)  
    pUnit:GossipMenuAddItem(8, "[General Goods]", 17, 0)
    pUnit:GossipMenuAddItem(8, "[Quiver, AmmoPouch, Projectile]", 18, 0)
    pUnit:GossipMenuAddItem(8, "[Currency]", 19, 0)
    pUnit:GossipMenuAddItem(8, "[Gemstones]", 20, 0)
    pUnit:GossipMenuAddItem(8, "[Armor Tokens, Keys]", 21, 0)
    pUnit:GossipMenuAddItem(8, "[Proffession Trainers]", 22, 0)
    pUnit:GossipMenuAddItem(8, "[Riding Trainer]", 23, 0)
    pUnit:GossipMenuAddItem(8, "[Weapons Trainer]", 24, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 606) then 
    pUnit:GossipCreateMenu(1010, player, 0)
    pUnit:GossipMenuAddItem(1, "Q: How do I change my Realmlist?", 900, 0)
    pUnit:GossipMenuAddItem(1, "A: Go into My Computer (Either C:/ - D:/ - E:/) and Go into My Program Files, find World of warcraft", 901, 0)
    pUnit:GossipMenuAddItem(1, "Q: What is the Orginial Patchlist for WoW Retail?", 902, 0)
    pUnit:GossipMenuAddItem(1, "A: Set realmlist: eu.logon.worldofwarcraft.com", 904, 0)
    pUnit:GossipMenuAddItem(1, "A: Set patchlist: eu.version.worldofwarcraft.com", 903, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 608) then 
    pUnit:GossipCreateMenu(89998, player, 0)
    pUnit:GossipMenuAddItem(0, "Illidan", 8099, 0)
    pUnit:GossipMenuAddItem(0, "Kil Jaeden", 8097, 0)
    pUnit:GossipMenuAddItem(0, "Misc", 8096, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 8099) then
    pUnit:GossipCreateMenu(89997, player, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 1", 8001, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 2", 8002, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 3", 8003, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 4", 8004, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 5", 8005, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 6", 8006, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 7", 8007, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 8", 8008, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 9", 8009, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 10", 8010, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 11", 8011, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 12", 8012, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 13", 8013, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 14", 8014, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 15", 8015, 0)
    pUnit:GossipMenuAddItem(1,"[Second Page]", 8098, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 8098) then
    pUnit:GossipCreateMenu(89996, player, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 16", 8016, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 17", 8017, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 18", 8018, 0)
    pUnit:GossipMenuAddItem(1,"Play Illidan 19", 8019, 0)
    pUnit:GossipMenuAddItem(1,"[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 8097) then
    pUnit:GossipCreateMenu(89995, player, 0)
    pUnit:GossipMenuAddItem(1,"Play Kil Jaeden 1", 8020, 0)
    pUnit:GossipMenuAddItem(1,"Play Kil Jaeden 2", 8021, 0)
    pUnit:GossipMenuAddItem(1,"Play Kil Jaeden 3", 8022, 0)
    pUnit:GossipMenuAddItem(1,"Play Kil Jaeden 4", 8023, 0)
    pUnit:GossipMenuAddItem(1,"Play Kil Jaeden 5", 8024, 0)
    pUnit:GossipMenuAddItem(1,"Play Kil Jaeden 6", 8025, 0)
    pUnit:GossipMenuAddItem(1,"Play Kil Jaeden 7", 8026, 0)
    pUnit:GossipMenuAddItem(1,"Play Kil Jaeden 8", 8027, 0)
    pUnit:GossipMenuAddItem(1,"Play Aveena 1", 8028, 0)
    pUnit:GossipMenuAddItem(1,"Play Aveena 2", 8029, 0)
    pUnit:GossipMenuAddItem(1,"Play Aveena 3", 8030, 0)
    pUnit:GossipMenuAddItem(1,"Play Kalecgos", 8031, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 8096) then
    pUnit:GossipCreateMenu(89994, player, 0)
    pUnit:GossipMenuAddItem(1,"Play MURLOC", 8032, 0)
    pUnit:GossipMenuAddItem(1,"Play Shade of Akama", 8033, 0)
    pUnit:GossipMenuAddItem(1,"Play Night Elf Female Joke", 8034, 0)
    pUnit:GossipMenuAddItem(1,"Play Pissed Orc Peon", 8035, 0)
    pUnit:GossipMenuAddItem(1,"Play Thrall Greeting", 8036, 0)
    pUnit:GossipMenuAddItem(1,"Play Headless Horseman Laugh", 8037, 0)
    pUnit:GossipMenuAddItem(1,"Play Headless Horseman Failed When all of you is dead", 8038, 0)
    pUnit:GossipMenuAddItem(1,"Play Headless Horseman He Dies!", 8039, 0)
    pUnit:GossipMenuAddItem(1,"Play Mr. Smith Deadmines 1", 8040, 0)
    pUnit:GossipMenuAddItem(1,"Play Mr. Smith Deadmines 2", 8041, 0)
    pUnit:GossipMenuAddItem(1,"Play Mr. Smith Deadmines 3", 8042, 0)
    pUnit:GossipMenuAddItem(1,"Play Mr. Smith Deadmines 4", 8043, 0)
    pUnit:GossipMenuAddItem(1,"Play Thrall - Aggroing", 8044, 0)
    pUnit:GossipMenuAddItem(1,"Play Thrall - Greeting", 8045, 0)
    pUnit:GossipMenuAddItem(1,"Play Jaina Proudmoore", 8046, 0)
    pUnit:GossipMenuAddItem(1,"[Second Page]", 8095, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 8095) then
    pUnit:GossipCreateMenu(89993, player, 0)
    pUnit:GossipMenuAddItem(1,"Play Summon Succubus", 8047, 0)
    pUnit:GossipMenuAddItem(1,"Play Succubus Buttslap whip", 8048, 0)
    pUnit:GossipMenuAddItem(1,"Play Horde Talk", 8049, 0)
    pUnit:GossipMenuAddItem(1,"Play Baby Murloc", 8050, 0)
    pUnit:GossipMenuAddItem(1,"Play Whissle", 8051, 0)
    pUnit:GossipMenuAddItem(1,"[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 8051) then 
    player:PlaySoundToSet(10027)
    player:GossipComplete(player)
    end
    
    if(intid == 8050) then 
    player:PlaySoundToSet(8475)
    player:GossipComplete(player)
    end
    
    if(intid == 8049) then 
    player:PlaySoundToSet(7120)
    player:GossipComplete(player)
    end
    
    if(intid == 8048) then 
    player:PlaySoundToSet(7096)
    player:GossipComplete(player)
    end
    
    if(intid == 8047) then 
    player:PlaySoundToSet(6099)
    player:GossipComplete(player)
    end
    
    if(intid == 8046) then 
    player:PlaySoundToSet(5882)
    player:GossipComplete(player)
    end
    
    if(intid == 8045) then 
    player:PlaySoundToSet(6004)
    player:GossipComplete(player)
    end
    
    if(intid == 8044) then 
    player:PlaySoundToSet(5880)
    player:GossipComplete(player)
    end
    
    if(intid == 8043) then 
    player:PlaySoundToSet(5779)
    player:GossipComplete(player)
    end
    
    if(intid == 8042) then 
    player:PlaySoundToSet(5778)
    player:GossipComplete(player)
    end
    
    if(intid == 8041) then 
    player:PlaySoundToSet(5777)
    player:GossipComplete(player)
    end
    
    if(intid == 8040) then 
    player:PlaySoundToSet(5775)
    player:GossipComplete(player)
    end
    
    if(intid == 8039) then 
    player:PlaySoundToSet(11964)
    player:GossipComplete(player)
    end
    
    if(intid == 8038) then 
    player:PlaySoundToSet(11967)
    player:GossipComplete(player)
    end
    
    if(intid == 8037) then 
    player:PlaySoundToSet(11965)
    player:GossipComplete(player)
    end
    
    if(intid == 8036) then 
    player:PlaySoundToSet(7214)
    player:GossipComplete(player)
    end
    
    if(intid == 8035) then 
    player:PlaySoundToSet(7195)
    player:GossipComplete(player)
    end
    
    if(intid == 8034) then 
    player:PlaySoundToSet(6179)
    player:GossipComplete(player)
    end
    
    if(intid == 8033) then 
    player:PlaySoundToSet(11389)
    player:GossipComplete(player)
    end
    
    if(intid == 8032) then 
    player:PlaySoundToSet(11802)
    player:GossipComplete(player)
    end
    
    if(intid == 8031) then 
    player:PlaySoundToSet(12541)
    player:GossipComplete(player)
    end
    
    if(intid == 8030) then 
    player:PlaySoundToSet(12513)
    player:GossipComplete(player)
    end
    
    if(intid == 8029) then 
    player:PlaySoundToSet(12512)
    player:GossipComplete(player)
    end
    
    if(intid == 8028) then 
    player:PlaySoundToSet(12511)
    player:GossipComplete(player)
    end
    
    if(intid == 8027) then 
    player:PlaySoundToSet(12501)
    player:GossipComplete(player)
    end
    
    if(intid == 8026) then 
    player:PlaySoundToSet(12500)
    player:GossipComplete(player)
    end
    
    
    if(intid == 8025) then 
    player:PlaySoundToSet(12499)
    player:GossipComplete(player)
    end
    
    if(intid == 8024) then 
    player:PlaySoundToSet(12498)
    player:GossipComplete(player)
    end
    
    if(intid == 8023) then 
    player:GossipComplete(player)
    end
    
    if(intid == 8022) then 
    player:PlaySoundToSet(12496)
    player:GossipComplete(player)
    end
    
    if(intid == 8021) then 
    player:PlaySoundToSet(12495)
    player:GossipComplete(player)
    end
    
    if(intid == 8020) then 
    player:PlaySoundToSet(12527)
    player:GossipComplete(player)
    end
    
    if(intid == 8001) then 
    player:PlaySoundToSet(11463)
    player:GossipComplete(player)
    end
    
    if(intid == 8002) then
    player:PlaySoundToSet(11464)
    player:GossipComplete(player)
    end
    
    if(intid == 8003) then
    player:PlaySoundToSet(11465)
    player:GossipComplete(player)
    end
    
    if(intid == 8004) then
    player:PlaySoundToSet(11466)
    player:GossipComplete(player)
    end
    
    if(intid == 8005) then
    player:PlaySoundToSet(11467)
    player:GossipComplete(player)
    end
    
    if(intid == 8006) then
    player:PlaySoundToSet(11468)
    player:GossipComplete(player)
    end
    
    if(intid == 8007) then
    player:PlaySoundToSet(11469)
    player:GossipComplete(player)
    end
    
    if(intid == 8008) then
    player:PlaySoundToSet(11470)
    player:GossipComplete(player)
    end
    
    if(intid == 8009) then
    player:PlaySoundToSet(11471)
    player:GossipComplete(player)
    end
    
    if(intid == 8010) then
    player:PlaySoundToSet(11472)
    player:GossipComplete(player)
    end
    
    if(intid == 8011) then
    player:PlaySoundToSet(11473)
    player:GossipComplete(player)
    end
    
    if(intid == 8012) then
    player:PlaySoundToSet(11474)
    player:GossipComplete(player)
    end
    
    if(intid == 8013) then
    player:PlaySoundToSet(11475)
    player:GossipComplete(player)
    end
    
    if(intid == 8014) then
    player:PlaySoundToSet(11476)
    player:GossipComplete(player)
    end
    
    if(intid == 8015) then
    player:PlaySoundToSet(11477)
    player:GossipComplete(player)
    end
    
    if(intid == 8016) then
    player:PlaySoundToSet(11478)
    player:GossipComplete(player)
    end
    
    if(intid == 8017) then
    player:PlaySoundToSet(11479)
    player:GossipComplete(player)
    end
    
    if(intid == 8018) then
    player:PlaySoundToSet(11480)
    player:GossipComplete(player)
    end
    
    
    if(intid == 602) then 
    pUnit:GossipCreateMenu(1001, player, 0) 
    pUnit:GossipMenuAddItem(8, "[Bosses]", 6616, 0)  
    pUnit:GossipMenuAddItem(8, "[Mechanicals]", 6615, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 604) then
    if(player:HasAura(15007) == true) then
    player:RemoveAura(15007)
    player:GossipComplete(player)
    end
    end
    if (intid == 607) then
    if(misc:GetItemCount(6948) < 1) then
    player:AddItem(6948, 1)
    else
    player:SendAreaTriggerMessage("You currently have a Hearthstone")
    player:GossipComplete(player)
    end
    end
    if(intid == 603) then 
    pUnit:GossipCreateMenu(1000, player, 0)
    pUnit:GossipMenuAddItem(1,"Play Anguish Walk", 7001, 0)
    pUnit:GossipMenuAddItem(1,"Play Vigil Walk Music", 7002, 0)
    pUnit:GossipMenuAddItem(1,"Play Brewfest Music", 7003, 0)
    pUnit:GossipMenuAddItem(1,"Play Nagrand Music", 7004, 0)
    pUnit:GossipMenuAddItem(1,"Play Power of the Horde", 7005, 0)
    pUnit:GossipMenuAddItem(1,"Play Silvermoon City Music", 7006, 0)
    pUnit:GossipMenuAddItem(1,"Play Drama Music", 7007, 0)
    pUnit:GossipMenuAddItem(1,"Play Dwarf Music", 7008, 0)
    pUnit:GossipMenuAddItem(1,"Play Stormwind City Music", 7009, 0)
    pUnit:GossipMenuAddItem(1,"Play Irish Ditty Music", 7010, 0)
    pUnit:GossipMenuAddItem(1,"Play Horde Tavern Music", 7011, 0)
    pUnit:GossipMenuAddItem(1,"Play Alliance Tavern Music", 7012, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 7001) then 
    player:PlaySoundToSet(11700)
    player:GossipComplete(player)
    end
    if(intid == 7002) then
    player:PlaySoundToSet(11702)
    player:GossipComplete(player)
    end
    if(intid == 7003) then
    player:PlaySoundToSet(11810)
    player:GossipComplete(player)
    end
    if(intid == 7004) then
    player:PlaySoundToSet(10849)
    player:GossipComplete(player)
    end
    if(intid == 7005) then
    player:PlaySoundToSet(11803)
    player:GossipComplete(player)
    end
    if(intid == 7006) then
    player:PlaySoundToSet(9801)
    player:GossipComplete(player)
    end
    if(intid == 7007) then
    player:PlaySoundToSet(11706)
    player:GossipComplete(player)
    end
    if(intid == 7008) then
    player:PlaySoundToSet(11810)
    player:GossipComplete(player)
    end
    if(intid == 7009) then
    player:PlaySoundToSet(2532)
    player:GossipComplete(player)
    end
    if(intid == 7010) then
    player:PlaySoundToSet(11805)
    player:GossipComplete(player)
    end
    if(intid == 7011) then
    player:PlaySoundToSet(5234)
    player:GossipComplete(player)
    end
    if(intid == 7012) then
    player:PlaySoundToSet(4516)
    player:GossipComplete(player)
    end
    
    if(intid == 6617) then
    pUnit:GossipCreateMenu(1002, player, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into A-Me 01", 6001, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Advanced Target Dummy", 6002, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Arcane Protector", 6003, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Arcane Servant", 6004, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Arcanite Dragonling", 6005, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Arcatraz Sentinel", 6006, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Archery Target", 6007, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Area 52 Death Machine", 6008, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Battle Chicken", 6009, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Crimson Cannon", 6010, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Death's Door Fel Cannon", 6011, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Electrocutioner 6000", 6012, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Gnome Drag Car", 6013, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Goblin Drag Car", 6014, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Love Fool", 6015, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 6616) then
    pUnit:GossipCreateMenu(1003, player, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Kil'jaden", 1001, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Archimonde", 1002, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Akil'zon", 1003, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Al'ar", 1004, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Anetheron", 1005, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Attumen the Huntsman", 1006, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Azgalor", 1007, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Brutallus", 1008, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Doom Lord Kazzak", 1009, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Doomwalker", 1010, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Fathom-Lord Karathress", 1011, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Felmyst", 1012, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Gruul the Dragonkiller", 1013, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Gurtogg Bloodboil", 1014, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Halazzi", 1015, 0)
    pUnit:GossipMenuAddItem(6, "[Second Page]", 6612, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 6612) then
    pUnit:GossipCreateMenu(1004, player, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Hex Lord Malacrass", 2001, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into High Astromancer Solarian", 2002, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into High King Maulgar", 2003, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into High Warlord Naj'entus", 2004, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Hydross the Unstable", 2005, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Illidan Stormrage", 2006, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Jan'alai", 2007, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Kalecgos", 2008, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Kael'thas Sunstrider", 2009, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Kaz'rogal", 2010, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Kil'jaeden", 2011, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Lady Vashj", 2012, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Leotheras the Blind", 2013, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into M'uru", 2014, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Magtheridon", 2015, 0)
    pUnit:GossipMenuAddItem(6, "[Third Page]", 6613, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 6613) then
    pUnit:GossipCreateMenu(1005, player, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Maiden of Virtue", 3001, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Moroes", 3002, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Morogrim Tidewalker", 3003, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Mother Shahraz", 3004, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Nalorakk", 3005, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Netherspite", 3006, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Nightbane", 3007, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Prince Malchezaar", 3008, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Rage Winterchill", 3009, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Reliquary of the Lost", 3010, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Romulo", 3011, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Julianne", 3012, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Shade of Akama", 3013, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Shade of Aran", 3014, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Supremus", 3015, 0)
    pUnit:GossipMenuAddItem(6, "[Fourth Page]", 6614, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 6614) then
    pUnit:GossipCreateMenu(1006, player, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Terestian Illhoof", 4001, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Teron Gorefiend", 4002, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into The Big Bad Wolf", 4003, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into The Curator", 4004, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into The Lurker Below", 4005, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Void Reaver", 4006, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Zul'jin", 4007, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Onyxia", 4008, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Maiev Shadowsong Large", 4009, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Maiev Shadowsong Normal", 4010, 0)
    pUnit:GossipMenuAddItem(6, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 6615) then
    pUnit:GossipCreateMenu(1007, player, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me into XT:9", 5001, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Walking Bomb", 5002, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Unpainted Mechanostrider", 5003, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Truesilver Boar", 5004, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Tonk Mine", 5005, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into The Threshwackonator 4100", 5006, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Techbot", 5007, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Swift White Mechanostrider", 5008, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Goblin Steam Tonk", 5009, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Red Mechanostrider", 5010, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into R-3D0", 5011, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Peacekeeper Security Suit", 5012, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Overwatch Mark I", 5013, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Naga Distiller", 5014, 0)
    pUnit:GossipMenuAddItem(1, "Morph Me Into Mekgineer Thermaplugg", 5015, 0)
    pUnit:GossipMenuAddItem(6, "[Second Page]", 6616, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 6015) then
    player:SetModel(16011)
    player:GossipComplete(player)
    end
    
    if(intid == 6014) then
    player:SetModel(10318)
    player:GossipComplete(player)
    end
    
    if(intid == 6013) then
    player:SetModel(2490)
    player:GossipComplete(player)
    end
    
    
    if(intid == 1007) then
    player:SetModel(18526)
    player:GossipComplete(player)
    end
    
    if(intid == 1008) then
    player:SetModel(22711)
    player:GossipComplete(player)
    end
    
    if(intid == 1009) then
    player:SetModel(17887)
    player:GossipComplete(player)
    end
    
    if(intid == 1010) then
    player:SetModel(21435)
    player:GossipComplete(player)
    end
    
    if(intid == 1011) then
    player:SetModel(20662)
    player:GossipComplete(player)
    end
    
    if(intid == 1012) then
    player:SetModel(22838)
    player:GossipComplete(player)
    end
    
    if(intid == 1013) then
    player:SetModel(18698)
    player:GossipComplete(player)
    end
    
    if(intid == 1014) then
    player:SetModel(21443)
    player:GossipComplete(player)
    end
    
    if(intid == 1015) then
    player:SetModel(21632)
    player:GossipComplete(player)
    end
    
    if(intid == 2001) then
    player:SetModel(22332)
    player:GossipComplete(player)
    end
    
    if(intid == 2002) then
    player:SetModel(18239)
    player:GossipComplete(player)
    end
    
    if(intid == 2003) then
    player:SetModel(18649)
    player:GossipComplete(player)
    end
    
    if(intid == 2004) then
    player:SetModel(21174)
    player:GossipComplete(player)
    end
    
    
    if(intid == 3014) then
    player:SetModel(16621)
    player:GossipComplete(player)
    end
    
    if(intid == 3015) then
    player:SetModel(21145)
    player:GossipComplete(player)
    end
    
    if(intid == 4001) then
    player:SetModel(11343)
    player:GossipComplete(player)
    end
    
    if(intid == 4002) then
    player:SetModel(21576)
    player:GossipComplete(player)
    end
    
    if(intid == 4003) then
    player:SetModel(17053)
    player:GossipComplete(player)
    end
    
    if(intid == 4004) then
    player:SetModel(16958)
    player:GossipComplete(player)
    end
    
    if(intid == 4005) then
    player:SetModel(20216)
    player:GossipComplete(player)
    end
    
    if(intid == 4006) then
    player:SetModel(18951)
    player:GossipComplete(player)
    end
    
    if(intid == 4007) then
    player:SetModel(21899)
    player:GossipComplete(player)
    end
    
    if(intid == 4008) then
    player:SetModel(8570)
    player:GossipComplete(player)
    end
    
    if(intid == 4010) then
    player:SetModel(20628)
    player:GossipComplete(player)
    end
    
    
    if(intid == 4009) then
    player:SetModel(21349)
    player:GossipComplete(player)
    end
    
    if(intid == 601) then 
    pUnit:GossipCreateMenu(1000, player, 0)
    local race=player:GetPlayerRace()
    if race==2 or race==5 or race==6 or race==8 or race==10 then
    pUnit:GossipMenuAddItem(4, "Horde Cities",200, 0)
    end
    local race=player:GetPlayerRace()
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    pUnit:GossipMenuAddItem(4, "Alliance Cities",201, 0)
    end
    pUnit:GossipMenuAddItem(3, "Northrend Locations", 648, 0)
    pUnit:GossipMenuAddItem(4, "Azeroth Instances", 205, 0)
    pUnit:GossipMenuAddItem(4, "Outland Instances", 206, 0)
    pUnit:GossipMenuAddItem(4, "PvP Arenas", 207, 0)
    pUnit:GossipMenuAddItem(1, "Dalaran", 649, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 201) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(2, "Stormwind", 300, 0)
    pUnit:GossipMenuAddItem(2, "Ironforge", 301, 0)
    pUnit:GossipMenuAddItem(2, "Darnassus", 302, 0)
    pUnit:GossipMenuAddItem(2, "The Exodar", 303, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 648) then
    pUnit:GossipCreateMenu(70, player, 0)
    pUnit:GossipMenuAddItem(1, "Dragonblight", 650, 0)
    pUnit:GossipMenuAddItem(1, "Howling Fjord", 651, 0)
    pUnit:GossipMenuAddItem(1, "Grizzly Hills", 652, 0)
    pUnit:GossipMenuAddItem(1, "Icecrown", 653, 0)
    pUnit:GossipMenuAddItem(1, "Strom Peaks", 654, 0)
    pUnit:GossipMenuAddItem(1, "Zul'Drak", 655, 0)
    pUnit:GossipMenuAddItem(1, "Sholazar Basin", 656, 0)
    pUnit:GossipMenuAddItem(1, "Borean Tundra", 657, 0)
    pUnit:GossipMenuAddItem(1, "Wintergrasp", 658, 0)
    pUnit:GossipMenuAddItem(1, "Crystalsong", 659, 0)
    pUnit:GossipSendMenu(player)
    end
    if (intid == 200) then
    pUnit:GossipCreateMenu(99, player, 0) 
    pUnit:GossipMenuAddItem(2, "Orgrimmar", 304, 0)
    pUnit:GossipMenuAddItem(2, "The Undercity", 305, 0)
    pUnit:GossipMenuAddItem(2, "Thunder Bluff", 306, 0)
    pUnit:GossipMenuAddItem(2, "Silvermoon", 307, 0)
    pUnit:GossipSendMenu(player)
    end
    if (intid == 205) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(2, "Shadowfang Keep", 371, 0)
    pUnit:GossipMenuAddItem(2, "Scarlet Monastery", 372, 0)
    pUnit:GossipMenuAddItem(2, "Zul'Farrak", 373, 0)
    pUnit:GossipMenuAddItem(2, "Stratholme", 374, 0)
    pUnit:GossipMenuAddItem(2, "Scholomance", 375, 0)
    pUnit:GossipMenuAddItem(2, "Blackrock Spire", 376, 0)
    pUnit:GossipMenuAddItem(2, "Onyxia's Lair", 377, 0)
    pUnit:GossipMenuAddItem(2, "Molten Core", 378, 0)
    pUnit:GossipMenuAddItem(2, "Zul'Gurub", 379, 0)
    pUnit:GossipMenuAddItem(2, "Karazhan", 380, 0)
    pUnit:GossipMenuAddItem(2, "Ahn'Qirai 20", 381, 0)
    pUnit:GossipMenuAddItem(2, "Ahn'Qirai 40", 382, 0)
    pUnit:GossipMenuAddItem(2, "Naxxramas", 383, 0)
    pUnit:GossipMenuAddItem(2, "Caverns of Time", 384, 0)
    pUnit:GossipSendMenu(player)
    end
    if (intid == 206) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(2, "Outlands Raids", 285, 0)
    pUnit:GossipMenuAddItem(2, "Hellfire Ramparts", 386, 0)
    pUnit:GossipMenuAddItem(2, "The Blood Furnace", 387, 0)
    pUnit:GossipMenuAddItem(2, "The Shattered Halls", 388, 0)
    pUnit:GossipMenuAddItem(2, "The Underbog", 389, 0)
    pUnit:GossipMenuAddItem(2, "The Slave Pens", 390, 0)
    pUnit:GossipMenuAddItem(2, "The Steamvault", 391, 0)
    pUnit:GossipMenuAddItem(2, "Mana-Tombs", 392, 0)
    pUnit:GossipMenuAddItem(2, "Auchenai Crypts", 393, 0)
    pUnit:GossipMenuAddItem(2, "Sethekk Halls", 394, 0)
    pUnit:GossipMenuAddItem(2, "Shadow Labyrinth", 395, 0)
    pUnit:GossipMenuAddItem(2, "The Mechanar", 396, 0)
    pUnit:GossipMenuAddItem(2, "The Botanica", 397, 0)
    pUnit:GossipMenuAddItem(2, "The Arcatraz", 398, 0)
    pUnit:GossipSendMenu(player)
    end
    if (intid == 285) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(2, "Magtheridon's Lair", 399, 0)
    pUnit:GossipMenuAddItem(2, "Serpentshrine Cavern", 400, 0)
    pUnit:GossipMenuAddItem(2, "Gruul's Lair", 401, 0)
    pUnit:GossipMenuAddItem(2, "The Eye", 402, 0)
    pUnit:GossipMenuAddItem(2, "Black Temple", 403, 0)
    pUnit:GossipSendMenu(player)
    end
    if (intid == 207) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(2, "Gurabashi Arena", 410, 0)
    pUnit:GossipSendMenu(player)
    end
    
    
    if (intid == 1) then
    pUnit:GossipCreateMenu(800, player, 0)
    pUnit:GossipMenuAddItem(2, "Classtrainer Melee 1", 100, 0)
    pUnit:GossipMenuAddItem(2, "Classtrainer Melee 2", 101, 0)
    pUnit:GossipMenuAddItem(2, "Classtrainer Spell 1", 102, 0)
    pUnit:GossipMenuAddItem(2, "Classtrainer Spell 2", 103, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 2) then
    pUnit:GossipCreateMenu(501, player, 0)
    pUnit:GossipMenuAddItem(2, "Tier7  1 Vendor", 104, 0)
    pUnit:GossipMenuAddItem(2, "Tier7  2 Vendor", 105, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 3) then
    pUnit:GossipCreateMenu(502, player, 0)
    pUnit:GossipMenuAddItem(2, "Weapons 200+ Vendor", 106, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 4) then
    pUnit:GossipCreateMenu(503, player, 0)
    pUnit:GossipMenuAddItem(2, "Rings Vendor", 107, 0)
    pUnit:GossipMenuAddItem(2, "Necklace Vendor", 108, 0)
    pUnit:GossipMenuAddItem(2, "Shield Vendor", 108, 0)
    pUnit:GossipMenuAddItem(2, "Trinkets Vendor", 148, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 5) then
    pUnit:GossipCreateMenu(504, player, 0)
    pUnit:GossipMenuAddItem(2, "Tabard Vendor", 110, 0)
    pUnit:GossipMenuAddItem(2, "Cloak Vendor", 111, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 6) then
    pUnit:GossipCreateMenu(505, player, 0)
    pUnit:GossipMenuAddItem(2, "Season 5 Vendor", 112, 0)
    pUnit:GossipMenuAddItem(2, "Relic Vendor", 113, 0)
    pUnit:GossipMenuAddItem(2, "Container Vendor", 114, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 7) then
    pUnit:GossipCreateMenu(506, player, 0)
    pUnit:GossipMenuAddItem(2, "Glyph 1 Vendor", 115, 0)
    pUnit:GossipMenuAddItem(2, "Glyph 2 Vendor", 116, 0)
    pUnit:GossipMenuAddItem(2, "Wrist Vendor", 117, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 8) then
    pUnit:GossipCreateMenu(507, player, 0)
    pUnit:GossipMenuAddItem(2, "Book A-Z Vendor", 118, 0)
    pUnit:GossipMenuAddItem(2, "Leather A-Z Vendor", 119, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 9) then
    pUnit:GossipCreateMenu(508, player, 0)
    pUnit:GossipMenuAddItem(2, "Jewelcrafting A-Z Vendor", 120, 0)
    pUnit:GossipMenuAddItem(2, "Engineering/Enchanting A-Z Vendor", 121, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    
    if (intid == 10) then
    pUnit:GossipCreateMenu(509, player, 0)
    pUnit:GossipMenuAddItem(2, "Alchemy/Blacksmithing/Tailoring Vendor", 122, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 11) then
    pUnit:GossipCreateMenu(510, player, 0)
    pUnit:GossipMenuAddItem(2, "Waist Vendor", 123, 0)
    pUnit:GossipMenuAddItem(2, "Feet Vendor", 124, 0)
    pUnit:GossipMenuAddItem(2, "Heirloom Vendor", 125, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 12) then
    pUnit:GossipCreateMenu(511, player, 0)
    pUnit:GossipMenuAddItem(2, "Ground Mounts Vendor", 126, 0)
    pUnit:GossipMenuAddItem(2, "Flying MOunts Vendor", 127, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 13) then
    pUnit:GossipCreateMenu(512, player, 0)
    pUnit:GossipMenuAddItem(2, "Item Enhancement (Permanent) Vendor", 128, 0)
    pUnit:GossipMenuAddItem(2, "Item Enhancement (Temporary) Vendor", 129, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 14) then
    pUnit:GossipCreateMenu(513, player, 0)
    pUnit:GossipMenuAddItem(2, "Reagent ( Enchanting ) Vendor", 130, 0)
    pUnit:GossipMenuAddItem(2, "Reagent ( Leatherworking ) Vendor", 131, 0)
    pUnit:GossipMenuAddItem(2, "Reagent ( Blacksmithing ) Vendor", 132, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 16) then
    pUnit:GossipCreateMenu(514, player, 0)
    pUnit:GossipMenuAddItem(2, "Reagent ( Inscription ) Vendor", 133, 0)
    pUnit:GossipMenuAddItem(2, "Reagent ( Engineering ) Vendor", 134, 0)
    pUnit:GossipMenuAddItem(2, "Reagent ( Alchemy ) Vendor", 135, 0)
    pUnit:GossipMenuAddItem(2, "Reagent ( Tailoring ) Vendor", 136, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 17) then
    pUnit:GossipCreateMenu(515, player, 0)
    pUnit:GossipMenuAddItem(2, "General Goods Vendor", 137, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 18) then
    pUnit:GossipCreateMenu(516, player, 0)
    pUnit:GossipMenuAddItem(2, "Quiver, AmmoPouch, Projectile Vendor", 138, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 19) then
    pUnit:GossipCreateMenu(517, player, 0)
    pUnit:GossipMenuAddItem(2, "Currency Vendor", 139, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 20) then
    pUnit:GossipCreateMenu(518, player, 0)
    pUnit:GossipMenuAddItem(2, "Gemstone I Vendor", 140, 0)
    pUnit:GossipMenuAddItem(2, "Gemstone II Vendor", 141, 0)
    pUnit:GossipMenuAddItem(2, "Gemstone III", 142, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 21) then
    pUnit:GossipCreateMenu(519, player, 0)
    pUnit:GossipMenuAddItem(2, "Armor Tokens Vendor", 143, 0)
    pUnit:GossipMenuAddItem(2, "Keys Vendor", 144, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 22) then
    pUnit:GossipCreateMenu(520, player, 0)
    pUnit:GossipMenuAddItem(2, "Proffession Trainer I", 145, 0)
    pUnit:GossipMenuAddItem(2, "Proffession Trainer II", 149, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 23) then
    pUnit:GossipCreateMenu(521, player, 0)
    pUnit:GossipMenuAddItem(2, "Riding Trainer", 146, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 24) then
    pUnit:GossipCreateMenu(522, player, 0)
    pUnit:GossipMenuAddItem(2, "Weapons Trainer", 147, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 600, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if (intid == 300) then 
    player:Teleport(0, -9100.480469, 406.950745, 92.594185)
    player:GossipComplete()
    end
    if (intid == 301) then 
    player:Teleport(0, -5028.265137, -825.976563, 495.301575)
    player:GossipComplete()
    end
    if (intid == 302) then
    player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
    player:GossipComplete()
    end
    if (intid == 303) then 
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
    player:GossipComplete()
    end
    if (intid == 304) then 
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    player:GossipComplete()
    end
    if (intid == 305) then
    player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    player:GossipComplete()
    end
    if (intid == 306) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    player:GossipComplete()
    end
    if (intid == 307) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    player:GossipComplete()
    end
    if (intid == 370) then
    player:Teleport(530, -2859.522461, 3182.34773, 10.008426);
    player:GossipComplete()
    end
    if (intid == 371) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143);
    player:GossipComplete()
    end
    if (intid == 372) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085);
    player:GossipComplete()
    end
    if (intid == 373) then
    player:Teleport(1, -6797.278809, -2903.917969, 9.953360);
    player:GossipComplete()
    end
    if (intid == 374) then
    player:Teleport(0, -11919.073242, -1202.459374, 92.298744);
    player:GossipComplete()
    end
    if (intid == 375) then
    player:Teleport(1, -8394.730469, 1485.658447, 21.038563);
    player:GossipComplete()
    end
    if (intid == 376) then
    player:Teleport(1, -8247.316406, 1970.156860, 129.071472);
    player:GossipComplete()
    end
    if (intid == 377) then
    player:Teleport(409, 1089.6, -470.19, -106.41);
    player:GossipComplete()
    end
    if (intid == 378) then
    player:Teleport(249, 30.0, -64.0, -5.0);
    player:GossipComplete()
    end
    if (intid == 379) then
    player:Teleport(533, 3006.06, -3436.72, 293.891);
    player:GossipComplete()
    end
    if (intid == 380) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983);
    player:GossipComplete()
    end
    if (intid == 381) then
    player:Teleport(0, 3359.111572, -3380.8444238, 144.781860);
    player:GossipComplete()
    end
    if (intid == 382) then
    player:Teleport(0, -7527.129883, -1224.997437, 285.733002);
    player:GossipComplete()
    end
    if (intid == 383) then
    player:Teleport(532, -11087.3, -1977.47, 49.6135);
    player:GossipComplete()
    end
    if (intid == 384) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376);
    player:GossipComplete()
    end
    if (intid == 386) then
    player:Teleport(530, -360.670990, 3071.899902, -15.097700);
    player:GossipComplete()
    end
    if (intid == 387) then
    player:Teleport(530, -303.506012, 3164.820068, 31.742500);
    player:GossipComplete()
    end
    if (intid == 388) then
    player:Teleport(530, -311.083527, 3083.291748, -3.745923);
    player:GossipComplete()
    end
    if (intid == 389) then
    player:Teleport(530, 777.088989, 6763.450195, -72.062561);
    player:GossipComplete()
    end
    if (intid == 390) then
    player:Teleport(530, 719.507996, 6999.339844, -73.074303);
    player:GossipComplete()
    end
    if (intid == 391) then
    player:Teleport(530, 816.590027, 6934.669922, -80.544601);
    player:GossipComplete()
    end
    if (intid == 392) then
    player:Teleport(530, -3079.810059, 4943.040039, -101.046997);
    player:GossipComplete()
    end
    if (intid == 393) then
    player:Teleport(530, -3361.959961, 5225.770020, -101.047997);
    player:GossipComplete()
    end
    if (intid == 394) then
    player:Teleport(530, -3362.219971, 4660.410156, -101.049004);
    player:GossipComplete()
    end
    if (intid == 395) then
    player:Teleport(530, -3645.060059, 4943.620117, -101.047997);
    player:GossipComplete()
    end
    if (intid == 396) then
    player:Teleport(530, 2862.409912, 1546.089966, 252.158691);
    player:GossipComplete()
    end
    if (intid == 397) then
    player:Teleport(530, 3413.649902, 1483.319946, 182.837997);
    player:GossipComplete()
    end
    if (intid == 398) then
    player:Teleport(530, 3311.598145, 1332.745117, 505.557251);
    player:GossipComplete()
    end
    if (intid == 399) then
    player:Teleport(530, -313.678986, 3088.350098, -116.501999);
    player:GossipComplete()
    end
    if (intid == 400) then
    player:Teleport(530, 830.542908, 6865.445801, -63.785503);
    player:GossipComplete()
    end
    if (intid == 401) then
    player:Teleport(530, 3549.424072, 5179.854004, -4.430779);
    player:GossipComplete()
    end
    if (intid == 402) then
    player:Teleport(530, 3087.310059, 1373.790039, 184.643005);
    player:GossipComplete()
    end
    if (intid == 403) then
    player:Teleport(564, 97.0894, 1001.96, -86.8798);
    player:GossipComplete()
    end
    if (intid == 410) then
    player:Teleport(0, -13243.240234, 197.949799, 32.112690);
    player:GossipComplete()
    end
    if(intid == 650) then
    player:Teleport(571, 2981.362305, 291.108032, 84.906631);
    player:GossipComplete()
    end
    if(intid == 651) then
    player:Teleport(571, 452.491608, -4010.313965, 268.903809);
    player:GossipComplete()
    end
    if(intid == 652) then
    player:Teleport(571, 3730.314453, -3859.454346, 183.489944);
    player:GossipComplete()
    end
    if(intid == 653) then
    player:Teleport(571, 6591.855469, 2451.750732, 467.928711);
    player:GossipComplete()
    end
    if(intid == 654) then
    player:Teleport(571, 7266.094238, -1338.805542, 911.679749);
    player:GossipComplete()
    end
    if(intid == 655) then
    player:Teleport(571, 5444.818848, -1746.449585, 248.347855);
    player:GossipComplete()
    end
    if(intid == 656) then
    player:Teleport(571, 4872.304688, 5535.682617, -62.462074);
    player:GossipComplete()
    end
    if(intid == 657) then
    player:Teleport(571, 4502.164551, 5560.019531, 51.479229);
    player:GossipComplete()
    end
    if(intid == 658) then
    player:Teleport(571, 4608.474121, 2847.145020, 396.896790);
    player:GossipComplete()
    end
    if(intid == 659) then
    player:Teleport(571, 5331.596191, 142.360580, 168.219833);
    player:GossipComplete()
    end
    if(intid == 649) then
    player:Teleport(571, 5806.516602, 628.091370, 647.240662);
    player:GossipComplete()
    end
    
    
    
    
    
    
    
    if (intid == 149) then
    local x =player:GetX ()
    local y =player:GetY ()
    local z =player:GetZ ()
    local o =player:GetO ()
    player:SpawnCreature (70007, x, y, z, o, 35, 70000)
    player:GossipComplete()
    end
    
    RegisterpUnitGossipEvent(995533, 1, "On_Gossip")
    RegisterpUnitGossipEvent(995533, 2,"Gossip_Submenus")

  3. #3
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually wrong. It can be "unit" but when you constructed your functions, you used "Unit" not "unit". Lua is case sensitive


  4. #4
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah come on Vindicated I thought I was all pro at lua :P
    Last edited by LJN; 07-30-2009 at 12:51 AM.

  5. #5
    Vindicated's Avatar Contributor
    Reputation
    226
    Join Date
    Aug 2008
    Posts
    1,067
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha it's all good. Although make sure you say lua, not LUA. It isn't an acronym. It will make you look "more pro"


  6. #6
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All better

  7. #7
    edded's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok thanks guys

  8. #8
    edded's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey i did what vindicated said and it solved it but there is a new problem
    on line 4 it says gossipmenuadditem a nil value

  9. #9
    edded's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok Ok i fixed all the errors but when i get into game i spawn the creature and there he is and a try to talk to him doesnt work. i try to talk to someone else that wasnt even included anywhere in my script she the menu that doesnt work. i made the npc talk in the database and i set both his flag1 to 1 and his npcflags to 1 plz help me

  10. #10
    edded's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    41
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cmon someone gotta know

Similar Threads

  1. What is Wrong with my Script
    By Juicyz in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-23-2008, 07:37 PM
  2. 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
  3. Whats wrong with creature loot and my LUA Scripts
    By controlsx2 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 05-06-2008, 01:48 PM
  4. [Need help] What's wrong with this script?
    By Arthas117 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 01-10-2008, 02:04 PM
All times are GMT -5. The time now is 12:12 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