Stellow
C++/C#/PHP/LUA
Create creaturescript login function and addIs there any way to make every new account premium upon creation?
local storage = 7001
function onLogin(cid)
if getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddPremiumDays(cid, 99)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have received 99 days of premium account, enjoy it!")
setPlayerStorageValue(cid, 30004, 1)
setGlobalStorageValue(getPlayerAccountId(cid),1)
end
setPlayerStorageValue(cid, storage, 1)
return TRUE
end