strix raider
New Member
- Joined
- Mar 1, 2009
- Messages
- 39
- Reaction score
- 0
Here is a vip system.
it's like The Premium System In Real Tibia
First You have to make a new lua file called vip in actions/scripts/other
Then in the new lua you add this into it
Code:
Then add this in actions.xml
Code:
Now here is a vip door which only vip members can get acess to!!!
make a new lua file called vip door in actions/scripts/other
Then add this code
Code:
Then add this in actions.xml
Code:
make sure you change the unique id on the door on ur map editor to 11551
Then everything should work
Give me rep++ if this helped you
it's like The Premium System In Real Tibia
First You have to make a new lua file called vip in actions/scripts/other
Then in the new lua you add this into it
Code:
HTML:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5785 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'You are not a donator.')
doRemoveItem(item.uid, 1)
end
else
end
return 1
end
Code:
HTML:
<action itemid="5785" script="other/vip.lua"/>
make a new lua file called vip door in actions/scripts/other
Then add this code
Code:
HTML:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 11551 then -- This number you will imput into map editor for the door you wish
queststatus = getPlayerStorageValue(cid,11551) -- Quest number that needs to be COMPLETE.
area = {x=xxx, y=yyy, z=zzz} -- If that above quest is complete, It will teleport you here.
if queststatus == -1 then
doCreatureSay(cid, "Sorry, but only VIP Players can pass here! Buy VIP on the WEB!. ", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, area,0)
doSendMagicEffect(topos, 12)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
end
end
return 1
endChange the red to what ever poz that sends you to after you use the door
Code:
HTML:
<action uniqueid="11551" script="other/vip door.lua" />
Then everything should work
Give me rep++ if this helped you