Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Russian Roulette NPC
- Scripted by: Crash45 of Ac-Web
- DO NOT Remove Credits or change them in any way shape or form unless given consent by myself.
- ]]
- local Npc_Id = 40003
- function Roulette_OnGossipTalk(pUnit, event, player, pMisc)
- if (player:IsInCombat() == true) then
- player:SendAreaTriggerMessage("You are in combat!")
- else
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:GossipMenuAddItem(3, "Let's Play!", 3, 0)
- pUnit:GossipMenuAddItem(1, "Nevermind", 999, 0)
- pUnit:GossipSendMenu(player)
- end
- end
- function Roulette_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
- if(intid == 3) then
- local rand = math.random(1,6)
- if (rand==1 or rand==3) then
- player:CastSpell(31984) --Finger of Death
- pUnit:SendChatMessage(12, 0, "Hahahaha!")
- player:PlaySoundToPlayer(11965) --Headless Horseman Laugh
- elseif (rand==2) then
- pUnit:SendChatMessage(12, 0, "Why must you ruin the fun?")
- player:PlaySoundToPlayer(7914) --Sigh
- elseif (rand==5 and rand==4) then
- player:CastSpell(31984)
- pUnit:SendChatMessage(12, 0, "YOU ARE NOT PREPARED!!")
- player:PlaySoundToPlayer(11466) --Illidan "You are not prepared!"
- elseif (rand==6) then
- pUnit:SendChatMessage(12, 0, "Well since you lived, here's to you! LETS ROCK!!!")
- player:PlaySoundToPlayer(11803) --
- end
- end
- end
- if(intid == 999) then
- pUnit:GossipComplete(player)
- end
- RegisterUnitGossipEvent(Npc_Id, 1, "Roulette_OnGossipTalk")
- RegisterUnitGossipEvent(Npc_Id, 2, "Roulette_OnGossipSelect")
Advertisement
Add Comment
Please, Sign In to add comment