Peacy Posted March 6, 2016 Share Posted March 6, 2016 Hello Model-Changing, I want to create a Bunny npc that will phase people depending on what quests they have completed upon entering the building. function PhaseSystemCity(eventId, delay, repeats, worldobject) local player = worldobject:GetNearestPlayer(20) if player ~= nil then if (player:GetQuestStatus(40018) == 6 and player:GetPhaseMask() == 1) then player:SetPhaseMask(2) end end end I made the code and it works but there is only one thing i'm confused about how can I make it so when players complete the next quest they get phased into phase 4. In addition to this how can I make it so if they get out of the 20 yard range their phased back into phase 1? Thanks, Peacy! Link to comment Share on other sites More sharing options...
Peacy Posted March 7, 2016 Author Share Posted March 7, 2016 Nevermind I solved it! Link to comment Share on other sites More sharing options...
Script Question
By Peacyin Serverside
Recommended Posts