kusanagy

Instat_Revive Lua

Jan 23rd, 2017
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.76 KB | None | 0 0
  1. function Revive(event, pPlayer)
  2.         if (pPlayer:IsDead() == true) and pPlayer:HasItem(63001) then
  3.     pPlayer:RemoveItem(63001, 1)
  4.     pPlayer:FullCastSpell(26638)
  5.     pPlayer:ResurrectPlayer()
  6.     pPlayer:SendBroadcastMessage("|cffFF0000[SYSTEM] |cff00ff00"..pPlayer:GetName().."|r, one |cff571B7e[Justice-WoW Resurrection item]|r has been consumed. Successful revive.")
  7.         else
  8.     pPlayer:SendBroadcastMessage("|cffFF0000[SYSTEM] |cff00ff00"..pPlayer:GetName().."|r, you cannot be auto-revived, you need one |cff571B7e[Justice-WoW Resurrection item]|r. Fail to Revive.")
  9.     pPlayer:SendAreaTriggerMessage("|cffFF0000[SYSTEM] |cff00ff00"..pPlayer:GetName().."|r, |cff43BFC7you don't have the |cff571B7e[Justice-WoW Resurrection item]")
  10.         end
  11. end
  12.  
  13. RegisterServerHook(6, "Revive")
Advertisement
Add Comment
Please, Sign In to add comment