SHARE
TWEET

Untitled

a guest May 19th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local NPCID = 87222 -- horde
  2. -- made by brathus/nobody.
  3.  
  4. -- all the places with -- you can ignore, they dont affect the script.
  5.  
  6. function rh_OnTalk(Unit, Event, player)
  7. if (player:IsInCombat() == true) then
  8. player:SendAreaTriggerMessage("You are in combat!")
  9. player:GossipComplete()
  10. else
  11. Unit:GossipCreateMenu(100, player, 0)
  12. Unit:GossipMenuAddItem(0, "Horde need reinforcements!!", 1, 0)
  13. Unit:GossipMenuAddItem(0, "Nevermind", 2, 0)
  14. Unit:GossipSendMenu(player)
  15. end
  16. end
  17.  
  18. function rh_OnSelect(Unit, Event, player, id, intid, code, pMisc)
  19. if (intid == 1) and
  20. player:GetItemCount(98728) > 9 then -- the reason its 9 is because if its 10 then you have to have more then 10,
  21. --if you have 10 you couldn't, so if you have more than 9 which is 10, you can use =)
  22.  
  23. RegisterTimedEvent("rh_Timed", 360000, 0)
  24. Unit:SpawnCreature(82783, 1, -11673.4, -4712.90, 0.506583, 1.64174, 1, 360000)-- 1
  25. Unit:SpawnCreature(82783, 1, -11665.6, -4711.49, 0.506897, 1.64174, 1, 360000)-- 2
  26. Unit:SpawnCreature(82783, 1, -11665.6, -4738.03, 10.5657, 1.89254, 1, 360000) -- 3
  27. Unit:SpawnCreature(82783, 1, -11646.4, -4736.59, 10.4549, 1.53125, 1, 360000)--4
  28. Unit:SpawnCreature(82783, 1, -11642.9, -4692.63, 10.5291, 4.37047, 1, 360000)--5
  29. Unit:SpawnCreature(82783, 1, -11657.6, -4692.83, 10.5139, 5.22891, 1, 360000)--6
  30. Unit:SpawnCreature(82783, 1, -11655.3, -4704.48, 10.5518, 5.46453, 1, 360000)--7
  31. Unit:SpawnCreature(82783, 1, -11621.9, -4716.39, 17.6311, 3.395, 1, 360000)--8
  32. Unit:SpawnCreature(82783, 1, -11643.5, -4701.41, 23.9765, 4.32334, 1, 360000)--9
  33. Unit:SpawnCreature(82783, 1, -11645.3, -4721.57, 24.4752, 6.04179, 1, 360000)--10
  34. Unit:SpawnCreature(82783, 1, -11646.9, -4727.99, 23.9455, 6.04179, 1, 360000)--11
  35. Unit:SpawnCreature(82783, 1, -11655.7, -4734.88, 23.9462, 4.54168, 1, 360000)--12
  36. Unit:SpawnCreature(82783, 1, -11667.4, -4733.30, 24.1039, 3.92043, 1, 360000)--13
  37. Unit:SpawnCreature(82783, 1, -11671.1, -4723.13, 24.4433, 2.90036, 1, 360000)--14
  38. Unit:SpawnCreature(82783, 1, -11663.5, -4710.44, 23.5628, 2.27204, 1, 360000)--15
  39. player:RemoveItem(98728, 10)
  40. Unit:Despawn(100,360000) -- makes the unit or targeted unit despawn.
  41. player:GossipComplete()
  42. else
  43. player:SendBroadcastMessage("|cFFFF0000[NOTICE!]:|r You do not have enough Reinforcement badges!!, Obtain more!")
  44. -- you can change this text if you want but not the notice, anything behind the r sure.
  45. player:GossipComplete()
  46. end
  47.  
  48. if (intid == 2) then
  49. player:GossipComplete()
  50. end
  51.  
  52. function rh_Timed(Unit, Event)
  53. Unit:SendChatMessage(15, 0, "Our reinforcements are depleting!")
  54. end
  55. end
  56.  
  57. RegisterUnitGossipEvent(NPCID, 1, "rh_OnTalk")
  58. RegisterUnitGossipEvent(NPCID, 2, "rh_OnSelect")
RAW Paste Data
Challenge yourself this year...
Learn something new in 2017
Top