MxSoft
Leave Tibia, Live Life.
Hi i want to know i way to add to all my ot players 6 Vip days.
I use this Vip Script
And a query to add 3 Shop poitns to everyone
Greetings
I use this Vip Script
Code:
local days = 30
local levelToBeVIP = 1
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= levelToBeVIP then
if isPlayerVip(cid) == FALSE then
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for "..days.." days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
end
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doPlayerAddVipDays(cid, days)
doRemoveItem(item.uid, 1)
doSendAnimatedText(getCreaturePosition(cid), "+"..days.." days", 30)
else
doPlayerSendCancel(cid, "You need level "..levelToBeVIP.." to be a VIP player.")
end
return TRUE
end
Code:
- <!-- VIP
-->
<action actionid="5786" script="vipdoor.lua" />
<action itemid="5785" script="vip.lua" />
Greetings