Example,
addhook("second","_second")
function _second(id)
parse ("spawnnpc "..type.." "..x.." "..y) -- no have hp npc '-'
end
spawn npc solied 1000 HP .
plz help '-'
sorry me inglish.
addhook("damageobject","_damageobject") function _damageobject(id,dmg,pl) 	if object(id,"type") == 30 then 		if object(id,"player") == 1 then 			..ZzZzZz 		end 	end end
addhook("objectdamage","_objectdamage") function _objectdamage(id_o,dmg,id_pl) 	if id_o > 0 then 		if object(id_o,"type") == 30 then 			if object(id_o,"player") == 1 then	 			parse("damageobject "..id_o.." 1 "..id_pl) 			return 1 			end 		end 	end end