Icy, I tried to find the function on lib and it doesnt appear... It should work anyways? And also, why I would like to set time?
I want that the player stay with the outfit that I setted, because, on the OTs, when your premium expires, and you were using a premium outfit, you can still wear it, but it wont appear on the select outfit screen.
Cyko I had this, someone made it and I added a few things to make it work fine:
On login.lua
LUA:
if not isPremium(cid) then
if getPlayerStorageValue(cid, 1234) ~= 1 then
doTeleportThing(cid, getTownTemplePosition(1), FALSE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your premium has expired!")
setPlayerStorageValue(cid, 1234, 1)
doPlayerSetTown(cid, 1)
end
end
if isPremium(cid) then
if getPlayerStorageValue(cid, 1234) == 1 then
setPlayerStorageValue(cid, 1234, -1)
end
end
Im thinking on adding to this script a line that changes de looktype of the player, but it should be when the players log out... And also checking the storage value, so it will be once he lose the premium time, and not always.