Hey Ownedcore,
I am working on this script and when the boss spawns I want him to start sending boulders down a hill. In this raid i'm creating the Alliance and Horde experience different versions of the raid. I have Alliance in phase 1 and Horde in phase 8. However, my function doesn't appear to be working I don't get any errors when running the script I simply don't see the boulders come into phase 1 or 8.
Here is the function;
Does anyone know whats wrong with it?Code:function UTG.VAR.BOULDERZOMGZS(pUnit) local plr = pUnit:GetRandomPlayer(0) if plr ~= nil then local race = plr:GetPlayerRace() if race == 1 or race == 3 or race == 4 or race == 7 or race == 11 then -- alliance for place,creatures in pairs(pUnit:GetInRangeUnits()) do if creatures:GetEntry() == 6814 and pUnit:GetDistanceYards(creatures) < 800 then creatures:SetPhase(1) else for place,creatures in pairs(pUnit:GetInRangeUnits()) do if creatures:GetEntry() == 6814 and pUnit:GetDistanceYards(creatures) < 800 then creatures:SetPhase(8) end end end end end end end
Thanks!





Reply With Quote



