Unremoveable items on save/clean

hucke.ducke

Tibia the real rpg. <3
Premium User
Joined
Jul 28, 2019
Messages
6
Best answers
0
Reaction score
0
Location
Chile
Hello guys !!

Im just working in a server with some friends just for fun and i was wondering if there is anyway to make some or all items to be unremoveable in the server save/restart or in the clean server. So players can create builds or things like that without loosing them. I know about the lag problems this can cause but i doesn't matter we just want to do it for a local game.

Thanks
 

Il Knight

Intermediate OT User
Joined
Dec 1, 2014
Messages
577
Best answers
6
Reaction score
277
Location
Spain
if you close/restart the server.exe all gone.
if your goal is editing the map with your friends online, then no.
and if its only for fun you can make a script to save everything on the map created before close the server, and then load id on startup. but maybe its gonna be laggy or even chashy.
 

Tobben321

Excellent OT User
Joined
Mar 1, 2009
Messages
166
Best answers
13
Reaction score
68
Location
Norway
It would require some source edits, but its entirely possible.
Take a look at this. I think it works with 0.4.

Or check out this thread
 
OP
hucke.ducke

hucke.ducke

Tibia the real rpg. <3
Premium User
Joined
Jul 28, 2019
Messages
6
Best answers
0
Reaction score
0
Location
Chile
Thanks guys, im looking into the sources files. What if i remove the clean function in game.cpp when server shutdowns? Im using TFS 1.2 by the way. And i dont have auto clean or auto save, so i will try that.
 

Il Knight

Intermediate OT User
Joined
Dec 1, 2014
Messages
577
Best answers
6
Reaction score
277
Location
Spain
when the server shutdown all its gone bro.
you can remove the clean function but still the same.
source edit. or script using the database.
 
Top