• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MoveEvent Movement in ranges by red boss!

This is good?

  • yes

    Votes: 3 50.0%
  • no

    Votes: 3 50.0%

  • Total voters
    6
  • Poll closed .

narko

vertrauenswürdig ~
Joined
Oct 19, 2008
Messages
1,317
Solutions
2
Reaction score
131
Location
Unknown
Hello,
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
in xml
<movevent type="StepIn" tileitem="1" event="script" value="script.lua"/>
thanks!
 
for the custom map is fuunny!in range a drangerous respawns!
 
Back
Top