michaelE
New Member
Hi, Everyone i have decided to release my premium only portal script.
First
Add this line to your movement.xml file <uniqueid="2001" event="script" value="nameofthescripthere"/>
Second
Open notepad and add the script then name it what ever you like and save it in to your movements folder
Hope it helps msg or post if you have questions.
First
Add this line to your movement.xml file <uniqueid="2001" event="script" value="nameofthescripthere"/>
Second
Open notepad and add the script then name it what ever you like and save it in to your movements folder
LUA:
config = {toIsland = {x = 1055, y = 741, z = 7,}, push = {x = 935, y = 749, z = 8,}}
function onStepIn(cid, item, position, fromPosition, toPosition)
local playerTime = getPlayerPremiumDays(cid)
if (playerTime > 0) then
doTeleportThing(cid, config.toIsland)
local pos = getPlayerPosition(cid)
doSendMagicEffect(pos, 10)
else
local pos = getPlayerPosition(cid)
doRelocate(pos, config.push)
doCreatureSay(cid, "You must be premuim to use", TALKTYPE_ORANGE_1)
return true
end
end
Hope it helps msg or post if you have questions.
Last edited: