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

How to add to every players ~5 days of VIP?

Hm, i want to give all players free 5 vip days, only Now, not guys who will create char in 2 Hours or 2 days.. You understand me.

Maybe u can post this script here or help me to do it? i am not any pro scripter :(
 
LUA:
function onLogin(cid)

local id = xxxx
local VipID = xxxx

if (getPlayerStorageValue(uid, id == 1)) then
	return true
else
	doPlayerSetStorageValue(uid, VipID, 5)
	doPlayerSetStorageValue(uid, id, 1)
end
end

That will give every player that login (Only once tho) 5 days VIP
just chnage the "local VipID" to you VIP Storage
and "loacl id" to a free storage id
 
Hm.. that gives 5 days vip one time, but.. you know.. i want give it cuz much players lose something on mine OT. And.. i dont want that tomorrow players give new 5 days who create new char. Only now, like: Free vip to 26 April ;>
 
local id is just the id so the player won't get 5 days everytime he logs in :P just use a random storage that's not in use

VipID = your Vip storage ID the storage id the player get when USING your VIP medal or what ever.

I manualy set it to 5 days in the script :P
 
ok so can it be like this?

Id of medal of honour is 5785
Code:
function onLogin(cid)

local id = 1
local VipID = 5785

if (getPlayerStorageValue(uid, id == 1)) then
        return true
else
        doPlayerSetStorageValue(uid, VipID, 5)
        doPlayerSetStorageValue(uid, id, 1)
end
end
 
ok so can it be like this?

Id of medal of honour is 5785
Code:
function onLogin(cid)

local id = 1
local VipID = 5785

if (getPlayerStorageValue(uid, id == 1)) then
        return true
else
        doPlayerSetStorageValue(uid, VipID, 5)
        doPlayerSetStorageValue(uid, id, 1)
end
end

no -.-

Cmon...
ID = like 13999
VipID = THE FU**ING ID YOU GET WHEN YOU USE THE MEDAL.. NOT the medal
 
LOL NOOB'S ;S

In config.php search this... :/

LUA:
$config['site']['newaccount_premdays'] = 1;

CHANGE FOR THIS...
Code:
$config['site']['newaccount_premdays'] = 5;
 
Back
Top