Shawak
Intermediate OT User
Version:
TFS 0.3.5
I think everyone who use account manager knows it, if you change the map, you have to go to the databse and change the account manager's position, it nerves <_<.
To disable this, goto data/globalevents/start.lua and delete all in it.
Then paste this:
At now, you don't have to go to the database to change the position, it will take the position fom config.lua:
I hope you like it ^_^.
Regards,
Shawak
TFS 0.3.5
I think everyone who use account manager knows it, if you change the map, you have to go to the databse and change the account manager's position, it nerves <_<.
To disable this, goto data/globalevents/start.lua and delete all in it.
Then paste this:
Lua:
function onStartup()
db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
db.executeQuery("UPDATE `players` SET `posx` = "..getConfigValue('newPlayerSpawnPosX')..", `posy` = "..getConfigValue('newPlayerSpawnPosY')..", `posz` = "..getConfigValue('newPlayerSpawnPosZ').." WHERE `name` = 'Account Manager';")
return TRUE
end
Lua:
newPlayerSpawnPosX = 1016
newPlayerSpawnPosY = 1028
newPlayerSpawnPosZ = 6
I hope you like it ^_^.
Regards,
Shawak
Last edited: