I just discovered a very dangerous bug to my server, I have a character in rook guard, and being free account, he is teleported to Thais, I would like to know how I configure to be born in his homeland, but for example, players who born in premium area not born in premium area, and if the player is rook, he is born in rook.
I need rook guard players born in rook guard, others can be born in thais
Tfs 0.4

I need rook guard players born in rook guard, others can be born in thais
Tfs 0.4
LUA:
function onLogin(cid)
registerCreatureEvent(cid,"FimPremium")
local pos = {x = 32369, y = 32241, z = 7}
if isPremium(cid) then
setPlayerStorageValue(cid, 59898989, 1)
elseif getPlayerStorageValue(cid, 59898989) == 1 and not isPremium(cid) and getPlayerSex(cid) == 0 then
doCreatureChangeOutfit(cid, {lookType = 136})
doTeleportThing(cid, pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, t)
t = "Your premium account is over"
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
setPlayerStorageValue(cid, 59898989, -1)
elseif getPlayerStorageValue(cid, 59898989) == 1 and not isPremium(cid) and getPlayerSex(cid) == 1 then
doCreatureChangeOutfit(cid, {lookType = 128})
doTeleportThing(cid, pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, t)
t = "Your premium account is over"
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
setPlayerStorageValue(cid, 59898989, -1)
end
return TRUE
end
