• 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 StepIn a Tile and get Teleported to X Position if your Premium!

Ekt

New Member
Joined
Sep 11, 2011
Messages
58
Reaction score
0
Location
127.0.0.1
Its a simple script, but it can be great for players that want to have another VIP access.
Lua:
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) and getPlayerPremiumDays(cid) == 0 then
		doTeleportThing(cid, fromPosition, true)
		--doCreatureSay(cid)	
	else
		doCreatureSay(cid, "You are vip, congratulations you may pass", TALKTYPE_ORANGE_1)
		doTeleportThing(cid, {x=AKI, y=AKI, z=AKI})
		--doSendMagicEffect(getThingPos(cid))
	end
	return true
end
 
Congratulations on your journey on scripting, although if something is too simple, best kept to self.
 
Back
Top