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

MoveEvent Simple Premium Tile!

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,782
Solutions
31
Reaction score
2,284
Location
Sweden?
Im making simple and diffrent scripts, to learn lua and such things by people correcting my problems :)

Just add actiodid on a tile at movement and mapeditor, then are you done :)
Enjoy!

Lua:
function onStepIn(cid, item, position, fromPos, fromPosition)
	if not isPremium(cid) then
		doTeleportThing(cid, fromPosition, true)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
		doCreatureSay(cid, "Sorry, only Premium players are allowed to pass!", TALKTYPE_MONSTER)
        doPlayerSendTextMessage(cid, 27, "Go away only premium can enter!.")
		else
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED)
        doPlayerSendTextMessage(cid, 27, "Welcome to the Premium Side, here can you explore new things and face other creatures.")
		doCreatureSay(cid, "Welcome Bro!", TALKTYPE_MONSTER)
	end
end
 
Last edited:
You should try checking the requests board & the support board.
 
It's working, and i love the effect! The BEST script of this type! good work!!
 
Back
Top