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
- 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
- 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