WIXXZI

Untitled

Mar 3rd, 2023
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.15 KB | None | 0 0
  1.  
  2. local ItemLink = GetItemLink(95029)
  3. local NPC_ID = 65034
  4. local COIN = 95029 -- Item id of the coin
  5. -------------COSTS----------------
  6. local PVPCOST = 2 -- 2 Title Coins
  7. local PVECOST = 1 -- 1 Title Coin
  8.  
  9. local function ShowMenu(event, plr, unit, sender, intid)
  10. if (intid == 0) then
  11. if (plr:IsAlliance()) then
  12. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|tAlliance Titles", 0, 1)
  13. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tPvP Titles", 0, 3)
  14. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:30:30:-25|tPvE Titles", 0, 4)
  15. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:30:30:-25|tReputation Titles", 0, 5)
  16. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_sandbox_spectraltiger_01:30:30:-25|tCustom Titles", 0, 6)
  17. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|tFree Titles", 0, 7)
  18. plr:GossipMenuAddItem(5, "|TInterface/ICONS/Spell_Shadow_SacrificialShield:30:30:-25|tNevermind..", 0, 500)
  19. plr:GossipSendMenu(65036, unit)
  20. else
  21. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|tHorde Titles", 0, 2)
  22. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tPvP Titles", 0, 3)
  23. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:30:30:-25|tPvE Titles", 0, 4)
  24. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:30:30:-25|tReputation Titles", 0, 5)
  25. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_sandbox_spectraltiger_01:30:30:-25|tCustom Titles", 0, 6)
  26. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|tFree Titles", 0, 7)
  27. plr:GossipMenuAddItem(5, "|TInterface/ICONS/Spell_Shadow_SacrificialShield:30:30:-25|tNevermind..", 0, 500)
  28. plr:GossipSendMenu(65036, unit)
  29. end
  30. end
  31.  
  32. function On_Gossip(event, plr, unit)
  33. if (plr:IsInCombat()) then
  34. return
  35. end
  36. ShowMenu(event, plr, unit, 0, 0)
  37. end
  38.  
  39. local function On_Select(event, plr, unit, sender, intid, code)
  40. ShowMenu(plr, unit, sender, intid)
  41. local name = plr:GetName()
  42. if (intid == 1) then -- Alliance Titles
  43. plr:GossipClearMenu()
  44. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of the Alliance", 0, 200)
  45. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Stormwind", 0, 201)
  46. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Ironforge", 0, 202)
  47. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Darnassus", 0, 203)
  48. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Exodar", 0, 204)
  49. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|t"..name.." of Gnomeregan", 0, 205)
  50. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_02:30:30:-25|tFlame Warden "..name.."", 0, 206)
  51. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  52. plr:GossipSendMenu(1, unit)
  53. end
  54.  
  55. if (intid == 2) then -- Horde Titles
  56. plr:GossipClearMenu()
  57. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of the Horde", 0, 207)
  58. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of Orgrimmar", 0, 208)
  59. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of Sen'jin", 0, 209)
  60. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of Thunder Bluff", 0, 210)
  61. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of Silvermoon", 0, 211)
  62. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|t"..name.." of the Undercity", 0, 212)
  63. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_bannerpvp_01:30:30:-25|tFlame Keeper "..name.."", 0, 213)
  64. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  65. plr:GossipSendMenu(1, unit)
  66. end
  67.  
  68. if (intid == 3) then -- PvP Titles
  69. plr:GossipClearMenu()
  70. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tJusticar "..name.."", 0, 214)
  71. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tBattlemaster "..name.."", 0, 215)
  72. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|t"..name.." the Flawless Victor", 0, 216)
  73. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_pvp_o_15:30:30:-25|tVanquisher "..name.."", 0, 217)
  74. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  75. plr:GossipSendMenu(1, unit)
  76. end
  77.  
  78. if (intid == 4) then -- PvE Titles
  79. plr:GossipClearMenu()
  80. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|tStarcaller "..name.."", 0, 218)
  81. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Astral Walker", 0, 219)
  82. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Death's Demise", 0, 220)
  83. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Champion of Ulduar", 0, 221)
  84. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|tTwilight Vanquisher "..name.."", 0, 222)
  85. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Celestial Defender", 0, 223)
  86. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." of the Nightfall", 0, 224)
  87. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Immortal", 0, 225)
  88. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Herald of the Titans", 0, 226)
  89. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Undying", 0, 227)
  90. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|tGrand Crusader "..name.."", 0, 228)
  91. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Magic Seeker", 0, 229)
  92. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Light of Dawn", 0, 230)
  93. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." the Kingslayer", 0, 231)
  94. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." Bane of the Fallen King", 0, 232)
  95. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name.." Conqueror of Ulduar", 0, 233)
  96. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Champion of the Frozen Wastes", 0, 234)
  97. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Hand of A'dal", 0, 235)
  98. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_head_dragon_red:20:20:-25|t"..name..", Conqueror of Naxxramas", 0, 236)
  99. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:20:20:-25|tBack..", 0, 0)
  100. plr:GossipSendMenu(1, unit)
  101. end
  102.  
  103. if (intid == 5) then -- Reputation Titles
  104. plr:GossipClearMenu()
  105. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." the Insane", 0, 237)
  106. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|tCrusader "..name.."", 0, 238)
  107. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|tBloodsail Admiral "..name.."", 0, 239)
  108. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." of the Shattered Sun", 0, 240)
  109. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." the Exalted", 0, 241)
  110. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." of the Ashen Verdict", 0, 242)
  111. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name..", Guardian of Cenarius", 0, 243)
  112. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|tAmbassador "..name.."", 0, 244)
  113. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." the Argent Champion", 0, 245)
  114. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievement_reputation_07:25:25:-25|t"..name.." the Diplomat", 0, 246)
  115. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  116. plr:GossipSendMenu(1, unit)
  117. end
  118.  
  119. if (intid == 6) then -- Custom Titles
  120. plr:GossipClearMenu()
  121. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tMists of Pandaria Titles", 0, 300)
  122. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tCataclysm Titles", 0, 301)
  123. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tPure Custom Titles", 0, 302)
  124. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  125. plr:GossipSendMenu(1, unit)
  126. end
  127.  
  128. if (intid == 7) then -- Free titles
  129. plr:GossipClearMenu()
  130. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|t"..name.." Jenkins", 0, 247)
  131. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|t"..name.." the Patient", 0, 248)
  132. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|tElder "..name.."", 0, 249)
  133. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_misc_token_argentdawn3:30:30:-25|tMerrymaker "..name.."", 0, 250)
  134. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  135. plr:GossipSendMenu(1, unit)
  136. end
  137.  
  138. if (intid == 300) then -- Next menu for Mists of Pandaria Titles
  139. plr:GossipClearMenu()
  140. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tGorgeous "..name.."", 0, 251)
  141. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tZookeper "..name.."", 0, 252)
  142. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name.." Khan", 0, 253)
  143. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name..", Seeker of Knowledge", 0, 254)
  144. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name.." the Lucid", 0, 255)
  145. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tTrainer "..name.."", 0, 256)
  146. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name.." the Relic Hunter", 0, 257)
  147. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tBrawler "..name.."", 0, 258)
  148. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tGob Squad Commando "..name.."", 0, 259)
  149. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tGob Squad Recruit "..name.."", 0, 260)
  150. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tFire-Watcher "..name.."", 0, 261)
  151. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tSiegebreaker "..name.."", 0, 262)
  152. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|t"..name.." the Prime", 0, 263)
  153. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tStormbrewer "..name.."", 0, 264)
  154. plr:GossipMenuAddItem(5, "|TInterface/ICONS/expansionicon_mistsofpandaria:35:35:-25|tTamer "..name.."", 0, 265)
  155. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  156. plr:GossipSendMenu(1, unit)
  157. end
  158.  
  159. if (intid == 301) then -- Next menu for Cataclysm titles
  160. plr:GossipClearMenu()
  161. if (plr:IsAlliance()) then
  162. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." Slayer of Stupid, Incompetent and Dissapointing Minions", 0, 266)
  163. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." Hero of the Alliance", 0, 260)
  164. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", the Bloodthirsty", 0, 268)
  165. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tFirelord "..name.."", 0, 269)
  166. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tWarbringer "..name.."", 0, 270)
  167. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." the Flamebreaker", 0, 271)
  168. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tWarbound "..name.."", 0, 272)
  169. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", Blessed Defender of Nordrassil", 0, 273)
  170. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", Defender of a Shattered World", 0, 274)
  171. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", Destroyer's End", 0, 275)
  172. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." of the Four Winds", 0, 276)
  173. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tProfessor "..name.."", 0, 277)
  174. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." the Camel Hoarder", 0, 278)
  175. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tAssistant Professor) "..name.."", 0, 279)
  176. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tAssociate Professor "..name.."", 0, 280)
  177. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  178. plr:GossipSendMenu(1, unit)
  179. else
  180. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." Slayer of Stupid, Incompetent and Dissapointing Minions", 0, 266)
  181. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." Hero of the Horde", 0, 267)
  182. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", the Bloodthirsty", 0, 268)
  183. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tFirelord "..name.."", 0, 269)
  184. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tWarbringer "..name.."", 0, 270)
  185. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." the Flamebreaker", 0, 271)
  186. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tWarbound "..name.."", 0, 272)
  187. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", Blessed Defender of Nordrassil", 0, 273)
  188. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", Defender of a Shattered World", 0, 274)
  189. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name..", Destroyer's End", 0, 275)
  190. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." of the Four Winds", 0, 276)
  191. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tProfessor "..name.."", 0, 277)
  192. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|t"..name.." the Camel Hoarder", 0, 278)
  193. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tAssistant Professor) "..name.."", 0, 279)
  194. plr:GossipMenuAddItem(5, "|TInterface/ICONS/achievment_boss_madnessofdeathwing:35:35:-25|tAssociate Professor "..name.."", 0, 280)
  195. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  196. plr:GossipSendMenu(1, unit)
  197. end
  198. end
  199.  
  200. if (intid == 302) then -- Pure Custom Titles Menu
  201. plr:GossipClearMenu()
  202. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." the Reaper", 0, 281)
  203. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tMechanic "..name.."", 0, 282)
  204. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." the Royal", 0, 283)
  205. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." of Death", 0, 284)
  206. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tApostle "..name.."", 0, 285)
  207. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." of the Void", 0, 286)
  208. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tImpaler "..name.."", 0, 287)
  209. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tTerminator "..name.."", 0, 288)
  210. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|t"..name.." the Damned", 0, 289)
  211. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tDaredevil "..name.."", 0, 289)
  212. plr:GossipMenuAddItem(5, "|TInterface/ICONS/inv_cape_pandaria_tigermelee_d_02:35:35:-25|tAssassin "..name.."", 0, 289)
  213. plr:GossipMenuAddItem(5, "|TInterface/ICONS/misc_arrowleft:25:25:-25|tBack..", 0, 0)
  214. plr:GossipSendMenu(1, unit)
  215. end
  216.  
  217.  
  218. -- From here the adding titles starts!
  219. --------------- Alliance Titles-------------------
  220. if (intid == 200) then -- of the Alliance 126
  221. if (plr:HasTitle(126)) then
  222. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Alliance|r title.", plr)
  223. plr:GossipComplete()
  224. return
  225. end
  226. if (plr:HasItem(COIN, PVECOST)) then
  227. plr:SetKnownTitle(126)
  228. plr:GossipComplete()
  229. plr:RemoveItem(COIN, PVECOST)
  230. else
  231. plr:GossipComplete()
  232. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  233. end
  234. end
  235.  
  236. if (intid == 201) then -- of Stormwind 149
  237. if (plr:HasTitle(149)) then
  238. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Stormwind|r title.", plr)
  239. plr:GossipComplete()
  240. return
  241. end
  242. if (plr:HasItem(COIN, PVECOST)) then
  243. plr:SetKnownTitle(149)
  244. plr:GossipComplete()
  245. plr:RemoveItem(COIN, PVECOST)
  246. else
  247. plr:GossipComplete()
  248. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  249. end
  250. end
  251.  
  252. if (intid == 202) then -- of Ironforge 148
  253. if (plr:HasTitle(148)) then
  254. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Ironforge|r title.", plr)
  255. plr:GossipComplete()
  256. return
  257. end
  258. if (plr:HasItem(COIN, PVECOST)) then
  259. plr:SetKnownTitle(148)
  260. plr:RemoveItem(COIN, PVECOST)
  261. plr:GossipComplete()
  262. else
  263. plr:GossipComplete()
  264. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  265. end
  266. end
  267.  
  268. if (intid == 203) then -- of Darnassus 147
  269. if (plr:HasTitle(147)) then
  270. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Darnassus|r title.", plr)
  271. plr:GossipComplete()
  272. return
  273. end
  274. if (plr:HasItem(COIN, PVECOST)) then
  275. plr:SetKnownTitle(147)
  276. plr:GossipComplete()
  277. plr:RemoveItem(COIN, PVECOST)
  278. else
  279. plr:GossipComplete()
  280. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  281. end
  282. end
  283.  
  284. if (intid == 204) then -- of Exodar 146
  285. if (plr:HasTitle(146)) then
  286. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Exodar|r title.", plr)
  287. plr:GossipComplete()
  288. return
  289. end
  290. if (plr:HasItem(COIN, PVECOST)) then
  291. plr:SetKnownTitle(146)
  292. plr:GossipComplete()
  293. plr:RemoveItem(COIN, PVECOST)
  294. else
  295. plr:GossipComplete()
  296. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  297. end
  298. end
  299.  
  300. if (intid == 205) then -- of Gnomeregan 113
  301. if (plr:HasTitle(113)) then
  302. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Gnomeregan|r title.", plr)
  303. plr:GossipComplete()
  304. return
  305. end
  306. if (plr:HasItem(95029, 1)) then
  307. plr:SetKnownTitle(113)
  308. plr:GossipComplete()
  309. plr:RemoveItem(COIN, PVECOST)
  310. else
  311. plr:GossipComplete()
  312. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  313. end
  314. end
  315.  
  316.  
  317. if (intid == 206) then -- Flame Warden 75
  318. if (plr:HasTitle(75)) then
  319. unit:SendChatMessageToPlayer(8, 0, "You already have Flame Warden |cffff0000"..name.."|r title.", plr)
  320. plr:GossipComplete()
  321. return
  322. end
  323. if (plr:HasItem(95029, 1)) then
  324. plr:SetKnownTitle(75)
  325. plr:GossipComplete()
  326. plr:RemoveItem(COIN, PVECOST)
  327. else
  328. plr:GossipComplete()
  329. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  330. end
  331. end
  332.  
  333.  
  334. ---------------------Here alliance titles ends --------------------
  335.  
  336. --------------------------- HORDE TITLES ----------------------
  337. if (intid == 207) then -- of the Horde
  338. if (plr:HasTitle(127)) then
  339. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Horde|r title.", plr)
  340. plr:GossipComplete()
  341. return
  342. end
  343. if (plr:HasItem(95029, 1)) then
  344. plr:SetKnownTitle(127)
  345. plr:GossipComplete()
  346. plr:RemoveItem(COIN, PVECOST)
  347. else
  348. plr:GossipComplete()
  349. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  350. end
  351. end
  352.  
  353.  
  354. if (intid == 208) then -- of Orgrimmar
  355. if (plr:HasTitle(150)) then
  356. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Orgrimmar|r title.", plr)
  357. plr:GossipComplete()
  358. return
  359. end
  360. if (plr:HasItem(95029, 1)) then
  361. plr:SetKnownTitle(150)
  362. plr:GossipComplete()
  363. plr:RemoveItem(COIN, PVECOST)
  364. else
  365. plr:GossipComplete()
  366. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  367. end
  368. end
  369.  
  370.  
  371. if (intid == 209) then -- of Sen'jin
  372. if (plr:HasTitle(151)) then
  373. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Sen'jin|r title.", plr)
  374. plr:GossipComplete()
  375. return
  376. end
  377. if (plr:HasItem(95029, 1)) then
  378. plr:SetKnownTitle(151)
  379. plr:GossipComplete()
  380. plr:RemoveItem(COIN, PVECOST)
  381. else
  382. plr:GossipComplete()
  383. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  384. end
  385. end
  386.  
  387.  
  388. if (intid == 210) then -- of Thunder Bluff
  389. if (plr:HasTitle(153)) then
  390. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Thunder Bluff|r title.", plr)
  391. plr:GossipComplete()
  392. return
  393. end
  394. if (plr:HasItem(95029, 1)) then
  395. plr:SetKnownTitle(153)
  396. plr:GossipComplete()
  397. plr:RemoveItem(COIN, PVECOST)
  398. else
  399. plr:GossipComplete()
  400. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  401. end
  402. end
  403.  
  404.  
  405. if (intid == 211) then -- of Silvermoon
  406. if (plr:HasTitle(152)) then
  407. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of Silvermoon|r title.", plr)
  408. plr:GossipComplete()
  409. return
  410. end
  411. if (plr:HasItem(95029, 1)) then
  412. plr:SetKnownTitle(152)
  413. plr:GossipComplete()
  414. plr:RemoveItem(COIN, PVECOST)
  415. else
  416. plr:GossipComplete()
  417. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  418. end
  419. end
  420.  
  421. if (intid == 212) then -- of the Undercity
  422. if (plr:HasTitle(149)) then
  423. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Undercity|r title.", plr)
  424. plr:GossipComplete()
  425. return
  426. end
  427. if (plr:HasItem(95029, 1)) then
  428. plr:SetKnownTitle(149)
  429. plr:GossipComplete()
  430. plr:RemoveItem(COIN, PVECOST)
  431. else
  432. plr:GossipComplete()
  433. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  434. end
  435. end
  436.  
  437. if (intid == 213) then -- Flame Keeper
  438. if (plr:HasTitle(76)) then
  439. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Flame Keeper "..name.."|r title.", plr)
  440. plr:GossipComplete()
  441. return
  442. end
  443. if (plr:HasItem(95029, 1)) then
  444. plr:SetKnownTitle(76)
  445. plr:GossipComplete()
  446. plr:RemoveItem(COIN, PVECOST)
  447. else
  448. plr:GossipComplete()
  449. unit:SendChatMesageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  450. end
  451. end
  452. ------------------ Horde Titles ends here!----------------------
  453.  
  454. ------------------ PvP Titles Begins here ----------------------
  455. if (intid == 214) then -- Justicar 48
  456. if (plr:HasTitle(48)) then
  457. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Justicar "..name.."|r title.", plr)
  458. plr:GossipComplete()
  459. return
  460. end
  461. if (plr:HasItem(95029, 1)) then
  462. plr:SetKnownTitle(48)
  463. plr:GossipComplete()
  464. plr:RemoveItem(COIN, PVECOST)
  465. else
  466. plr:GossipComplete()
  467. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  468. end
  469. end
  470.  
  471. if (intid == 215) then -- Battlemaster 72
  472. if (plr:HasTitle(72)) then
  473. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Battlemaster "..name.."|r title.", plr)
  474. plr:GossipComplete()
  475. return
  476. end
  477. if (plr:HasItem(95029, 1)) then
  478. plr:SetKnownTitle(72)
  479. plr:GossipComplete()
  480. plr:RemoveItem(COIN, PVECOST)
  481. else
  482. plr:GossipComplete()
  483. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  484. end
  485. end
  486.  
  487. if (intid == 216) then -- Flawless Victor 128
  488. if (plr:HasTitle(128)) then
  489. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000the Flawless Victor"..name.."|r title.", plr)
  490. plr:GossipComplete()
  491. return
  492. end
  493. if (plr:HasItem(95029, 1)) then
  494. plr:SetKnownTitle(128)
  495. plr:GossipComplete()
  496. plr:RemoveItem(COIN, PVECOST)
  497. else
  498. plr:GossipComplete()
  499. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  500. end
  501. end
  502.  
  503. if (intid == 217) then -- Vanquisher 163
  504. if (plr:HasTitle(163)) then
  505. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Vanquisher "..name.."|r title.", plr)
  506. plr:GossipComplete()
  507. return
  508. end
  509. if (plr:HasItem(95029, 1)) then
  510. plr:SetKnownTitle(163)
  511. plr:GossipComplete()
  512. plr:RemoveItem(COIN, PVECOST)
  513. else
  514. plr:GossipComplete()
  515. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  516. end
  517. end
  518. ---------------------- PvP TITLES ENDS HERE -----------------------
  519.  
  520. ---------------------------- PvE TITLES BEGINS HERE ---------------------
  521. if (intid == 218) then -- Starcaller 164
  522. if (plr:HasTitle(164)) then
  523. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Starcaller "..name.."|r title.", plr)
  524. plr:GossipComplete()
  525. return
  526. end
  527. if (plr:HasItem(95029, 1)) then
  528. plr:SetKnownTitle(164)
  529. plr:GossipComplete()
  530. plr:RemoveItem(COIN, PVECOST)
  531. else
  532. plr:GossipComplete()
  533. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  534. end
  535. end
  536.  
  537. if (intid == 219) then -- the Astral Walker 165
  538. if (plr:HasTitle(165)) then
  539. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Astral Walker|r title.", plr)
  540. plr:GossipComplete()
  541. return
  542. end
  543. if (plr:HasItem(95029, 1)) then
  544. plr:SetKnownTitle(165)
  545. plr:GossipComplete()
  546. plr:RemoveItem(COIN, PVECOST)
  547. else
  548. plr:GossipComplete()
  549. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  550. end
  551. end
  552.  
  553. if (intid == 220) then -- Death's Demise 158
  554. if (plr:HasTitle(158)) then
  555. unit:SendChatMessageToPlayer(8, 0, "You already have |Death's Demise"..name.."|r title.", plr)
  556. plr:GossipComplete()
  557. return
  558. end
  559. if (plr:HasItem(95029, 1)) then
  560. plr:SetKnownTitle(158)
  561. plr:GossipComplete()
  562. plr:RemoveItem(COIN, PVECOST)
  563. else
  564. plr:GossipComplete()
  565. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  566. end
  567. end
  568.  
  569. if (intid == 221) then -- Champion of Ulduar 161
  570. if (plr:HasTitle(161)) then
  571. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.."Champion of Ulduar|r title.", plr)
  572. plr:GossipComplete()
  573. return
  574. end
  575. if (plr:HasItem(95029, 1)) then
  576. plr:SetKnownTitle(161)
  577. plr:GossipComplete()
  578. plr:RemoveItem(COIN, PVECOST)
  579. else
  580. plr:GossipComplete()
  581. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  582. end
  583. end
  584.  
  585. if (intid == 222) then -- Twilight Vanquisher 121
  586. if (plr:HasTitle(121)) then
  587. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Twilight Vanquisher "..name.."|r title.", plr)
  588. plr:GossipComplete()
  589. return
  590. end
  591. if (plr:HasItem(95029, 1)) then
  592. plr:SetKnownTitle(121)
  593. plr:GossipComplete()
  594. plr:RemoveItem(COIN, PVECOST)
  595. else
  596. plr:GossipComplete()
  597. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  598. end
  599. end
  600.  
  601.  
  602.  
  603.  
  604.  
  605. if (intid == 223) then -- the Celestial Defender 159
  606. if (plr:HasTitle(159)) then
  607. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Celestial Defender|r title.", plr)
  608. plr:GossipComplete()
  609. return
  610. end
  611. if (plr:HasItem(95029, 1)) then
  612. plr:SetKnownTitle(159)
  613. plr:GossipComplete()
  614. plr:RemoveItem(COIN, PVECOST)
  615. else
  616. plr:GossipComplete()
  617. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  618. end
  619. end
  620.  
  621.  
  622.  
  623.  
  624. if (intid == 224) then -- of the Nightfall 140
  625. if (plr:HasTitle(140)) then
  626. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Nightfall|r title.", plr)
  627. plr:GossipComplete()
  628. return
  629. end
  630. if (plr:HasItem(95029, 1)) then
  631. plr:SetKnownTitle(140)
  632. plr:GossipComplete()
  633. plr:RemoveItem(COIN, PVECOST)
  634. else
  635. plr:GossipComplete()
  636. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  637. end
  638. end
  639.  
  640.  
  641.  
  642.  
  643.  
  644. if (intid == 225) then -- the Immortal 141
  645. if (plr:HasTitle(141)) then
  646. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Immortal|r title.", plr)
  647. plr:GossipComplete()
  648. return
  649. end
  650. if (plr:HasItem(95029, 1)) then
  651. plr:SetKnownTitle(141)
  652. plr:GossipComplete()
  653. plr:RemoveItem(COIN, PVECOST)
  654. else
  655. plr:GossipComplete()
  656. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  657. end
  658. end
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666. if (intid == 226) then -- Herald of the Titans 166
  667. if (plr:HasTitle(166)) then
  668. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Herald of the Titans|r title.", plr)
  669. plr:GossipComplete()
  670. return
  671. end
  672. if (plr:HasItem(95029, 1)) then
  673. plr:SetKnownTitle(166)
  674. plr:GossipComplete()
  675. plr:RemoveItem(COIN, PVECOST)
  676. else
  677. plr:GossipComplete()
  678. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  679. end
  680. end
  681.  
  682.  
  683.  
  684.  
  685.  
  686. if (intid == 227) then -- the Undying 142
  687. if (plr:HasTitle(142)) then
  688. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Undying|r title.", plr)
  689. plr:GossipComplete()
  690. return
  691. end
  692. if (plr:HasItem(95029, 1)) then
  693. plr:SetKnownTitle(142)
  694. plr:GossipComplete()
  695. plr:RemoveItem(COIN, PVECOST)
  696. else
  697. plr:GossipComplete()
  698. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  699. end
  700. end
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707. if (intid == 228) then -- Grand Crusader 170
  708. if (plr:HasTitle(170)) then
  709. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Grand Crusader"..name.."|r title.", plr)
  710. plr:GossipComplete()
  711. return
  712. end
  713. if (plr:HasItem(95029, 1)) then
  714. plr:SetKnownTitle(170)
  715. plr:GossipComplete()
  716. plr:RemoveItem(COIN, PVECOST)
  717. else
  718. plr:GossipComplete()
  719. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  720. end
  721. end
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729. if (intid == 229) then -- the Magic Seeker 120
  730. if (plr:HasTitle(120)) then
  731. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Magic Seeker|r title.", plr)
  732. plr:GossipComplete()
  733. return
  734. end
  735. if (plr:HasItem(95029, 1)) then
  736. plr:SetKnownTitle(120)
  737. plr:GossipComplete()
  738. plr:RemoveItem(COIN, PVECOST)
  739. else
  740. plr:GossipComplete()
  741. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  742. end
  743. end
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750. if (intid == 230) then -- the Light of Dawn 173
  751. if (plr:HasTitle(173)) then
  752. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Light of Dawn|r title.", plr)
  753. plr:GossipComplete()
  754. return
  755. end
  756. if (plr:HasItem(95029, 1)) then
  757. plr:SetKnownTitle(173)
  758. plr:GossipComplete()
  759. plr:RemoveItem(COIN, PVECOST)
  760. else
  761. plr:GossipComplete()
  762. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  763. end
  764. end
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773. if (intid == 231) then -- the Kingslayer 175
  774. if (plr:HasTitle(175)) then
  775. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Kingslayer|r title.", plr)
  776. plr:GossipComplete()
  777. return
  778. end
  779. if (plr:HasItem(95029, 1)) then
  780. plr:SetKnownTitle(175)
  781. plr:GossipComplete()
  782. plr:RemoveItem(COIN, PVECOST)
  783. else
  784. plr:GossipComplete()
  785. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  786. end
  787. end
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794. if (intid == 232) then -- Bane of the Fallen King 174
  795. if (plr:HasTitle(174)) then
  796. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Bane of the Fallen King"..name.."|r title.", plr)
  797. plr:GossipComplete()
  798. return
  799. end
  800. if (plr:HasItem(95029, 1)) then
  801. plr:SetKnownTitle(174)
  802. plr:GossipComplete()
  803. plr:RemoveItem(95000, 1000)
  804. else
  805. plr:GossipComplete()
  806. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  807. end
  808. end
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815. if (intid == 233) then -- Conqueror of Ulduar 160
  816. if (plr:HasTitle(160)) then
  817. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Conqueror of Ulduar|r title.", plr)
  818. plr:GossipComplete()
  819. return
  820. end
  821. if (plr:HasItem(95029, 1)) then
  822. plr:SetKnownTitle(160)
  823. plr:GossipComplete()
  824. plr:RemoveItem(95000, 1000)
  825. else
  826. plr:GossipComplete()
  827. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  828. end
  829. end
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838. if (intid == 234) then -- Champion of the Frozen Wastes 129
  839. if (plr:HasTitle(129)) then
  840. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Champion of the Frozen Wastes|r title.", plr)
  841. plr:GossipComplete()
  842. return
  843. end
  844. if (plr:HasItem(95029, 1)) then
  845. plr:SetKnownTitle(129)
  846. plr:GossipComplete()
  847. plr:RemoveItem(95000, 1000)
  848. else
  849. plr:GossipComplete()
  850. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  851. end
  852. end
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863. if (intid == 235) then -- Hand of A'dal 64
  864. if (plr:HasTitle(64)) then
  865. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Hand of A'dal|r title.", plr)
  866. plr:GossipComplete()
  867. return
  868. end
  869. if (plr:HasItem(95029, 1)) then
  870. plr:SetKnownTitle(64)
  871. plr:GossipComplete()
  872. plr:RemoveItem(95000, 1000)
  873. else
  874. plr:GossipComplete()
  875. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  876. end
  877. end
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889. if (intid == 236) then -- Conqueror of Naxxramas 122
  890. if (plr:HasTitle(122)) then
  891. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Conqeuror of Naxxramas|r title.", plr)
  892. plr:GossipComplete()
  893. return
  894. end
  895. if (plr:HasItem(95029, 1)) then
  896. plr:SetKnownTitle(122)
  897. plr:GossipComplete()
  898. plr:RemoveItem(95000, 1000)
  899. else
  900. plr:GossipComplete()
  901. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  902. end
  903. end
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911. -------------------------- PvE Titles ends here!--------------------------
  912.  
  913. ---------------------- Reputation Titles begins here!!--------------------
  914. if (intid == 237) then -- the Insane 145
  915. if (plr:HasTitle(145)) then
  916. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Insane|r title.", plr)
  917. plr:GossipComplete()
  918. return
  919. end
  920. if (plr:HasItem(95029, 1)) then
  921. plr:SetKnownTitle(145)
  922. plr:GossipComplete()
  923. plr:RemoveItem(95000, 1000)
  924. else
  925. plr:GossipComplete()
  926. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  927. end
  928. end
  929.  
  930.  
  931.  
  932.  
  933.  
  934. if (intid == 238) then -- Crusader 170
  935. if (plr:HasTitle(170)) then
  936. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Crusader "..name.."|r title.", plr)
  937. plr:GossipComplete()
  938. return
  939. end
  940. if (plr:HasItem(95029, 1)) then
  941. plr:SetKnownTitle(170)
  942. plr:GossipComplete()
  943. plr:RemoveItem(95000, 1000)
  944. else
  945. plr:GossipComplete()
  946. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  947. end
  948. end
  949.  
  950.  
  951.  
  952.  
  953.  
  954. if (intid == 239) then -- Bloodsail Admiral 144
  955. if (plr:HasTitle(144)) then
  956. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Bloodsail Admiral "..name.."|r title.", plr)
  957. plr:GossipComplete()
  958. return
  959. end
  960. if (plr:HasItem(95029, 1)) then
  961. plr:SetKnownTitle(144)
  962. plr:GossipComplete()
  963. plr:RemoveItem(95000, 1000)
  964. else
  965. plr:GossipComplete()
  966. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  967. end
  968. end
  969.  
  970.  
  971.  
  972.  
  973.  
  974. if (intid == 240) then -- of the Shattered Sun 63
  975. if (plr:HasTitle(63)) then
  976. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Shattered Sun|r title.", plr)
  977. plr:GossipComplete()
  978. return
  979. end
  980. if (plr:HasItem(95029, 1)) then
  981. plr:SetKnownTitle(63)
  982. plr:GossipComplete()
  983. plr:RemoveItem(95000, 1000)
  984. else
  985. plr:GossipComplete()
  986. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  987. end
  988. end
  989.  
  990.  
  991.  
  992.  
  993.  
  994. if (intid == 241) then -- the Exalted 77
  995. if (plr:HasTitle(77)) then
  996. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Exalted|r title.", plr)
  997. plr:GossipComplete()
  998. return
  999. end
  1000. if (plr:HasItem(95029, 1)) then
  1001. plr:SetKnownTitle(77)
  1002. plr:GossipComplete()
  1003. plr:RemoveItem(95000, 1000)
  1004. else
  1005. plr:GossipComplete()
  1006. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  1007. end
  1008. end
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014. if (intid == 242) then -- of the Ashen Verdict 176
  1015. if (plr:HasTitle(176)) then
  1016. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Ashen Verdict|r title.", plr)
  1017. plr:GossipComplete()
  1018. return
  1019. end
  1020. if (plr:HasItem(95029, 1)) then
  1021. plr:SetKnownTitle(176)
  1022. plr:GossipComplete()
  1023. plr:RemoveItem(95000, 1000)
  1024. else
  1025. plr:GossipComplete()
  1026. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  1027. end
  1028. end
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034. if (intid == 243) then -- Guardian of Cenarius 132
  1035. if (plr:HasTitle(132)) then
  1036. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Guardian of Cenarius|r title.", plr)
  1037. plr:GossipComplete()
  1038. return
  1039. end
  1040. if (plr:HasItem(95029, 1)) then
  1041. plr:SetKnownTitle(132)
  1042. plr:GossipComplete()
  1043. plr:RemoveItem(95000, 1000)
  1044. else
  1045. plr:GossipComplete()
  1046. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  1047. end
  1048. end
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054. if (intid == 244) then -- Ambassador 130
  1055. if (plr:HasTitle(130)) then
  1056. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Ambassador"..name.."|r title.", plr)
  1057. plr:GossipComplete()
  1058. return
  1059. end
  1060. if (plr:HasItem(95029, 1)) then
  1061. plr:SetKnownTitle(130)
  1062. plr:GossipComplete()
  1063. plr:RemoveItem(95000, 1000)
  1064. else
  1065. plr:GossipComplete()
  1066. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  1067. end
  1068. end
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074. if (intid == 245) then -- the Argent Champion 131
  1075. if (plr:HasTitle(131)) then
  1076. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Argent Champion|r title.", plr)
  1077. plr:GossipComplete()
  1078. return
  1079. end
  1080. if (plr:HasItem(95029, 1)) then
  1081. plr:SetKnownTitle(131)
  1082. plr:GossipComplete()
  1083. plr:RemoveItem(95000, 1000)
  1084. else
  1085. plr:GossipComplete()
  1086. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  1087. end
  1088. end
  1089.  
  1090.  
  1091.  
  1092.  
  1093. if (intid == 246) then -- the Diplomat 79
  1094. if (plr:HasTitle(79)) then
  1095. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Diplomat|r title.", plr)
  1096. plr:GossipComplete()
  1097. return
  1098. end
  1099. if (plr:HasItem(95029, 1)) then
  1100. plr:SetKnownTitle(79)
  1101. plr:GossipComplete()
  1102. plr:RemoveItem(95000, 1000)
  1103. else
  1104. plr:GossipComplete()
  1105. unit:SendChatMessageToPlayer(8, 0, "You need to aquire "..ItemLink.." in order to buy this title.", plr)
  1106. end
  1107. end
  1108.  
  1109.  
  1110.  
  1111. ----------------------- Reputation Titles ENDS HERE! -----------------------
  1112.  
  1113. -------------------------- Free TITLES BEGINS HERE!-------------------------
  1114.  
  1115. if (intid == 247) then -- Jenkins 143
  1116. if (plr:HasTitle(143)) then
  1117. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Jenkins|r title.", plr)
  1118. plr:GossipComplete()
  1119. return
  1120. end
  1121. plr:SetKnownTitle(143)
  1122. plr:GossipComplete()
  1123. end
  1124.  
  1125.  
  1126.  
  1127.  
  1128. if (intid == 248) then -- the Patient 172
  1129. if (plr:HasTitle(172)) then
  1130. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Patient|r title.", plr)
  1131. plr:GossipComplete()
  1132. return
  1133. end
  1134. plr:SetKnownTitle(172)
  1135. plr:GossipComplete()
  1136. end
  1137.  
  1138.  
  1139.  
  1140.  
  1141. if (intid == 249) then -- Elder 74
  1142. if (plr:HasTitle(74)) then
  1143. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Elder "..name.."|r title.", plr)
  1144. plr:GossipComplete()
  1145. return
  1146. end
  1147. plr:SetKnownTitle(74)
  1148. plr:GossipComplete()
  1149. end
  1150.  
  1151.  
  1152.  
  1153.  
  1154. if (intid == 250) then -- Merrymaker 134
  1155. if (plr:HasTitle(134)) then
  1156. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Merrymaker "..name.." Jenkins|r title.", plr)
  1157. plr:GossipComplete()
  1158. return
  1159. end
  1160. plr:SetKnownTitle(134)
  1161. plr:GossipComplete()
  1162. end
  1163.  
  1164.  
  1165.  
  1166.  
  1167. ---------------------- Mists of Pandaria Titles -----------------------
  1168. if (intid == 251) then -- Gorgeous 191
  1169. if (plr:HasTitle(191)) then
  1170. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Gorgeous "..name.." Jenkins|r title.", plr)
  1171. plr:GossipComplete()
  1172. return
  1173. end
  1174. if (plr:HasItem(95029, 10)) then
  1175. plr:SetKnownTitle(191)
  1176. plr:GossipComplete()
  1177. plr:RemoveItem(95029, 10)
  1178. else
  1179. plr:GossipComplete()
  1180. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1181. end
  1182. end
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188. if (intid == 252) then -- Zookeper 183
  1189. if (plr:HasTitle(183)) then
  1190. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Zookeper "..name.."|r title.", plr)
  1191. plr:GossipComplete()
  1192. return
  1193. end
  1194. if (plr:HasItem(95029, 10)) then
  1195. plr:SetKnownTitle(183)
  1196. plr:GossipComplete()
  1197. plr:RemoveItem(95029, 10)
  1198. else
  1199. plr:GossipComplete()
  1200. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1201. end
  1202. end
  1203.  
  1204.  
  1205.  
  1206.  
  1207. if (intid == 253) then -- Khan 192
  1208. if (plr:HasTitle(192)) then
  1209. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Khan|r title.", plr)
  1210. plr:GossipComplete()
  1211. return
  1212. end
  1213. if (plr:HasItem(95029, 10)) then
  1214. plr:SetKnownTitle(192)
  1215. plr:GossipComplete()
  1216. plr:RemoveItem(95029, 10)
  1217. else
  1218. plr:GossipComplete()
  1219. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1220. end
  1221. end
  1222.  
  1223.  
  1224.  
  1225.  
  1226. if (intid == 254) then -- Seeker of Knowledge 193
  1227. if (plr:HasTitle(193)) then
  1228. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Seeker of Knowledge|r title.", plr)
  1229. plr:GossipComplete()
  1230. return
  1231. end
  1232. if (plr:HasItem(95029, 5)) then
  1233. plr:SetKnownTitle(193)
  1234. plr:GossipComplete()
  1235. plr:RemoveItem(95029, 5)
  1236. else
  1237. plr:GossipComplete()
  1238. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1239. end
  1240. end
  1241.  
  1242.  
  1243.  
  1244.  
  1245. if (intid == 255) then -- the Lucid 188
  1246. if (plr:HasTitle(188)) then
  1247. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Lucid|r title.", plr)
  1248. plr:GossipComplete()
  1249. return
  1250. end
  1251. if (plr:HasItem(95029, 5)) then
  1252. plr:SetKnownTitle(188)
  1253. plr:GossipComplete()
  1254. plr:RemoveItem(95029, 5)
  1255. else
  1256. plr:GossipComplete()
  1257. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1258. end
  1259. end
  1260.  
  1261.  
  1262.  
  1263.  
  1264. if (intid == 256) then -- Trainer 180
  1265. if (plr:HasTitle(180)) then
  1266. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Trainer "..name.."|r title.", plr)
  1267. plr:GossipComplete()
  1268. return
  1269. end
  1270. if (plr:HasItem(95029, 5)) then
  1271. plr:SetKnownTitle(180)
  1272. plr:GossipComplete()
  1273. plr:RemoveItem(95029, 5)
  1274. else
  1275. plr:GossipComplete()
  1276. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1277. end
  1278. end
  1279.  
  1280.  
  1281.  
  1282.  
  1283. if (intid == 257) then --the Relic Hunter 189
  1284. if (plr:HasTitle(189)) then
  1285. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Relic Hunter|r title.", plr)
  1286. plr:GossipComplete()
  1287. return
  1288. end
  1289. if (plr:HasItem(95029, 5)) then
  1290. plr:SetKnownTitle(189)
  1291. plr:GossipComplete()
  1292. plr:RemoveItem(95029, 5)
  1293. else
  1294. plr:GossipComplete()
  1295. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1296. end
  1297. end
  1298.  
  1299.  
  1300.  
  1301.  
  1302. if (intid == 258) then -- Brawler 182
  1303. if (plr:HasTitle(182)) then
  1304. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Brawler "..name.."|r title.", plr)
  1305. plr:GossipComplete()
  1306. return
  1307. end
  1308. if (plr:HasItem(95029, 5)) then
  1309. plr:SetKnownTitle(182)
  1310. plr:GossipComplete()
  1311. plr:RemoveItem(95029, 5)
  1312. else
  1313. plr:GossipComplete()
  1314. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1315. end
  1316. end
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322. if (intid == 259) then -- Gob Squad Commando
  1323. if (plr:HasTitle(194)) then
  1324. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Gob Squad Commando "..name.."|r title.", plr)
  1325. plr:GossipComplete()
  1326. return
  1327. end
  1328. if (plr:HasItem(95029, 5)) then
  1329. plr:SetKnownTitle(194)
  1330. plr:GossipComplete()
  1331. plr:RemoveItem(95029, 5)
  1332. else
  1333. plr:GossipComplete()
  1334. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1335. end
  1336. end
  1337.  
  1338.  
  1339.  
  1340.  
  1341. if (intid == 260) then -- Hero of the alliance
  1342. if (plr:HasTitle(184)) then
  1343. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Hero of the Alliance|r title.", plr)
  1344. plr:GossipComplete()
  1345. return
  1346. end
  1347. if (plr:HasItem(95029, 5)) then
  1348. plr:SetKnownTitle(184)
  1349. plr:GossipComplete()
  1350. plr:RemoveItem(95029, 5)
  1351. else
  1352. plr:GossipComplete()
  1353. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1354. end
  1355. end
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361. if (intid == 261) then -- Fire-Watcher 195
  1362. if (plr:HasTitle(195)) then
  1363. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Fire-Watcher "..name.."|r title.", plr)
  1364. plr:GossipComplete()
  1365. return
  1366. end
  1367. if (plr:HasItem(95029, 5)) then
  1368. plr:SetKnownTitle(195)
  1369. plr:GossipComplete()
  1370. plr:RemoveItem(95029, 5)
  1371. else
  1372. plr:GossipComplete()
  1373. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1374. end
  1375. end
  1376.  
  1377.  
  1378.  
  1379.  
  1380. if (intid == 262) then -- Siegebreaker 198
  1381. if (plr:HasTitle(198)) then
  1382. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Siegebreaker "..name.."|r title.", plr)
  1383. plr:GossipComplete()
  1384. return
  1385. end
  1386. if (plr:HasItem(95029, 5)) then
  1387. plr:SetKnownTitle(198)
  1388. plr:GossipComplete()
  1389. plr:RemoveItem(95029, 5)
  1390. else
  1391. plr:GossipComplete()
  1392. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1393. end
  1394. end
  1395.  
  1396.  
  1397.  
  1398.  
  1399. if (intid == 263) then -- the Prime 199
  1400. if (plr:HasTitle(199)) then
  1401. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Prime|r title.", plr)
  1402. plr:GossipComplete()
  1403. return
  1404. end
  1405. if (plr:HasItem(95029, 5)) then
  1406. plr:SetKnownTitle(199)
  1407. plr:GossipComplete()
  1408. plr:RemoveItem(95029, 5)
  1409. else
  1410. plr:GossipComplete()
  1411. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1412. end
  1413. end
  1414.  
  1415.  
  1416.  
  1417.  
  1418. if (intid == 264) then -- Stormbrewer 200
  1419. if (plr:HasTitle(200)) then
  1420. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Stormbrewer "..name.."|r title.", plr)
  1421. plr:GossipComplete()
  1422. return
  1423. end
  1424. if (plr:HasItem(95029, 5)) then
  1425. plr:SetKnownTitle(200)
  1426. plr:GossipComplete()
  1427. plr:RemoveItem(95029, 5)
  1428. else
  1429. plr:GossipComplete()
  1430. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1431. end
  1432. end
  1433.  
  1434.  
  1435.  
  1436.  
  1437. if (intid == 265) then -- Tamer 201
  1438. if (plr:HasTitle(201)) then
  1439. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Tamer "..name.."|r title.", plr)
  1440. plr:GossipComplete()
  1441. return
  1442. end
  1443. if (plr:HasItem(95029, 5)) then
  1444. plr:SetKnownTitle(201)
  1445. plr:GossipComplete()
  1446. plr:RemoveItem(95029, 5)
  1447. else
  1448. plr:GossipComplete()
  1449. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1450. end
  1451. end
  1452.  
  1453.  
  1454.  
  1455.  
  1456. if (intid == 266) then -- Slayer of Stupid, Incompetent and Dissapointing Minions 196
  1457. if (plr:HasTitle(196)) then
  1458. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Slayer of Stupid, Incompetent and Dissapointing Minions "..name.."|r title.", plr)
  1459. plr:GossipComplete()
  1460. return
  1461. end
  1462. if (plr:HasItem(95029, 5)) then
  1463. plr:SetKnownTitle(196)
  1464. plr:GossipComplete()
  1465. plr:RemoveItem(95029, 5)
  1466. else
  1467. plr:GossipComplete()
  1468. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1469. end
  1470. end
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476. if (intid == 267) then -- Hero of the Horde
  1477. if (plr:HasTitle(187)) then
  1478. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." Hero of the Horde|r title.", plr)
  1479. plr:GossipComplete()
  1480. return
  1481. end
  1482. if (plr:HasItem(95029, 5)) then
  1483. plr:SetKnownTitle(187)
  1484. plr:GossipComplete()
  1485. plr:RemoveItem(95029, 5)
  1486. else
  1487. plr:GossipComplete()
  1488. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1489. end
  1490. end
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496. if (intid == 268) then -- the Bloodthirsty
  1497. if (plr:HasTitle(181)) then
  1498. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Bloodthirsty|r title.", plr)
  1499. plr:GossipComplete()
  1500. return
  1501. end
  1502. if (plr:HasItem(95029, 5)) then
  1503. plr:SetKnownTitle(181)
  1504. plr:GossipComplete()
  1505. plr:RemoveItem(95029, 5)
  1506. else
  1507. plr:GossipComplete()
  1508. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1509. end
  1510. end
  1511.  
  1512.  
  1513.  
  1514.  
  1515. if (intid == 269) then -- Firelord 202
  1516. if (plr:HasTitle(202)) then
  1517. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Firelord "..name.."|r title.", plr)
  1518. plr:GossipComplete()
  1519. return
  1520. end
  1521. if (plr:HasItem(95029, 5)) then
  1522. plr:SetKnownTitle(202)
  1523. plr:GossipComplete()
  1524. plr:RemoveItem(95029, 5)
  1525. else
  1526. plr:GossipComplete()
  1527. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1528. end
  1529. end
  1530.  
  1531.  
  1532.  
  1533.  
  1534. if (intid == 270) then -- Warbringer
  1535. if (plr:HasTitle(203)) then
  1536. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Warbringer "..name.."|r title.", plr)
  1537. plr:GossipComplete()
  1538. return
  1539. end
  1540. if (plr:HasItem(95029, 5)) then
  1541. plr:SetKnownTitle(203)
  1542. plr:GossipComplete()
  1543. plr:RemoveItem(95029, 5)
  1544. else
  1545. plr:GossipComplete()
  1546. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1547. end
  1548. end
  1549.  
  1550.  
  1551.  
  1552.  
  1553. if (intid == 271) then -- the Flamebreaker 204
  1554. if (plr:HasTitle(204)) then
  1555. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000 "..name.." the Flamebreaker|r title.", plr)
  1556. plr:GossipComplete()
  1557. return
  1558. end
  1559. if (plr:HasItem(95029, 5)) then
  1560. plr:SetKnownTitle(204)
  1561. plr:GossipComplete()
  1562. plr:RemoveItem(95029, 5)
  1563. else
  1564. plr:GossipComplete()
  1565. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1566. end
  1567. end
  1568.  
  1569.  
  1570.  
  1571.  
  1572. if (intid == 272) then -- Warbound 205
  1573. if (plr:HasTitle(205)) then
  1574. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Warbound "..name.."|r title.", plr)
  1575. plr:GossipComplete()
  1576. return
  1577. end
  1578. if (plr:HasItem(95029, 5)) then
  1579. plr:SetKnownTitle(205)
  1580. plr:GossipComplete()
  1581. plr:RemoveItem(95029, 5)
  1582. else
  1583. plr:GossipComplete()
  1584. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1585. end
  1586. end
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592. if (intid == 273) then -- Blessed Defender of Nordrassil 206
  1593. if (plr:HasTitle(206)) then
  1594. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000 "..name..", Blessed Defender of Nordrassil|r title.", plr)
  1595. plr:GossipComplete()
  1596. return
  1597. end
  1598. if (plr:HasItem(95029, 5)) then
  1599. plr:SetKnownTitle(206)
  1600. plr:GossipComplete()
  1601. plr:RemoveItem(95029, 5)
  1602. else
  1603. plr:GossipComplete()
  1604. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1605. end
  1606. end
  1607.  
  1608.  
  1609.  
  1610.  
  1611. if (intid == 274) then -- Defender of a Shattered World 207
  1612. if (plr:HasTitle(207)) then
  1613. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Defender of a Shattered World|r title.", plr)
  1614. plr:GossipComplete()
  1615. return
  1616. end
  1617. if (plr:HasItem(95029, 5)) then
  1618. plr:SetKnownTitle(207)
  1619. plr:GossipComplete()
  1620. plr:RemoveItem(95029, 5)
  1621. else
  1622. plr:GossipComplete()
  1623. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1624. end
  1625. end
  1626.  
  1627.  
  1628.  
  1629.  
  1630. if (intid == 275) then -- Destroyer's End 208
  1631. if (plr:HasTitle(208)) then
  1632. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name..", Destroyer's End|r title.", plr)
  1633. plr:GossipComplete()
  1634. return
  1635. end
  1636. if (plr:HasItem(95029, 5)) then
  1637. plr:SetKnownTitle(208)
  1638. plr:GossipComplete()
  1639. plr:RemoveItem(95029, 5)
  1640. else
  1641. plr:GossipComplete()
  1642. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1643. end
  1644. end
  1645.  
  1646.  
  1647.  
  1648.  
  1649. if (intid == 276) then -- of the Four Winds 209
  1650. if (plr:HasTitle(209)) then
  1651. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Four Winds|r title.", plr)
  1652. plr:GossipComplete()
  1653. return
  1654. end
  1655. if (plr:HasItem(95029, 5)) then
  1656. plr:SetKnownTitle(209)
  1657. plr:GossipComplete()
  1658. plr:RemoveItem(95029, 5)
  1659. else
  1660. plr:GossipComplete()
  1661. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1662. end
  1663. end
  1664.  
  1665.  
  1666.  
  1667. if (intid == 277) then -- Professor 210
  1668. if (plr:HasTitle(210)) then
  1669. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Professor "..name.."|r title.", plr)
  1670. plr:GossipComplete()
  1671. return
  1672. end
  1673. if (plr:HasItem(95029, 5)) then
  1674. plr:SetKnownTitle(210)
  1675. plr:GossipComplete()
  1676. plr:RemoveItem(95029, 5)
  1677. else
  1678. plr:GossipComplete()
  1679. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1680. end
  1681. end
  1682.  
  1683.  
  1684.  
  1685.  
  1686. if (intid == 278) then -- the Camel Hoarder 211
  1687. if (plr:HasTitle(211)) then
  1688. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Camel Hoarder|r title.", plr)
  1689. plr:GossipComplete()
  1690. return
  1691. end
  1692. if (plr:HasItem(95029, 5)) then
  1693. plr:SetKnownTitle(211)
  1694. plr:GossipComplete()
  1695. plr:RemoveItem(95029, 5)
  1696. else
  1697. plr:GossipComplete()
  1698. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1699. end
  1700. end
  1701.  
  1702.  
  1703.  
  1704. if (intid == 279) then -- Assistant Professor 212
  1705. if (plr:HasTitle(212)) then
  1706. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Assistant Professor "..name.." |r title.", plr)
  1707. plr:GossipComplete()
  1708. return
  1709. end
  1710. if (plr:HasItem(95029, 5)) then
  1711. plr:SetKnownTitle(212)
  1712. plr:GossipComplete()
  1713. plr:RemoveItem(95029, 5)
  1714. else
  1715. plr:GossipComplete()
  1716. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1717. end
  1718. end
  1719.  
  1720. if (intid == 280) then -- Associate Professor
  1721. if (plr:HasTitle(213)) then
  1722. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Associate Professor "..name.."|r title.", plr)
  1723. plr:GossipComplete()
  1724. return
  1725. end
  1726. if (plr:HasItem(95029, 5)) then
  1727. plr:SetKnownTitle(213)
  1728. plr:GossipComplete()
  1729. plr:RemoveItem(95029, 5)
  1730. else
  1731. plr:GossipComplete()
  1732. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 5x "..ItemLink.." in order to buy this title.", plr)
  1733. end
  1734. end
  1735.  
  1736. ------------------------- Custom Titles BEGIN HERE -------------------------
  1737. if (intid == 281) then -- the Reaper
  1738. if (plr:HasTitle(214)) then
  1739. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Reaper|r title.", plr)
  1740. plr:GossipComplete()
  1741. return
  1742. end
  1743. if (plr:HasItem(95029, 5)) then
  1744. plr:SetKnownTitle(214)
  1745. plr:GossipComplete()
  1746. plr:RemoveItem(95029, 10)
  1747. else
  1748. plr:GossipComplete()
  1749. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1750. end
  1751. end
  1752.  
  1753. if (intid == 282) then -- Mechanic
  1754. if (plr:HasTitle(215)) then
  1755. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Mechanic "..name.."|r title.", plr)
  1756. plr:GossipComplete()
  1757. return
  1758. end
  1759. if (plr:HasItem(95029, 5)) then
  1760. plr:SetKnownTitle(215)
  1761. plr:GossipComplete()
  1762. plr:RemoveItem(95029, 10)
  1763. else
  1764. plr:GossipComplete()
  1765. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1766. end
  1767. end
  1768.  
  1769. if (intid == 283) then -- the Royal 216
  1770. if (plr:HasTitle(216)) then
  1771. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." the Royal|r title.", plr)
  1772. plr:GossipComplete()
  1773. return
  1774. end
  1775. if (plr:HasItem(95029, 5)) then
  1776. plr:SetKnownTitle(216)
  1777. plr:GossipComplete()
  1778. plr:RemoveItem(95029, 10)
  1779. else
  1780. plr:GossipComplete()
  1781. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1782. end
  1783. end
  1784.  
  1785. if (intid == 284) then -- of Death 217
  1786. if (plr:HasTitle(217)) then
  1787. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Apostle "..name.."|r title.", plr)
  1788. plr:GossipComplete()
  1789. return
  1790. end
  1791. if (plr:HasItem(95029, 5)) then
  1792. plr:SetKnownTitle(217)
  1793. plr:GossipComplete()
  1794. plr:RemoveItem(95029, 10)
  1795. else
  1796. plr:GossipComplete()
  1797. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1798. end
  1799. end
  1800.  
  1801. if (intid == 285) then -- Apostle 218
  1802. if (plr:HasTitle(218)) then
  1803. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Apostle "..name.."|r title.", plr)
  1804. plr:GossipComplete()
  1805. return
  1806. end
  1807. if (plr:HasItem(95029, 5)) then
  1808. plr:SetKnownTitle(218)
  1809. plr:GossipComplete()
  1810. plr:RemoveItem(95029, 10)
  1811. else
  1812. plr:GossipComplete()
  1813. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1814. end
  1815. end
  1816.  
  1817. if (intid == 286) then -- of the Void 219
  1818. if (plr:HasTitle(219)) then
  1819. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Void|r title.", plr)
  1820. plr:GossipComplete()
  1821. return
  1822. end
  1823. if (plr:HasItem(95029, 5)) then
  1824. plr:SetKnownTitle(219)
  1825. plr:GossipComplete()
  1826. plr:RemoveItem(95029, 10)
  1827. else
  1828. plr:GossipComplete()
  1829. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1830. end
  1831. end
  1832.  
  1833. if (intid == 287) then -- Impaler 220
  1834. if (plr:HasTitle(220)) then
  1835. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Impaler "..name.."|r title.", plr)
  1836. plr:GossipComplete()
  1837. return
  1838. end
  1839. if (plr:HasItem(95029, 5)) then
  1840. plr:SetKnownTitle(220)
  1841. plr:GossipComplete()
  1842. plr:RemoveItem(95029, 10)
  1843. else
  1844. plr:GossipComplete()
  1845. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1846. end
  1847. end
  1848.  
  1849. if (intid == 288) then -- Terminator 221
  1850. if (plr:HasTitle(221)) then
  1851. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Terminator "..name.."|r title.", plr)
  1852. plr:GossipComplete()
  1853. return
  1854. end
  1855. if (plr:HasItem(95029, 5)) then
  1856. plr:SetKnownTitle(221)
  1857. plr:GossipComplete()
  1858. plr:RemoveItem(95029, 10)
  1859. else
  1860. plr:GossipComplete()
  1861. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1862. end
  1863. end
  1864.  
  1865. if (intid == 289) then -- of the Damned 222
  1866. if (plr:HasTitle(222)) then
  1867. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000"..name.." of the Damned|r title.", plr)
  1868. plr:GossipComplete()
  1869. return
  1870. end
  1871. if (plr:HasItem(95029, 5)) then
  1872. plr:SetKnownTitle(222)
  1873. plr:GossipComplete()
  1874. plr:RemoveItem(95029, 10)
  1875. else
  1876. plr:GossipComplete()
  1877. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1878. end
  1879. end
  1880.  
  1881.  
  1882.  
  1883. if (intid == 290) then -- Daredevil 223
  1884. if (plr:HasTitle(223)) then
  1885. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Daredevil "..name.."|r title.", plr)
  1886. plr:GossipComplete()
  1887. return
  1888. end
  1889. if (plr:HasItem(95029, 5)) then
  1890. plr:SetKnownTitle(223)
  1891. plr:GossipComplete()
  1892. plr:RemoveItem(95029, 10)
  1893. else
  1894. plr:GossipComplete()
  1895. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1896. end
  1897. end
  1898.  
  1899.  
  1900.  
  1901. if (intid == 291) then -- Assassin 224
  1902. if (plr:HasTitle(224)) then
  1903. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Assassin "..name.."|r title.", plr)
  1904. plr:GossipComplete()
  1905. return
  1906. end
  1907. if (plr:HasItem(95029, 5)) then
  1908. plr:SetKnownTitle(224)
  1909. plr:GossipComplete()
  1910. plr:RemoveItem(95029, 10)
  1911. else
  1912. plr:GossipComplete()
  1913. unit:SendChatMessageToPlayer(8, 0, "You need to aquire 10x "..ItemLink.." in order to buy this title.", plr)
  1914. end
  1915. end
  1916. if (intid == 500) then
  1917. plr:GossipComplete()
  1918. end
  1919. end
  1920.  
  1921. RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
  1922. RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment