I have changed all of the the towns temple positions to thais
s temple position, including the account managers xyz coordinates and set the xyz in the config file i still get the same error. -wrong temple position please contact administrator-
I'm running tfs 0.3b3 and the real tibia map i made an mysql query to help solve the player temple problem, when the player logs out their temple position is set to null. This is a temporary solution but won't last forever.
Maybe someone here can help solve this little problem or atleast give me a heads up.
This code here works but its not a solution just sorta like a bandaid.
here is what im working with:
this script is located in \data\creaturescripts\scripts\login.lua
s temple position, including the account managers xyz coordinates and set the xyz in the config file i still get the same error. -wrong temple position please contact administrator-
I'm running tfs 0.3b3 and the real tibia map i made an mysql query to help solve the player temple problem, when the player logs out their temple position is set to null. This is a temporary solution but won't last forever.
Maybe someone here can help solve this little problem or atleast give me a heads up.
This code here works but its not a solution just sorta like a bandaid.
here is what im working with:
this script is located in \data\creaturescripts\scripts\login.lua
PHP:
local mposx = getConfigInfo('newPlayerSpawnPosX')
local mposy = getConfigInfo('newPlayerSpawnPosY')
local mposz = getConfigInfo('newPlayerSpawnPosZ')
local mtid = getConfigInfo('newPlayerTownId')
function onLogin(cid, pos)
local text = ", welcome to Malacalypse!"
db.executeQuery("SELECT `id` , `posx` , `posy` , `posz` `town_id` FROM `players` WHERE id >0 AND posx=0 AND posy=0 AND posz=0 AND town_id=0;")
db.executeQuery("UPDATE players SET posx="..mposx..", posy="..mposy..", posz="..mposz..", town_id="..mtid.." WHERE id>0 AND posx=0 AND posy=0 AND posz=0 AND town_id=0;")
if getPlayerStorageValue(cid, 50002) == -1 then
doPlayerPopupFYI(cid, "Hello "..getPlayerName(cid)..text)
setPlayerStorageValue(cid, 50002, 1)
end
registerCreatureEvent(cid, "PlayerDeath")
return TRUE
end