Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPCID = 87222 -- horde
- -- made by brathus/nobody.
- -- all the places with -- you can ignore, they dont affect the script.
- function rh_OnTalk(Unit, Event, player)
- if (player:IsInCombat() == true) then
- player:SendAreaTriggerMessage("You are in combat!")
- player:GossipComplete()
- else
- Unit:GossipCreateMenu(100, player, 0)
- Unit:GossipMenuAddItem(0, "Horde need reinforcements!!", 1, 0)
- Unit:GossipMenuAddItem(0, "Nevermind", 2, 0)
- Unit:GossipSendMenu(player)
- end
- end
- function rh_OnSelect(Unit, Event, player, id, intid, code, pMisc)
- if (intid == 1) and
- player:GetItemCount(98728) > 9 then -- the reason its 9 is because if its 10 then you have to have more then 10,
- --if you have 10 you couldn't, so if you have more than 9 which is 10, you can use =)
- RegisterTimedEvent("rh_Timed", 360000, 0)
- Unit:SpawnCreature(82783, 1, -11673.4, -4712.90, 0.506583, 1.64174, 1, 360000)-- 1
- Unit:SpawnCreature(82783, 1, -11665.6, -4711.49, 0.506897, 1.64174, 1, 360000)-- 2
- Unit:SpawnCreature(82783, 1, -11665.6, -4738.03, 10.5657, 1.89254, 1, 360000) -- 3
- Unit:SpawnCreature(82783, 1, -11646.4, -4736.59, 10.4549, 1.53125, 1, 360000)--4
- Unit:SpawnCreature(82783, 1, -11642.9, -4692.63, 10.5291, 4.37047, 1, 360000)--5
- Unit:SpawnCreature(82783, 1, -11657.6, -4692.83, 10.5139, 5.22891, 1, 360000)--6
- Unit:SpawnCreature(82783, 1, -11655.3, -4704.48, 10.5518, 5.46453, 1, 360000)--7
- Unit:SpawnCreature(82783, 1, -11621.9, -4716.39, 17.6311, 3.395, 1, 360000)--8
- Unit:SpawnCreature(82783, 1, -11643.5, -4701.41, 23.9765, 4.32334, 1, 360000)--9
- Unit:SpawnCreature(82783, 1, -11645.3, -4721.57, 24.4752, 6.04179, 1, 360000)--10
- Unit:SpawnCreature(82783, 1, -11646.9, -4727.99, 23.9455, 6.04179, 1, 360000)--11
- Unit:SpawnCreature(82783, 1, -11655.7, -4734.88, 23.9462, 4.54168, 1, 360000)--12
- Unit:SpawnCreature(82783, 1, -11667.4, -4733.30, 24.1039, 3.92043, 1, 360000)--13
- Unit:SpawnCreature(82783, 1, -11671.1, -4723.13, 24.4433, 2.90036, 1, 360000)--14
- Unit:SpawnCreature(82783, 1, -11663.5, -4710.44, 23.5628, 2.27204, 1, 360000)--15
- player:RemoveItem(98728, 10)
- Unit:Despawn(100,360000) -- makes the unit or targeted unit despawn.
- player:GossipComplete()
- else
- player:SendBroadcastMessage("|cFFFF0000[NOTICE!]:|r You do not have enough Reinforcement badges!!, Obtain more!")
- -- you can change this text if you want but not the notice, anything behind the r sure.
- player:GossipComplete()
- end
- if (intid == 2) then
- player:GossipComplete()
- end
- function rh_Timed(Unit, Event)
- Unit:SendChatMessage(15, 0, "Our reinforcements are depleting!")
- end
- end
- RegisterUnitGossipEvent(NPCID, 1, "rh_OnTalk")
- RegisterUnitGossipEvent(NPCID, 2, "rh_OnSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement