narko
vertrauenswürdig ~
Hello,
this movement works in ranges!
in xml
this movement works in ranges!
Code:
local t = {
1from = {x=1111, y=1111, z=6},
1to = {x=1122, y=1122, z=6},
2from = {x=1333, y=1333, z=6},
2to = {x=1322, y=1322, z=6},
}
function onStepIn(cid, item, pos, fromPos)
if isPlayer(cid) and isInRange(getThingPos(cid), t.1from, t.1to) or isPlayer(cid) and isInRange(getThingPos(cid), t.2from, t.2to) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Warning!Drangerous zone.")
end
end
thanks!<movevent type="StepIn" tileitem="1" event="script" value="script.lua"/>