kito2
www.masteria.net
I made this script and works great, but I have one problem, when you create a new char, it receives the messge that "Your premium has expired... bla bla bla" and appear in Thais, so if you create your char in Venore, then he will appear in Thais with that message... How could I fix it?
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 and you lost some outfits, only if you are premium again, you will be able to use them!")
setPlayerStorageValue(cid, 1234, 1)
doPlayerSetTown(cid, 1)
doCreatureChangeOutfit(cid, {lookType = 128, lookHead = 78, lookBody = 68, lookLegs = 39, lookFeet = 76, lookTypeEx = 0, lookAddons = 0})
end
end
if isPremium(cid) then
if getPlayerStorageValue(cid, 1234) == 1 then
setPlayerStorageValue(cid, 1234, -1)
end
end