PDA

View Full Version : Look at the position(x,y,z) of atack target. Help!



grave18
12-07-2015, 05:58 PM
Fixed

Module.New("TEST", function()
local targetId1 = Self.TargetID()
local target1 = Creature.New(targetId1)
monPos1 = target1:Position()
if (Self.Position().x > 32675 and Self.Position().y > 32065 and Self.Position().z == 15) and (target1 and monPos1.x > 32675 and monPos1.y > 32065 and monPos1.z == 15) then
test()
end
end, false)

function test()
loadSettings("test1", "Special Areas")
Module.Stop("TEST")
end