dragon1155
Member
- Joined
- Mar 5, 2010
- Messages
- 130
- Reaction score
- 5
Hi, ive been struggling with this for hours. My project is based on a premium account, so the problem is that as long as the player is online the premium account does not expire. Ive tried diffrent functions, but it doesnt change anything - the player has to relog to update his premium account status.
This is a big problem because I have many NPCs that use the
or
functions, plus some spells is premium only.
i tried doing something with the
but its doesnt work. maybe I just don't know how to do it.
i added this code to login.lua, and it works fine, but it does not solve the main problem, it only prevents you from staying in the premium zone:
This is a big problem because I have many NPCs that use the
Lua:
getPlayerPremiumDays
Lua:
isPremium
i tried doing something with the
Lua:
doRemoveCreature(cid)
i added this code to login.lua, and it works fine, but it does not solve the main problem, it only prevents you from staying in the premium zone:
TFS 0.4 protocol 8.6. Any ideas? Thank you in advance for helpif isPremium(cid) then
setPlayerStorageValue(cid, 10203, 1)
elseif ((getPlayerStorageValue(cid, 10203)) == 1) then
setPlayerStorageValue(cid, 10203, 0)
doTeleportThing(cid, config.templePosition, true)
doPlayerSetTown(cid, 1)
doSendMagicEffect(getCreaturePosition(cid), 10)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your premium account has expired.")
end