Files
src-1.2/game/server/database/queries/wipe_npcs_no_objvar.sql
T
2014-01-17 07:03:16 -07:00

8 lines
359 B
SQL

update objects
set deleted = 1, deleted_date = sysdate, load_with = null
where player_controlled = 'N'
and deleted = 0
and exists (select 1 from creature_objects c where c.object_id = objects.object_id)
and not exists (select 1 from scripts s where s.object_id = objects.object_id and s.script='terminal.vendor')
and script_list not like '%terminal.vendor%';