Zonet
Web Developer
DONT FORGET I DID A MISTAKE! YOU SHOULD ADD THIS TO MOVEMENTS!
Here's my simple script (my second script)
If you are using a city that only premium players can enter
You should use this script for the hunt entrance... if the player go on the tile he teleports to the position you want
I'm using this script atm on my server
Here it comes.
Go to data/movements/scripts, create a lua file
name it premium.lua
Now open the script and
Add:
LUA code:
LUA code:
Now go to data/movements/movements.xml
Under:
Add:
XML code:
XML code:
That was it!
Credits:
To me (Zonet) Second script.
Here's my simple script (my second script)
If you are using a city that only premium players can enter
You should use this script for the hunt entrance... if the player go on the tile he teleports to the position you want
I'm using this script atm on my server
Here it comes.
Go to data/movements/scripts, create a lua file
name it premium.lua
Now open the script and
Add:
LUA code:
PHP:
]function onStepIn(cid, item, position, fromPosition)
if isPremium(cid) == TRUE then
return TRUE
else
doPlayerSendTextMessage(cid,21, "Your Premium is Expired!.")
pos = {x=19024, y=19201, z=6}
doMoveCreature(cid, fromPosition)
doTeleportThing(cid,pos)
doSendMagicEffect(pos,37)
doSendMagicEffect(pos,27)
end
end
LUA code:
PHP:
pos = {x=1000, y=1000, z=7}<--- if dont
got prem they will be teleported to a place..
Now go to data/movements/movements.xml
Under:
PHP:
<movements>
Add:
XML code:
PHP:
<movevent event="StepIn" uniqueid="8062" script="expired.lua" />
XML code:
PHP:
<movevent event="StepIn" uniqueid="8062" <--- this id is
what you should add on the tile with mapeditor(
unique ID) You can change if you want.
That was it!
Credits:
To me (Zonet) Second script.
Last edited: