Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function UPDATE_CHAR_PHASE()
- for place, plrs in pairs(GetPlayersInWorld()) do
- if (plrs:GetPhase() ~= 1) then
- if plrs:GetAreaId() == 70 then
- plrs:SetPhase(1)
- plrs:RemoveAura(68085)
- elseif (plrs:GetPhase() ~= 4) then
- if plrs:GetAreaId() == 997 or plrs:GetAreaId() == 71 then
- if plrs:HasQuest(3008) or plrs:HasQuest(3007) or plrs:HasQuest(3006) then
- plrs:SetPhase(4)
- plrs:RemoveAura(68085)
- elseif plrs:HasFinishedQuest(3010) then
- if (plrs:GetPhase() ~= 8) then
- plrs:SetPhase(8)
- plrs:RemoveAura(68085)
- elseif plrs:HasQuest(3029) or plrs:HasQuest(3030) or plrs:HasQuest(3031) or plrs:HasQuest(3032) then
- if plrs:GetAreaId() == 69 or plrs:GetAreaId() == 68 then
- if (plrs:GetPhase() ~= 4) then
- plrs:SetPhase(4)
- plr:CastSpell(68085)
- elseif plrs:HasQuest(3032) then
- if (plrs:GetPhase() ~= 32) then
- plrs:SetPhase(32)
- plr:CastSpell(68085)
- elseif plrs:HasQuest(3036) then
- if (plrs:GetPhase() ~= 1) then
- plrs:SetPhase(1)
- plrs:RemoveAura(68085)
- elseif plrs:GetAreaId() == 4812 then
- if (plrs:GetPhase() ~= 1) then
- plrs:SetPhase(1)
- plrs:RemoveAura(68085)
- elseif plrs:GetAreaId() == 254 then
- if (plrs:GetPhase() ~= 1) then
- plrs:SetPhase(1)
- plrs:RemoveAura(68085)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- RegisterTimedEvent("UPDATE_CHAR_PHASE", 8000, 0)
- function UPDATE_SOUTHREDRIDGE_PHASE()
- for place, plrs in pairs(GetPlayersInWorld()) do
- if (plrs:GetPhase() ~= 1) then
- if plrs:GetAreaId() == 1001 or plrs:GetAreaId() == 1002 or plrs:GetAreaId() == 68 then
- plrs:SetPhase(1)
- if plrs:HasAura(68085) == true then
- plrs:RemoveAura(68085)
- end
- end
- end
- end
- end
- RegisterTimedEvent("UPDATE_SOUTHREDRIDGE_PHASE", 6000, 0)
- function UPDATE_RENDER_PHASE()
- for place, plrs in pairs(GetPlayersInWorld()) do
- if (plrs:GetPhase() ~= 4) then
- if plrs:GetAreaId() == 997 or plrs:GetAreaId() == 71 then
- if plrs:HasQuest(3008) or plrs:HasQuest(3007) or plrs:HasQuest(3006) then
- plrs:SetPhase(4)
- plrs:RemoveAura(68085)
- elseif plrs:HasFinishedQuest(3010) then
- if (plrs:GetPhase() ~= 8) then
- plrs:SetPhase(8)
- plrs:RemoveAura(68085)
- end
- end
- end
- end
- end
- end
- RegisterTimedEvent("UPDATE_RENDER_PHASE", 8000, 0)
Advertisement
Add Comment
Please, Sign In to add comment