• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

When i do a big update how can i let all the players to start at temple!

otaf

New Member
Joined
Aug 5, 2009
Messages
135
Reaction score
1
When i do a big update how can i let all the players to start at temple!
 
Code:
UPDATE `players` SET `posx` = 0, `posy` = 0, `posz` = 0;

It will reset positions of all players to 0, server will automatically set it to temple positions while player login.
 
Are you using phpMyAdmin? If yes paste it in "SQL" tab. If not you have to execute this via php script/lua script.
 
When i do a big update how can i let all the players to start at temple!

edit each player in your database and set posx/posy/posz = "0"

after that try to update your server to MySql...it's better and easier
 
when you open the server the players start in the temple
globalevents/scripts
create file start.lua and put this script
PHP:
  function onStartup()
        db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
        db.executeQuery("UPDATE players SET posx = 32369, posy = 32241, posz = 7;")
		return TRUE
end
in globalevents.xml put this line
PHP:
	<globalevent name="serverstart" type="start" event="script" value="start.lua"/>
 
Ok guys, can someone makie it moving each char to his temple, not all to the same? ;d
 
Back
Top