Advertisement
Guest User

WodaN

a guest
Aug 24th, 2010
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.01 KB | None | 0 0
  1. local rocket = 75973
  2. local rocket1 = 75957
  3. local rocket2 = 75972
  4. local riding3 = 34090
  5. local riding4 = 34091
  6. local coldweatherfly = 54197
  7.  
  8. function rocket_cast(event, player, spellid)
  9.     if(spellid == rocket) then
  10.         RegisterTimedEvent("rocket_check", 1600, 1, event, player)
  11.     end
  12. end
  13.  
  14. RegisterServerHook(10, "rocket_cast")
  15.  
  16. function rocket_check(event, player)
  17.     if (player:HasAura(rocket) == true) then
  18.         player:RemoveAura(rocket)
  19.         if (player:HasSpell(riding4) == false) then
  20.             if (player:HasSpell(riding3) == false) then
  21.             else
  22.                 if player:GetMapId() == 530 then
  23.                     player:FullCastSpell(rocket1)
  24.                 elseif player:GetMapId() == 571 then
  25.                     if (player:HasSpell(coldweatherfly) == true) then
  26.                         player:FullCastSpell(rocket1)
  27.                     end
  28.                 end
  29.             end
  30.         else
  31.             if player:GetMapId() == 530 then
  32.                 player:FullCastSpell(rocket2)
  33.             elseif player:GetMapId() == 571 then
  34.                 if (player:HasSpell(coldweatherfly) == true) then
  35.                     player:FullCastSpell(rocket2)
  36.                 end
  37.             end
  38.         end
  39.     end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement