Advertisement
nevadies

Untitled

Jul 19th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.96 KB | None | 0 0
  1. -- Variables
  2. local NPC_ID = 50033
  3.  
  4. -- On Triggers
  5. function GossipOnTalk(Unit, Event, player)
  6. Unit:GossipCreateMenu(100, player, 0)
  7. Unit:GossipMenuAddItem(0, "Alliance", 1, 0)
  8. Unit:GossipMenuAddItem(0, "Horde", 2, 0)
  9. Unit:GossipMenuAddItem(0, "Scourge", 3, 0)
  10. Unit:GossipMenUAddItem(0, "Worgen", 4, 0)
  11. Unit:GossipMenuAddItem(0, "I'd like another faction", 500, 0)
  12. Unit:GossipSendMenu(player)
  13. end
  14.  
  15. function GossipOnTalk(Unit, Event, player, id, intid, code, pMisc)
  16. if (intid == 1) then
  17. Unit:GossipCreateMenu(100, player, 0)
  18. Unit:GossipMenuAddItem(0, "Male Human", 5. 0)
  19. Unit:GossipMenuAddItem(0, "Female Human", 6, 0)
  20. Unit:GossipMenuAddItem(0, "Male Dwarf", 7, 0)
  21. Unit:GossipMenuAddItem(0, "Female Dwarf", 8, 0)
  22. Unit:GossipMenuAddItem(0, "Male Gnome", 9, 0)
  23. Unit:GossipMenuAddItem(0, "Female Gnome", 10, 0)
  24. Unit:GossipMenuAddItem(0, "Male Night Elf", 11, 0)
  25. Unit:GossipMenuAddItem(0, "Female Night Elf", 12, 0)
  26. Unit:GossipMenuAddItem(0, "Male Draenei", 13, 0)
  27. Unit:GossipMenuAddItem(0, "Female Draenei", 14, 0)
  28. Unit:GossipMenuAdditem(0, "Male Orc", 15, 0)
  29. Unit:GossipMenuAddItem(0, "Female Orc", 16, 0)
  30. Unit:GossipMenuAddItem(0, "Male Undead", 17, 0)
  31. Unit:GossipMenuAddItem(0, "Female Undead", 18, 0)
  32. Unit:GossipMenuAddItem(0, "Male Troll", 19, 0)
  33. Unit:GossipMenuAddItem(0, "Female Troll", 20, 0)
  34. Unit:GossipMenuAddItem(0, "Male Tauren", 21, 0)
  35. Unit:GossipMenuAddItem(0, "Female Tauren", 22, 0)
  36. Unit:GossipMenuAddItem(0, "Male Blood Elf", 23, 0)
  37. Unit:GossipMenuAddItem(0, "Female Blood Elf", 24, 0)
  38. Unit:GossipMenuAddItem(0, "I'd like to join another faction", 500, 0)
  39. Unit:GossipSendMenu(player)
  40. player:SetFaction(72)
  41. player:SetPlayerAtWar(76, 1)
  42. player:SetPlayerAtWar(528, 1)
  43. playerSetPlayerAtWar(68, 1)
  44. player:SendBroadcastMessage("Your now a member of the Alliance!")
  45.  
  46. end
  47. end
  48. if (intid == 2) then
  49. Unit:GossipCreateMenu(100, player, 0)
  50. Unit:GossipMenuAddItem(0, "Male Human", 25. 0)
  51. Unit:GossipMenuAddItem(0, "Female Human", 26, 0)
  52. Unit:GossipMenuAddItem(0, "Male Dwarf", 27, 0)
  53. Unit:GossipMenuAddItem(0, "Female Dwarf", 28, 0)
  54. Unit:GossipMenuAddItem(0, "Male Gnome", 29, 0)
  55. Unit:GossipMenuAddItem(0, "Female Gnome", 30, 0)
  56. Unit:GossipMenuAddItem(0, "Male Night Elf", 31, 0)
  57. Unit:GossipMenuAddItem(0, "Female Night Elf", 32, 0)
  58. Unit:GossipMenuAddItem(0, "Male Draenei", 33, 0)
  59. Unit:GossipMenuAddItem(0, "Female Draenei", 34, 0)
  60. Unit:GossipMenuAdditem(0, "Male Orc", 35, 0)
  61. Unit:GossipMenuAddItem(0, "Female Orc", 36, 0)
  62. Unit:GossipMenuAddItem(0, "Male Undead", 37, 0)
  63. Unit:GossipMenuAddItem(0, "Female Undead", 38, 0)
  64. Unit:GossipMenuAddItem(0, "Male Troll", 39, 0)
  65. Unit:GossipMenuAddItem(0, "Female Troll", 30, 0)
  66. Unit:GossipMenuAddItem(0, "Male Tauren", 41, 0)
  67. Unit:GossipMenuAddItem(0, "Female Tauren", 42, 0)
  68. Unit:GossipMenuAddItem(0, "Male Blood Elf", 43, 0)
  69. Unit:GossipMenuAddItem(0, "Female Blood Elf", 44, 0)
  70. Unit:GossipMenuAddItem(0, "I'd like to join another faction", 500, 0)
  71. Unit:GossipSendMenu(player)
  72. player:SetFaction(76)
  73. player:SetPlayerAtWar(72, 1)
  74. player:SetPlayerAtWar(528, 1)
  75. player:SetPlayerAtWar(68, 1)
  76. player:SendBroadcastMessage("Your now a member of the Horde!")
  77.  
  78. end
  79.  
  80. if (intd == 3) then
  81. Unit:GossipCreateMenu(100, player, 0)
  82. Unit:GossipMenuAddItem(0, "Skeletal Soldier", 45. 0)
  83. Unit:GossipMenuAddItem(0, "Blighted Zombie", 46, 0)
  84. Unit:GossipMenuAddItem(0, "Darkfallen Archmage (Caster)", 47, 0)
  85. Unit:GossipMenuAddItem(0, "Darkfallen Blood Knight (Melee)", 48, 0)
  86. Unit:GossipMenuAddItem(0, "Servant of the Throne (Caster)", 49, 0)
  87. Unit:GossipMenuAddItem(0, "I'd like to join another faction", 500, 0)
  88. Unit:GossipSendMenu(player)
  89. player:SetFaction(529)
  90. player:SetPlayerAtWar(72, 1)
  91. player:SetPlayerAtWar(76, 1)
  92. player:SetPlayerAtWar(68, 1)
  93. player:SendBroadcastMessage("Your now a member of the Scourge!")
  94.  
  95. end
  96.  
  97. if (intid == 4) then
  98. Unit:GossipCreateMenu(100, player, 0)
  99. Unit:GossipMenuAddItem(0, "Bloodmoon Worgen", 50, 0)
  100. Unit:GossipMenuAddItem(0, "Nightbane Worgen", 51, 0)
  101. Unit:GossipMenuAddItem(0, "I'd like to join another faction", 500, 0)
  102. Unit:GossipSendMenu(player)
  103. player:SetFaction(68)
  104. player:SetPlayerAtWar(72, 1)
  105. player:SetPlayerAtWar(76, 1)
  106. player:SetPlayerAtWar(68, 1)
  107. player:SendBroadcastMessage("Your now a member of the Worgen!")
  108.  
  109. end
  110.  
  111.  
  112.  
  113. --[[ Changing Displays ]]--
  114.  
  115. if (intid == 5) then
  116. player:SetModel(49)
  117. Unit:GossipCreateMenu(100, player, 0)
  118. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  119. Unit:GossipSendMenu(player)
  120. end
  121.  
  122. if (intid == 6) then
  123. player:SetModel(49)
  124. Unit:GossipCreateMenu(100, player, 0)
  125. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  126. Unit:GossipSendMenu(player)
  127. end
  128.  
  129. if (intid == 7) then
  130. player:SetModel(52)
  131. Unit:GossipCreateMenu(100, player, 0)
  132. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  133. Unit:GossipSendMenu(player)
  134. end
  135.  
  136.  
  137. if (intid == 8) then
  138. player:SetModel(52)
  139. Unit:GossipCreateMenu(100, player, 0)
  140. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  141. Unit:GossipSendMenu(player)
  142. end
  143.  
  144.  
  145. if (intid == 9) then
  146. player:SetModel(1563)
  147. Unit:GossipCreateMenu(100, player, 0)
  148. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  149. Unit:GossipSendMenu(player)
  150. end
  151.  
  152.  
  153. if (intid == 10) then
  154. player:SetModel(1563)
  155. Unit:GossipCreateMenu(100, player, 0)
  156. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  157. Unit:GossipSendMenu(player)
  158. end
  159.  
  160.  
  161. if (intid == 11) then
  162. player:SetModel(55)
  163. Unit:GossipCreateMenu(100, player, 0)
  164. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  165. Unit:GossipSendMenu(player)
  166. end
  167.  
  168.  
  169. if (intid == 12) then
  170. player:SetModel(55)
  171. Unit:GossipCreateMenu(100, player, 0)
  172. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  173. Unit:GossipSendMenu(player)
  174. end
  175.  
  176.  
  177. if (intid == 13) then
  178. player:SetModel(16125)
  179. Unit:GossipCreateMenu(100, player, 0)
  180. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  181. Unit:GossipSendMenu(player)
  182. end
  183.  
  184.  
  185. if (intid == 14) then
  186. player:SetModel(16125)
  187. Unit:GossipCreateMenu(100, player, 0)
  188. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  189. Unit:GossipSendMenu(player)
  190. end
  191.  
  192.  
  193. if (intid == 15) then
  194. player:SetModel(51)
  195. Unit:GossipCreateMenu(100, player, 0)
  196. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  197. Unit:GossipSendMenu(player)
  198. end
  199.  
  200.  
  201. if (intid == 16) then
  202. player:SetModel(51)
  203. Unit:GossipCreateMenu(100, player, 0)
  204. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  205. Unit:GossipSendMenu(player)
  206. end
  207.  
  208.  
  209. if (intid == 17) then
  210. player:SetModel(57)
  211. Unit:GossipCreateMenu(100, player, 0)
  212. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  213. Unit:GossipSendMenu(player)
  214. end
  215.  
  216.  
  217. if (intid == 18) then
  218. player:SetModel(57)
  219. Unit:GossipCreateMenu(100, player, 0)
  220. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  221. Unit:GossipSendMenu(player)
  222. end
  223.  
  224.  
  225. if (intid == 19) then
  226. player:SetModel(1478)
  227. Unit:GossipCreateMenu(100, player, 0)
  228. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  229. Unit:GossipSendMenu(player)
  230. end
  231.  
  232.  
  233. if (intid == 20) then
  234. player:SetModel(1478)
  235. Unit:GossipCreateMenu(100, player, 0)
  236. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  237. Unit:GossipSendMenu(player)
  238. end
  239.  
  240.  
  241. if (intid == 21) then
  242. player:SetModel(59)
  243. Unit:GossipCreateMenu(100, player, 0)
  244. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  245. Unit:GossipSendMenu(player)
  246. end
  247.  
  248.  
  249. if (intid == 22) then
  250. player:SetModel(59)
  251. Unit:GossipCreateMenu(100, player, 0)
  252. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  253. Unit:GossipSendMenu(player)
  254. end
  255.  
  256.  
  257. if (intid == 23) then
  258. player:SetModel(15476)
  259. Unit:GossipCreateMenu(100, player, 0)
  260. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  261. Unit:GossipSendMenu(player)
  262. end
  263.  
  264.  
  265. if (intid == 24) then
  266. player:SetModel(15476)
  267. Unit:Unit:GossipCreateMenu(100, player, 0)
  268. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  269. Unit:GossipSendMenu(player)
  270. end
  271.  
  272.  
  273. if (intid == 25) then
  274. player:SetModel(49)
  275. Unit:Unit:GossipCreateMenu(100, player, 0)
  276. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  277. Unit:GossipSendMenu(player)
  278. end
  279.  
  280.  
  281. if (intid == 26) then
  282. player:SetModel(49)
  283. Unit:GossipCreateMenu(100, player, 0)
  284. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  285. Unit:GossipSendMenu(player)
  286. end
  287.  
  288.  
  289. if (intid == 27) then
  290. player:SetModel(52)
  291. Unit:Unit:GossipCreateMenu(100, player, 0)
  292. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  293. Unit:GossipSendMenu(player)
  294. end
  295.  
  296.  
  297. if (intid == 28) then
  298. player:SetModel(52)
  299. Unit:GossipCreateMenu(100, player, 0)
  300. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  301. Unit:GossipSendMenu(player)
  302. end
  303.  
  304.  
  305. if (intid == 29) then
  306. player:SetModel(1563)
  307. Unit:GossipCreateMenu(100, player, 0)
  308. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  309. Unit:GossipSendMenu(player)
  310. end
  311.  
  312.  
  313. if (intid == 30) then
  314. player:SetModel(1563)
  315. Unit:GossipCreateMenu(100, player, 0)
  316. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  317. Unit:GossipSendMenu(player)
  318. end
  319.  
  320.  
  321. if (intid == 31) then
  322. player:SetModel(55)
  323. Unit:GossipCreateMenu(100, player, 0)
  324. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  325. Unit:GossipSendMenu(player)
  326. end
  327.  
  328.  
  329. if (intid == 32) then
  330. player:SetModel(55)
  331. Unit:GossipCreateMenu(100, player, 0)
  332. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  333. Unit:GossipSendMenu(player)
  334. end
  335.  
  336.  
  337. if (intid == 33) then
  338. player:SetModel(16125)
  339. Unit:GossipCreateMenu(100, player, 0)
  340. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  341. Unit:GossipSendMenu(player)
  342. end
  343.  
  344.  
  345. if (intid == 34) then
  346. player:SetModel(16125)
  347. Unit:GossipCreateMenu(100, player, 0)
  348. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  349. Unit:GossipSendMenu(player)
  350. end
  351.  
  352.  
  353. if (intid == 35) then
  354. player:SetModel(51)
  355. Unit:GossipCreateMenu(100, player, 0)
  356. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  357. Unit:GossipSendMenu(player)
  358. end
  359.  
  360.  
  361. if (intid == 36) then
  362. player:SetModel(51)
  363. Unit:GossipCreateMenu(100, player, 0)
  364. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  365. Unit:GossipSendMenu(player)
  366. end
  367.  
  368.  
  369. if (intid == 37) then
  370. player:SetModel(57)
  371. Unit:GossipCreateMenu(100, player, 0)
  372. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  373. Unit:GossipSendMenu(player)
  374. end
  375.  
  376.  
  377. if (intid == 38) then
  378. player:SetModel(57)
  379. Unit:GossipCreateMenu(100, player, 0)
  380. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  381. Unit:GossipSendMenu(player)
  382. end
  383.  
  384.  
  385. if (intid == 39) then
  386. player:SetModel(1478)
  387. Unit:GossipCreateMenu(100, player, 0)
  388. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  389. Unit:GossipSendMenu(player)
  390. end
  391.  
  392.  
  393. if (intid == 40) then
  394. player:SetModel(1478)
  395. Unit:GossipCreateMenu(100, player, 0)
  396. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  397. Unit:GossipSendMenu(player)
  398. end
  399.  
  400.  
  401. if (intid == 41) then
  402. player:SetModel(59)
  403. Unit:GossipCreateMenu(100, player, 0)
  404. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  405. Unit:GossipSendMenu(player)
  406. end
  407.  
  408. if (intid == 42) then
  409. player:SetModel(59)
  410. Unit:GossipCreateMenu(100, player, 0)
  411. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  412. Unit:GossipSendMenu(player)
  413. end
  414.  
  415. if (intid == 43) then
  416. player:SetModel(15476)
  417. Unit:GossipCreateMenu(100, player, 0)
  418. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  419. Unit:GossipSendMenu(player)
  420. end
  421.  
  422.  
  423. if (intid == 44) then
  424. player:SetModel(15476)
  425. Unit:GossipCreateMenu(100, player, 0)
  426. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  427. Unit:GossipSendMenu(player)
  428. end
  429.  
  430.  
  431. if (intid == 45) then
  432. player:SetModel(30616)
  433. Unit:GossipCreateMenu(100, player, 0)
  434. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  435. Unit:GossipSendMenu(player)
  436. end
  437.  
  438.  
  439. if (intid == 46) then
  440. player:SetModel(10970)
  441. Unit:GossipCreateMenu(100, player, 0)
  442. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  443. Unit:GossipSendMenu(player)
  444. end
  445.  
  446.  
  447. if (intid == 47) then
  448. player:SetModel(30713)
  449. Unit:GossipCreateMenu(100, player, 0)
  450. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  451. Unit:GossipSendMenu(player)
  452. end
  453.  
  454.  
  455. if (intid == 48) then
  456. player:SetModel(31025)
  457. Unit:GossipCreateMenu(100, player, 0)
  458. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  459. Unit:GossipSendMenu(player)
  460. end
  461.  
  462. if (intid == 49) then
  463. player:SetModel(26919)
  464. Unit:GossipCreateMenu(100, player, 0)
  465. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  466. Unit:GossipSendMenu(player)
  467. end
  468.  
  469.  
  470. if (intid == 50) then
  471. player:SetModel(26787)
  472. Unit:GossipCreateMenu(100, player, 0)
  473. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  474. Unit:GossipSendMenu(player)
  475. end
  476.  
  477. if (intid == 51) then
  478. player:SetModel(657)
  479. Unit:GossipCreateMenu(100, player, 0)
  480. Unit:GossipMenuAddItem(0, "I'd like another Race please.", 500, 0)
  481. Unit:GossipSendMenu(player)
  482. player:GossipComplete()
  483. end
  484.  
  485.  
  486.  
  487. -- RegisterUnitEvents
  488. RegisterUnitGossipEvent(50033, 1, "GossipOnTalk")
  489. RegisterUnitGossipEvent(50033, 2, "GossipOnSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement