• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Vip Remove

zerghel

Tsuni
Joined
Jul 1, 2008
Messages
299
Reaction score
9
Well i have an action (i can't remember the owner but is not mine(oviously xD)) for VIP status on use but i don't know how to make a creaturescript(i suppose) to remove VIP status when the 30 day period finishes.
then here's the action 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

readers thx in advance
excuse my english plx
 
Back
Top