Advertisement
WIXXZI

Untitled

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