stoneharry

Untitled

Sep 7th, 2012
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.54 KB | None | 0 0
  1. function UPDATE_CHAR_PHASE()
  2.     for place, plrs in pairs(GetPlayersInWorld()) do
  3.         if (plrs:GetPhase() ~= 1) then
  4.             if plrs:GetAreaId() == 70 then
  5.                 plrs:SetPhase(1)
  6.                 plrs:RemoveAura(68085)
  7.             elseif (plrs:GetPhase() ~= 4) then
  8.         if plrs:GetAreaId() == 997 or plrs:GetAreaId() == 71 then
  9.     if plrs:HasQuest(3008) or plrs:HasQuest(3007) or plrs:HasQuest(3006) then
  10.                     plrs:SetPhase(4)
  11.                         plrs:RemoveAura(68085)
  12.                     elseif plrs:HasFinishedQuest(3010) then
  13.                         if (plrs:GetPhase() ~= 8) then
  14.                             plrs:SetPhase(8)
  15.                 plrs:RemoveAura(68085)
  16.         elseif plrs:HasQuest(3029) or plrs:HasQuest(3030) or plrs:HasQuest(3031) or plrs:HasQuest(3032) then
  17.                 if plrs:GetAreaId() == 69 or plrs:GetAreaId() == 68 then
  18.                       if (plrs:GetPhase() ~= 4) then
  19.                         plrs:SetPhase(4)
  20.                         plr:CastSpell(68085)
  21.                 elseif plrs:HasQuest(3032) then
  22.                         if (plrs:GetPhase() ~= 32) then
  23.                         plrs:SetPhase(32)
  24.                         plr:CastSpell(68085)
  25.                         elseif plrs:HasQuest(3036) then
  26.                         if (plrs:GetPhase() ~= 1) then
  27.                         plrs:SetPhase(1)
  28.                         plrs:RemoveAura(68085)
  29.                         elseif plrs:GetAreaId() == 4812 then
  30.                             if (plrs:GetPhase() ~= 1) then
  31.                             plrs:SetPhase(1)
  32.                             plrs:RemoveAura(68085)
  33.                             elseif plrs:GetAreaId() == 254 then
  34.                             if (plrs:GetPhase() ~= 1) then
  35.                             plrs:SetPhase(1)
  36.                             plrs:RemoveAura(68085)
  37.                               end
  38.                           end
  39.                       end
  40.             end
  41.                end
  42.            end
  43.         end
  44.      end
  45.  end
  46.     end
  47.         end
  48.     end
  49. end
  50.  
  51. RegisterTimedEvent("UPDATE_CHAR_PHASE", 8000, 0)
  52.  
  53.  
  54.  
  55. function UPDATE_SOUTHREDRIDGE_PHASE()
  56.     for place, plrs in pairs(GetPlayersInWorld()) do
  57.         if (plrs:GetPhase() ~= 1) then
  58.     if plrs:GetAreaId() == 1001 or plrs:GetAreaId() == 1002 or plrs:GetAreaId() == 68 then
  59.             plrs:SetPhase(1)
  60.             if plrs:HasAura(68085) == true then
  61.             plrs:RemoveAura(68085)
  62.                end
  63.            end
  64.         end
  65.      end
  66.      end
  67.  
  68. RegisterTimedEvent("UPDATE_SOUTHREDRIDGE_PHASE", 6000, 0)
  69.  
  70.  
  71. function UPDATE_RENDER_PHASE()
  72.     for place, plrs in pairs(GetPlayersInWorld()) do
  73. if (plrs:GetPhase() ~= 4) then
  74.                 if plrs:GetAreaId() == 997 or plrs:GetAreaId() == 71 then
  75.                     if plrs:HasQuest(3008) or plrs:HasQuest(3007) or plrs:HasQuest(3006) then
  76.                         plrs:SetPhase(4)
  77.                          plrs:RemoveAura(68085)
  78.                     elseif plrs:HasFinishedQuest(3010) then
  79.                         if (plrs:GetPhase() ~= 8) then
  80.                             plrs:SetPhase(8)
  81.                             plrs:RemoveAura(68085)
  82.                             end
  83.                             end
  84.                             end
  85.                             end
  86.                             end
  87.                             end
  88.                            
  89.                            
  90.                            
  91. RegisterTimedEvent("UPDATE_RENDER_PHASE", 8000, 0)
Advertisement
Add Comment
Please, Sign In to add comment