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

Premium System

this funcion working in talkaction:

if(getPlayerPremiumDays(cid) >= 1 and getPlayerStorageValue(cid, 759759) <= 0) then
doCreatureSay(cid, "Premium privilegies activate.", TALKTYPE_ORANGE_1, true, cid)
setPlayerStorageValue(cid, 759759, 1)
doSendMagicEffect(getCreaturePosition(cid), 50)
return
end

if(getPlayerPremiumDays(cid) == 0 and getPlayerStorageValue(cid, 759759) >= 1) then
doCreatureSay(cid, "You loose a premmium privilegies. ", TALKTYPE_ORANGE_1, true, cid)
setPlayerStorageValue(cid, 759759, -1)
doSendMagicEffect(getCreaturePosition(cid), 45)
return
end

if(getPlayerPremiumDays(cid) == 0 and getPlayerStorageValue(cid, 759759) <= 0) then
doSendMagicEffect(getCreaturePosition(cid), 13)
return
end

if(getPlayerPremiumDays(cid) >= 1 and getPlayerStorageValue(cid, 759759) >= 1) then
doSendMagicEffect(getCreaturePosition(cid), 14)
return
end


return TRUE
end

ideas for working in creaturescript on login?
 
Back
Top