• 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 system script

andrew95434

Banned User
Joined
May 6, 2010
Messages
86
Reaction score
0
Location
chile
i have a vip system that uses the command /adddays, but it doesnt use storage. i like this system but in gesior when i see a character it says "is not vip" because this playes doesnt have the vip storage. how can i do to make that when the player have 1 or more days get the storage 11551??

other thing: can i do that when i make someone vip all the players in this account transform in vio too?? ( i dont want to put the systems with thia included becquse they are very difficult to edit )

sorry for my english
 
just edit the login.lua, in data/creaturescripts

in the onLogin() function add this:
Code:
if(isVip(cid)) then
setPlayerStorageValue(cid, 11551, 1)
else
setPlayerStorageValue(cid, 11551, 0)
end

change "isVip(cid)" to the function you use to check if your character have any vip days ^^
 
Last edited:
Back
Top