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

Floor

Labik

New Member
Joined
Aug 3, 2010
Messages
20
Reaction score
0
LUA:
function onStepIn(cid, item, pos, fromPos)
	if(item.actionid == 5300) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING,""..getCreatureName(cid)..", welcome in Samurai City.")
	elseif(item.actionid == 5301) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING,""..getCreatureName(cid)..", welcome in Monk City")		
	elseif(item.actionid == 5302) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING,""..getCreatureName(cid)..", welcome in Bandit Camp")	
	elseif(item.actionid == 5303) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING,""..getCreatureName(cid)..", welcome in Ninja Camp")			
	end
end

If we enter on floor (aid: 5300) from north then script doesn't only if we enter from south script say message: NICK, welcome in Samurai City.. How i can make this? Help plax :D
 
Last edited:
LUA:
function onStepIn(cid, item, pos, fromPos)
	if item.actionid == 5300 and fromPos.y > pos.y then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, getCreatureName(cid).." , welcome in Samurai City")
	elseif item.actionid == 5301 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, getCreatureName(cid).." , welcome in Monk City")
	elseif item.actionid == 5302 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, getCreatureName(cid).." , welcome in Bandit Camp")
	elseif item.actionid == 5303 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, getCreatureName(cid).." , welcome in Ninja Camp")
	end
end
 
Back
Top