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