• 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!

The best vip system functions [ vip for account! ]

And MAYBE, this vip item add vip to your accounts:

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)

			doSendAnimatedText(getPlayerPosition(cid), "CONGRATulations!", TEXTCOLOR_RED) 
			doCreatureSay(cid, "Now you are vip blahblahblah!!", TALKTYPE_ORANGE_1)
			doAccountAddVipTime(getPlayerAccount(player), days) + 7
			doRemoveItem(item.uid, 1)

	end	
return TRUE
end

I repeat, I know nothing about this.

please test it =D

fixed script

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)

			doSendAnimatedText(getPlayerPosition(cid), "CONGRATulations!", TEXTCOLOR_RED) 
			doCreatureSay(cid, "Now you are vip blahblahblah!!", TALKTYPE_ORANGE_1)
			doPlayerAddVipTime(getPlayerAccount(player), days) + 7)
			doRemoveItem(item.uid, 1)

	end	
return TRUE
end

;) ty
 
how could i put if the player is vip he gets a new vip promotion (like a vip master sorcerer) and when vipdays are over he get his old vocation back?
thanks!
 
i rewrite a liitle bit a script from Bananaman141:
creaturescripts:
function onLogin(cid)
local oldvoc = getPlayerVocation(cid)
accountName = getPlayerAccount(cid)
if(isVip(accountName))then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome VIP Player!")
if getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <= 8 then
doPlayerSetVocation(cid,oldvoc+4)
setPlayerPromotionLevel(cid, 1)
else
doPlayerSendCancel(cid,"You need promotion to have second promotion.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome!")
end
return true
end
<event type="login" name="SecondProm" event="script" value="second_prom.lua"/>
 
Where do I add "doPlayerAddPremiumDays(cid, 35)" on a way that when player buys VIP he also get 35 premmy days ?
 
[31/03/2010 09:34:35] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: near "LIMIT": syntax error (UPDATE "accounts" SET "viptime" = 1272630875 WHERE "name"='102030a' LIMIT 1;)
[31/03/2010 09:35:15] Error during getDataInt(viptime).

How to Fix it? :/
 
how to add vipstatus for my web? (using modern aac)
ty
really nice script btw
 
Back
Top