Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ItemLink = GetItemLink(95029)
- local NPC_ID = 65034
- local function ShowMenu(plr, unit, sender, intid)
- if (intid == 0) then
- if (plr:IsAlliance()) then
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|tAlliance Titles", 0, 1)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tPvP Titles", 0, 3)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:30:30:-25|tPvE Titles", 0, 4)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:30:30:-25|tReputation Titles", 0, 5)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_sandbox_spectraltiger_01:30:30:-25|tCustom Titles", 0, 6)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|tFree Titles", 0, 7)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/Spell_Shadow_SacrificialShield:30:30:-25|tNevermind..", 0, 500)
- plr:GossipSendMenu(65036, unit)
- else
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|tHorde Titles", 0, 2)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tPvP Titles", 0, 3)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:30:30:-25|tPvE Titles", 0, 4)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:30:30:-25|tReputation Titles", 0, 5)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_sandbox_spectraltiger_01:30:30:-25|tCustom Titles", 0, 6)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|tFree Titles", 0, 7)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/Spell_Shadow_SacrificialShield:30:30:-25|tNevermind..", 0, 500)
- plr:GossipSendMenu(65036, unit)
- end
- end
- end
- function On_Gossip(event, plr, unit)
- if (plr:IsInCombat()) then
- return
- end
- ShowMenu(plr, unit, 0, 0)
- end
- function On_Select(event, plr, unit, sender, intid, code)
- ShowMenu(plr, unit, sender, intid)
- local name = plr:GetName()
- if (intid == 1) then -- Alliance Titles
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of the Alliance", 0, 200)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Stormwind", 0, 201)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Ironforge", 0, 202)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Darnassus", 0, 203)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Exodar", 0, 204)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Gnomeregan", 0, 205)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|tFlame Warden "..name.."", 0, 206)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 2) then -- Horde Titles
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of the Horde", 0, 207)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of Orgrimmar", 0, 208)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of Sen'jin", 0, 209)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of Thunder Bluff", 0, 210)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of Silvermoon", 0, 211)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of the Undercity", 0, 212)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|tFlame Keeper "..name.."", 0, 213)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 3) then -- PvP Titles
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tJusticar "..name.."", 0, 214)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tBattlemaster "..name.."", 0, 215)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|t"..name.." the Flawless Victor", 0, 216)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tVanquisher "..name.."", 0, 217)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 4) then -- PvE Titles
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|tStarcaller "..name.."", 0, 218)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Astral Walker", 0, 219)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Death's Demise", 0, 220)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Champion of Ulduar", 0, 221)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|tTwilight Vanquisher "..name.."", 0, 222)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Celestial Defender", 0, 223)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." of the Nightfall", 0, 224)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Immortal", 0, 225)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Herald of the Titans", 0, 226)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Undying", 0, 227)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|tGrand Crusader "..name.."", 0, 228)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Magic Seeker", 0, 229)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Light of Dawn", 0, 230)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Kingslayer", 0, 231)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." Bane of the Fallen King", 0, 232)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." Conqueror of Ulduar", 0, 233)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Champion of the Frozen Wastes", 0, 234)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Hand of A'dal", 0, 235)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Conqueror of Naxxramas", 0, 236)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:20:20:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 5) then -- Reputation Titles
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." the Insane", 0, 237)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|tCrusader "..name.."", 0, 238)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|tBloodsail Admiral "..name.."", 0, 239)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." of the Shattered Sun", 0, 240)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." the Exalted", 0, 241)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." of the Ashen Verdict", 0, 242)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name..", Guardian of Cenarius", 0, 243)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|tAmbassador "..name.."", 0, 244)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." the Argent Champion", 0, 245)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." the Diplomat", 0, 246)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 6) then -- Custom Titles
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tMists of Pandaria Titles", 0, 300)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tCataclysm Titles", 0, 301)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tPure Custom Titles", 0, 302)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 7) then -- Free titles
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|t"..name.." Jenkins", 0, 247)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|t"..name.." the Patient", 0, 248)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|tElder "..name.."", 0, 249)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|tMerrymaker "..name.."", 0, 250)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 300) then -- Next menu for Mists of Pandaria Titles
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tGorgeous "..name.."", 0, 251)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tZookeper "..name.."", 0, 252)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name.." Khan", 0, 253)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name..", Seeker of Knowledge", 0, 254)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name.." the Lucid", 0, 255)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tTrainer "..name.."", 0, 256)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name.." the Relic Hunter", 0, 257)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tBrawler "..name.."", 0, 258)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tGob Squad Commando "..name.."", 0, 259)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tGob Squad Recruit "..name.."", 0, 260)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tFire-Watcher "..name.."", 0, 261)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tSiegebreaker "..name.."", 0, 262)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name.." the Prime", 0, 263)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tStormbrewer "..name.."", 0, 264)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tTamer "..name.."", 0, 265)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 301) then -- Next menu for Cataclysm titles
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." Slayer of Stupid, Incompetent and Dissapointing Minions", 0, 266)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." Hero of the Alliance/Horde", 0, 267)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", the Bloodthirsty", 0, 268)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tFirelord "..name.."", 0, 269)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tWarbringer "..name.."", 0, 270)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." the Flamebreaker", 0, 271)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tWarbound "..name.."", 0, 272)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", Blessed Defender of Nordrassil", 0, 273)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", Defender of a Shattered World", 0, 274)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", Destroyer's End", 0, 275)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." of the Four Winds", 0, 276)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tProfessor "..name.."", 0, 277)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." the Camel Hoarder", 0, 278)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tAssistant Professor) "..name.."", 0, 279)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tAssociate Professor "..name.."", 0, 280)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- if (intid == 302) then -- Pure Custom Titles Menu
- plr:GossipClearMenu()
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." the Reaper", 0, 281)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tMechanic "..name.."", 0, 282)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." the Royal", 0, 283)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." of Death", 0, 284)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tApostle "..name.."", 0, 285)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." of the Void", 0, 286)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tImpaler "..name.."", 0, 287)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tTerminator "..name.."", 0, 288)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." the Damned", 0, 289)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tDaredevil "..name.."", 0, 289)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tAssassin "..name.."", 0, 289)
- plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
- plr:GossipSendMenu(1, unit)
- end
- -- From here the adding titles starts!
- --------------- Alliance Titles-------------------
- if (intid == 200) then -- of the Alliance 126
- if (plr:HasTitle(126)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Alliance|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(126)
- plr:GossipComplete()
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 201) then -- of Stormwind 149
- if (plr:HasTitle(149)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Stormwind|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(149)
- plr:GossipComplete()
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 202) then -- of Ironforge 148
- if (plr:HasTitle(148)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Ironforge|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(148)
- plr:GossipComplete()
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 203) then -- of Darnassus 147
- if (plr:HasTitle(147)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Darnassus|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(147)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 204) then -- of Exodar 146
- if (plr:HasTitle(146)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Exodar|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(146)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 205) then -- of Gnomeregan 113
- if (plr:HasTitle(113)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Gnomeregan|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(113)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 206) then -- Flame Warden 75
- if (plr:HasTitle(75)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have Flame Warden |cffff0000"..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(75)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- ---------------------Here alliance titles ends --------------------
- --------------------------- HORDE TITLES ----------------------
- if (intid == 207) then -- of the Horde
- if (plr:HasTitle(127)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Horde|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(127)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 208) then -- of Orgrimmar
- if (plr:HasTitle(150)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Orgrimmar|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(150)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 209) then -- of Sen'jin
- if (plr:HasTitle(151)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Sen'jin|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(151)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 210) then -- of Thunder Bluff
- if (plr:HasTitle(153)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Thunder Bluff|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(153)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 211) then -- of Silvermoon
- if (plr:HasTitle(152)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Silvermoon|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(152)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 212) then -- of the Undercity
- if (plr:HasTitle(149)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Undercity|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(149)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 213) then -- Flame Keeper
- if (plr:HasTitle(76)) then
- unit:SendChatMEssageToPlayer(8, 0, "You already have |cffff0000Flame Keeper "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(76)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMesageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- ------------------ Horde Titles ends here!----------------------
- ------------------ PvP Titles Begins here ----------------------
- if (intid == 214) then -- Justicar 48
- if (plr:HasTitle(48)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Justicar "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(48)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 215) then -- Battlemaster 72
- if (plr:HasTitle(72)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Battlemaster "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(72)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 216) then -- Flawless Victor 128
- if (plr:HasTitle(128)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000the Flawless Victor"..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(128)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 217) then -- Vanquisher 163
- if (plr:HasTitle(163)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Vanquisher "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(163)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- ---------------------------- PvP TITLES ENDS HERE -----------------------
- ---------------------------- PvE TITLES BEGINS HERE ---------------------
- if (intid == 218) then -- Starcaller 164
- if (plr:HasTitle(164)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Starcaller "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(164)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 219) then -- the Astral Walker 165
- if (plr:HasTitle(165)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Astral Walker|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(165)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 220) then -- Death's Demise 158
- if (plr:HasTitle(158)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |Death's Demise"..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(158)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 221) then -- Champion of Ulduar 161
- if (plr:HasTitle(161)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.."Champion of Ulduar|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(161)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 222) then -- Twilight Vanquisher 121
- if (plr:HasTitle(121)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Twilight Vanquisher "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(121)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 223) then -- the Celestial Defender 159
- if (plr:HasTitle(159)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Celestial Defender|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(159)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 224) then -- of the Nightfall 140
- if (plr:HasTitle(140)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Nightfall|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(140)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 225) then -- the Immortal 141
- if (plr:HasTitle(141)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Immortal|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(141)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 226) then -- Herald of the Titans 166
- if (plr:HasTitle(166)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Herald of the Titans|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(166)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 227) then -- the Undying 142
- if (plr:HasTitle(142)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Undying|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(142)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 228) then -- Grand Crusader 170
- if (plr:HasTitle(170)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Grand Crusader"..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(170)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 229) then -- the Magic Seeker 120
- if (plr:HasTitle(120)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Magic Seeker|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(120)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 230) then -- the Light of Dawn 173
- if (plr:HasTitle(173)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Light of Dawn|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(173)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 231) then -- the Kingslayer 175
- plr:SetKnownTitle(175)
- plr:GossipComplete()
- end
- if (intid == 232) then -- Bane of the Fallen King 174
- if (plr:HasTitle(174)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Bane of the Fallen King"..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(174)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 233) then -- Conqueror of Ulduar 160
- if (plr:HasTitle(160)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Conqueror of Ulduar|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(160)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 234) then -- Champion of the Frozen Wastes 129
- if (plr:HasTitle(129)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Champion of the Frozen Wastes|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(129)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 235) then -- Hand of A'dal 64
- if (plr:HasTitle(64)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Hand of A'dal|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(64)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 236) then -- Conqueror of Naxxramas 122
- if (plr:HasTitle(122)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Conqeuror of Naxxramas|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(122)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- -------------------------- PvE Titles ends here!--------------------------
- ---------------------- Reputation Titles begins here!!--------------------
- if (intid == 237) then -- the Insane 145
- if (plr:HasTitle(145)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Insane|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(145)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 238) then -- Crusader 170
- if (plr:HasTitle(170)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Crusader "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(170)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 239) then -- Bloodsail Admiral 144
- if (plr:HasTitle(144)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Bloodsail Admiral "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(144)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 240) then -- of the Shattered Sun 63
- if (plr:HasTitle(63)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Shattered Sun|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(63)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 241) then -- the Exalted 77
- if (plr:HasTitle(77)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Exalted|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(77)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 242) then -- of the Ashen Verdict 176
- if (plr:HasTitle(176)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Ashen Verdict|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(176)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 243) then -- Guardian of Cenarius 132
- if (plr:HasTitle(132)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Guardian of Cenarius|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(132)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 244) then -- Ambassador 130
- if (plr:HasTitle(130)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Ambassador"..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(130)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 245) then -- the Argent Champion 131
- if (plr:HasTitle(131)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Argent Champion|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(131)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 246) then -- the Diplomat 79
- if (plr:HasTitle(79)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Diplomat|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95000, 1000)) then
- plr:SetKnownTitle(79)
- plr:GossipComplete()
- plr:RemoveItem(95000, 1000)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
- end
- end
- ----------------------- Reputation Titles ENDS HERE! -----------------------
- -------------------------- Free TITLES BEGINS HERE!-------------------------
- if (intid == 247) then -- Jenkins 143
- if (plr:HasTitle(143)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Jenkins|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(143)
- plr:GossipComplete()
- end
- if (intid == 248) then -- the Patient 172
- if (plr:HasTitle(172)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Patient|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(172)
- plr:GossipComplete()
- end
- if (intid == 249) then -- Elder 74
- if (plr:HasTitle(74)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Elder "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(74)
- plr:GossipComplete()
- end
- if (intid == 250) then -- Merrymaker 134
- if (plr:HasTitle(134)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Merrymaker "..name.." Jenkins|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(134)
- plr:GossipComplete()
- end
- ---------------------- Mists of Pandaria Titles -----------------------
- if (intid == 251) then -- Gorgeous 191
- if (plr:HasTitle(191)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Gorgeous "..name.." Jenkins|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 10)) then
- plr:SetKnownTitle(191)
- plr:GossipComplete()
- plr:RemoveItem(95029, 10)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 252) then -- Zookeper 183
- if (plr:HasTitle(183)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Zookeper "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 10)) then
- plr:SetKnownTitle(183)
- plr:GossipComplete()
- plr:RemoveItem(95029, 10)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 253) then -- Khan 192
- if (plr:HasTitle(192)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Khan|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 10)) then
- plr:SetKnownTitle(192)
- plr:GossipComplete()
- plr:RemoveItem(95029, 10)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 254) then -- Seeker of Knowledge 193
- if (plr:HasTitle(193)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Seeker of Knowledge|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(193)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 255) then -- the Lucid 188
- if (plr:HasTitle(188)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Lucid|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(188)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 256) then -- Trainer 180
- if (plr:HasTitle(180)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Trainer "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(180)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 257) then --the Relic Hunter 189
- if (plr:HasTitle(189)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Relic Hunter|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(189)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 258) then -- Brawler 182
- if (plr:HasTitle(182)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Brawler "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(182)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 259) then -- Gob Squad Commando
- if (plr:HasTitle(194)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Gob Squad Commando "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(194)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 260) then -- Nothing used
- if (plr:HasTitle(182)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Brawler "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(182)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 261) then -- Fire-Watcher 195
- if (plr:HasTitle(195)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Fire-Watcher "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(195)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 262) then -- Siegebreaker 198
- if (plr:HasTitle(198)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Siegebreaker "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(198)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 263) then -- the Prime 199
- if (plr:HasTitle(199)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Prime|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(199)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 264) then -- Stormbrewer 200
- if (plr:HasTitle(200)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Stormbrewer "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(200)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 265) then -- Tamer 201
- if (plr:HasTitle(201)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Tamer "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(201)
- plr:GossipComplete()
- end
- if (intid == 266) then -- Slayer of Stupid, Incompetent and Dissapointing Minions 196
- if (plr:HasTitle(196)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Slayer of Stupid, Incompetent and Dissapointing Minions "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5)) then
- plr:SetKnownTitle(196)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 267) then -- Hero of the Horde/alliance 187/184
- if (plr:HasTitle(184)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Hero of the Alliance|r title.", plr)
- plr:GossipComplete()
- return
- else
- if (plr:HasTitle(187)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Hero of the Horde|r title.", plr)
- plr:GossipComplete()
- return
- end
- if (plr:HasItem(95029, 5) then
- plr:GossipComplete()
- if (plr:IsAlliance()) then
- plr:SetKnownTitle(184)
- plr:RemoveItem(95029, 5)
- else
- plr:SetKnownTitle(187)
- plr:GossipComplete()
- plr:RemoveItem(95029, 5)
- else
- plr:GossipComplete()
- unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
- end
- end
- if (intid == 268) then -- the Bloodthirsty
- if (plr:HasTitle(181)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Bloodthirsty|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(181)
- plr:GossipComplete()
- end
- if (intid == 269) then -- Firelord 202
- if (plr:HasTitle(202)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Firelord "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(202)
- plr:GossipComplete()
- end
- if (intid == 270) then -- Warbringer
- if (plr:HasTitle(203)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Warbringer "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(203)
- plr:GossipComplete()
- end
- if (intid == 271) then -- the Flamebreaker 204
- if (plr:HasTitle(204)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000 "..name.." the Flamebreaker|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(204)
- plr:GossipComplete()
- end
- if (intid == 272) then -- Warbound 205
- if (plr:HasTitle(205)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Warbound "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(205)
- plr:GossipComplete()
- end
- if (intid == 273) then -- Blessed Defender of Nordrassil 206
- if (plr:HasTitle(206)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000 "..name..", Blessed Defender of Nordrassil|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(206)
- plr:GossipComplete()
- end
- if (intid == 274) then -- Defender of a Shattered World 207
- if (plr:HasTitle(207)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Defender of a Shattered World|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(207)
- plr:GossipComplete()
- end
- if (intid == 275) then -- Destroyer's End 208
- if (plr:HasTitle(208)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Destroyer's End|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(208)
- plr:GossipComplete()
- end
- if (intid == 276) then -- of the Four Winds 209
- if (plr:HasTitle(209)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Four Winds|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(209)
- plr:GossipComplete()
- end
- if (intid == 277) then -- Professor 210
- if (plr:HasTitle(210)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Professor "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(210)
- plr:GossipComplete()
- end
- if (intid == 278) then -- the Camel Hoarder 211
- if (plr:HasTitle(211)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Camel Hoarder|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(211)
- plr:GossipComplete()
- end
- if (intid == 279) then -- Assistant Professor 212
- if (plr:HasTitle(212)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Assistant Professor "..name.." |r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(212)
- plr:GossipComplete()
- end
- if (intid == 280) then -- Associate Professor
- if (plr:HasTitle(213)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Associate Professor "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(213)
- plr:GossipComplete()
- end
- ------------------------- Custom Titles BEGIN HERE -------------------------
- if (intid == 281) then -- the Reaper
- if (plr:HasTitle(214)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Reaper|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(214)
- plr:GossipComplete()
- end
- if (intid == 282) then -- Mechanic
- if (plr:HasTitle(215)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Mechanic "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(215)
- plr:GossipComplete()
- end
- if (intid == 283) then -- the Royal
- if (plr:HasTitle(216)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Royal|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(216)
- plr:GossipComplete()
- end
- if (intid == 284) then -- of Death
- if (plr:HasTitle(217)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Death|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(217)
- plr:GossipComplete()
- end
- if (intid == 285) then -- Apostle
- if (plr:HasTitle(218)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Apostle "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(201)
- plr:GossipComplete()
- end
- if (intid == 286) then -- of the Void
- if (plr:HasTitle(219)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Void|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(219)
- plr:GossipComplete()
- end
- if (intid == 287) then -- Impaler
- if (plr:HasTitle(220)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Impaler "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(220)
- plr:GossipComplete()
- end
- if (intid == 288) then -- Terminator
- if (plr:HasTitle(221)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Terminator "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(201)
- plr:GossipComplete()
- end
- if (intid == 289) then -- of the Damned
- if (plr:HasTitle(222)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Damned|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(222)
- plr:GossipComplete()
- end
- if (intid == 290) then -- Daredevil
- if (plr:HasTitle(223)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Daredevil "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(223)
- plr:GossipComplete()
- end
- if (intid == 291) then -- Assassin
- if (plr:HasTitle(224)) then
- unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Assassin "..name.."|r title.", plr)
- plr:GossipComplete()
- return
- end
- plr:SetKnownTitle(224)
- plr:GossipComplete()
- end
- if (intid == 500) then
- plr:GossipComplete()
- end
- end
- RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
- RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement