• 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 Teleport on a "wooden flooring".

derkon

New Member
Joined
Oct 13, 2009
Messages
81
Reaction score
0
Location
UK, but im Polish!
I want to have teleport on a wooden flooring. When someone below lvl e.g. "100" stands on a "wooden flooring(id: 446)" he is teleported 2 sqm back. But when you are lvl "100" or above you can walk past.

If someone stands on sqm and is below "100" i want to give him green massage, Your lvl is to low!
And when someone with lvl "100" or above stands on sqm i want to give him green massage, Your lvl is allright, you can walk on!

if someone knows how to do it i will be happy and i will give rep++ :)
 
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if (getPlayerLevel(cid) < 100) then
		doTeleportThing(cid, fromPosition, TRUE)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "ur lvl is too low")
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "aight, u can walk")
	end
	return true
end
 
Back
Top