Making permanent Tents

J3T

Valued Member!
Hey there,
just wanted to know if there is a way to making Tents permanent.
Our problem is that everytime someone set a tent and die the tent despawn after a few days. Do anyone know how to fix this issue?

sincerly J3T
 
maybe there is a way...
some guy fixed the issue with the basebuilding and the keypanels and removal codes after death/respawn or server restart which didnt work anymore...
i already asked him about this one... lets see what he answers...

otherwise... it dont despawns if its accessed regularly
 
The problem is in your database cleanup tool.
Code:
if ($cleanup eq 'tents' || $cleanup eq 'all') {
    print "INFO: Cleaning up tents with dead owners older than 10 days\n";
    $sth = $dbh->prepare(<<EndSQL
delete from
  id using instance_deployable id
  inner join deployable d on id.deployable_id = d.id
  inner join survivor s on id.owner_id = s.id and s.is_dead = 1
where
  d.class_name = 'TentStorage'
  and id.last_updated < now() - interval 10 day
EndSQL
) or die "FATAL: SQL Error - " . DBI->errstr . "\n";
    $sth->execute() or die "FATAL: Could not clean up orphaned tents - " . $sth->errstr . "\n";
    if ($cleanup eq 'tents')
    { goto END;}
}


this is what it should look like in db_spawn_vehicles.pl
This checks to see if the owner is dead. Then checks to see if it has been updated in the last 10 days.
 
ok but this is not exactly what we are talking about...
you can sleep in your own tent and you can pack your own tent...
but if you die and respawn you cant anymore...
because the tents ownership is tied to the life instead of the player...
 
Back
Top