Advertisement
WIXXZI

Untitled

Mar 2nd, 2023
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.39 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
  994. if (plr:HasTitle(134)) then
  995. unit:SendChatMessageToPlayer(8, 0, "You already have |cffff0000Merrymaker "..name.." Jenkins|r title.", plr)
  996. plr:GossipComplete()
  997. return
  998. end
  999. plr:SetKnownTitle(134)
  1000. plr:GossipComplete()
  1001. end
  1002.  
  1003. if (intid == 500) then
  1004. plr:GossipComplete()
  1005. end
  1006. end
  1007.  
  1008. RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
  1009. RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement