[FUNCTION F_RAMPAGE_PET_AI]
REF1=<UID>
FORCHARS 16
	IF (!(<ISPLAYER>)) && (<UID> != <REF1>)
		IF (!(<OWNER.ISPLAYER>)) && (<CANSEELOS <REF1>>)
		REF1.ATTACK <UID>
		RETURN 1
		ENDIF
	ENDIF
ENDFOR

[ITEMDEF i_pet_rampage]
ID=i_memory
TYPE=T_EQ_SCRIPT
NAME=Rampage Pet

ON=@Timer
CONT.FLAGS |= <DEF.STATF_WAR>
CONT.F_RAMPAGE_PET_AI
TIMER=2
RETURN 1

[FUNCTION F_BERSERKER_LOOKFORTARGET]
FLAGS |= <DEF.STATF_WAR>
TIMERF 2,F_BERSERKER_LOOKFORTARGET
REF1=<UID>
FORCHARS 16
	IF (!(<ISPLAYER>)) && (<UID> != <REF1>)
		IF (!(<OWNER.ISPLAYER>)) && (<CANSEELOS <REF1>>)
		REF1.ATTACK <UID>
		RETURN 1
		ENDIF
	ENDIF
ENDFOR

[EOF]