• 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!

[Movement] AOL Checker

mostafaz4

New Member
Joined
Jun 24, 2009
Messages
25
Reaction score
0
Location
Egypt
Hello,

i need script alert players if they don't wear aol while they stepOut from protection zone =)
 
Last edited:
Code:
function onStepIn(cid, item, position, fromPosition)
local pozycja = {x=getPlayerPosition(cid).x,y=getPlayerPosition(cid).y,z=getPlayerPosition(cid).z}
if getTilePzInfo(pozycja) == FALSE and isPlayer(cid) == TRUE and getPlayerSlotItem(cid, 2).itemid ~= 2173 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Warning! You don't have Amulet Of Loss")
end
end
Maybe this ?
 
Code:
function onStepIn(cid, item, position, fromPosition)
local pozycja = {x=getPlayerPosition(cid).x,y=getPlayerPosition(cid).y,z=getPlayerPosition(cid).z}
if getTilePzInfo(pozycja) == FALSE and isPlayer(cid) == TRUE and getPlayerSlotItem(cid, 2).itemid ~= 2173 then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Warning! You don't have Amulet Of Loss")
end
end
Maybe this ?

yes i think it gonna works but the problem in movements.xml
it should look like this in movements.xml
<movevent type="StepIn" event="script" value="check.lua" />
but it doesn't work and it gives error because the line require itemid="xxxx" :(

teckman said:
Impossible with lua. Go to the sources of engine and change the pz thingy.
i saw some servers their owners didnt edit their sources and have it works
so i think it could work but the problem in movements.xml =|

Any Ideas ??
 
Back
Top