(Gonna use it so when you kill all enemys, they all respawn)
edited 1×, last 24.08.11 09:25:07 pm
addhook("always","_always") npcs=false function _always() 	npcs=false 	for _,id in ipairs(object(0,"table")) do 		if object(id,"type")==30 then 			npcs=true 		end 	end 	if npcs==false then 		msg("no enemies") 	else 		msg("there are enemies") 	end end