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

[Movements] When player leave temple gets message

YugiNao

Banned User
Joined
Nov 22, 2008
Messages
211
Reaction score
3
Need a reminder script, When a player leave the Temple he get a Message Dont forgot to buy bless before you hunt on monsters. But i dont want someone is able to abuse it to walk in and out of temple so it wont lagg the server.
 
CreatureEvent:

onLogin:
LUA:
 if(getPlayerStorageValue(cid,1234)<1) then 
setPlayerStorageValue(cid,1234,1);
setPlayerStorageValue(cid, 1235,1);
end

onDeath:
LUA:
setPlayerStorageValue(cid,1235,1);

Movement onStepIn:
LUA:
if(getPlayerStorageValue(cid,1235))  then
setPlayerStorageValue(cid,1235,0);
--dePlayerSendMessage
end;
 
Back
Top