Alcik
ots.tibiaserver.pl
I didn't see it here so I decided to put it here.
This is script for VIP system. The tile that has unique id 30001 will teleport players with VIP to VIP area and players without VIP to temple.
I'm new in scrips in LUA, and in scripts at all so I hope there is no mistakes.
Add this to movements.xml
And add this to /data/movements/scripts/viptp.lua
I know thats its simple script but maybe someone will like it.
Script 100% by me!
This is script for VIP system. The tile that has unique id 30001 will teleport players with VIP to VIP area and players without VIP to temple.
I'm new in scrips in LUA, and in scripts at all so I hope there is no mistakes.
Add this to movements.xml
Lua:
<movevent type="StepIn" uniqueid="30001" event="script" value="viptp.lua"/>
And add this to /data/movements/scripts/viptp.lua
Lua:
--Simple script by AlcikOTS. I'am new in this things so sorry if I make any mistakes.
function onStepIn(cid, item, frompos, item2, topos)
local vip = getPlayerStorageValue(cid,11551) >= 1 --Vip Storage.
local back = {x=1000, y=1000, z=7} --Place where non vip is teleported.
local allowed = {x=1216, y=1038, z=7} --Place where VIPs are teleported.
if(vip) then
doPlayerSendTextMessage(cid, 19, "You are VIP so you are allowed to pass.")
doSendMagicEffect(getPlayerPosition(cid),2)
doTeleportThing(cid, allowed)
doSendMagicEffect(allowed,10)
else
doPlayerSendTextMessage(cid, 19, "You can't pass because you don't have Vip! You can get it in our SMS Shop.")
doTeleportThing(cid, back)
end
end
I know thats its simple script but maybe someone will like it.
Script 100% by me!