If GetUserMap(#PARAM1)<>#PARAM2
	DamageMonster(#PARAM2,8,8000)
	DamageMonster(#PARAM2,9,8000)
	DamageMonster(#PARAM2,10,8000)
	DamageMonster(#PARAM2,11,8000)
	DamageMonster(#PARAM2,12,8000)
	DamageMonster(#PARAM2,13,8000)
	DamageMonster(#PARAM2,14,8000)
	DamageMonster(#PARAM2,15,8000)
	SetUserSprite(GetUserID("Jason"),61)
	Goto End
Endif

If GetUserFlag(0,31)=0
	DamageMonster(#PARAM2,8,8000)
	DamageMonster(#PARAM2,9,8000)
	DamageMonster(#PARAM2,10,8000)
	DamageMonster(#PARAM2,11,8000)
	DamageMonster(#PARAM2,12,8000)
	DamageMonster(#PARAM2,13,8000)
	DamageMonster(#PARAM2,14,8000)
	DamageMonster(#PARAM2,15,8000)
	SetUserSprite(GetUserID("Jason"),61)
	Goto End
Endif

WarpUser(GetUserID("Jason"),#PARAM2,GetUserX(#PARAM1),GetUserY(#PARAM1))
	If GetMonsterAtXY(#PARAM2,GetUserX(#PARAM1),GetUserY(#PARAM1))>7
		Goto JasonAttack
	Elseif GetMonsterAtXY(#PARAM2,GetUserX(#PARAM1)-1,GetUserY(#PARAM1))>7
		Goto JasonAttack
	Elseif GetMonsterAtXY(#PARAM2,GetUserX(#PARAM1)+1,GetUserY(#PARAM1))>7
		Goto JasonAttack
	Elseif GetMonsterAtXY(#PARAM2,GetUserX(#PARAM1),GetUserY(#PARAM1)-1)>7
		Goto JasonAttack
	Elseif GetMonsterAtXY(#PARAM2,GetUserX(#PARAM1),GetUserY(#PARAM1)+1)>7
		Goto JasonAttack
	Else
		Goto IdleLoop
	Endif

Label IdleLoop
Timer5(604,0,Random(20,29),#PARAM1,#PARAM2,30,0)


SetMonsterTarget (#PARAM2,8,#PARAM1)
SetMonsterTarget (#PARAM2,9,#PARAM1)
SetMonsterTarget (#PARAM2,10,#PARAM1)
SetMonsterTarget (#PARAM2,11,#PARAM1)
SetMonsterTarget (#PARAM2,12,#PARAM1)
SetMonsterTarget (#PARAM2,13,#PARAM1)
SetMonsterTarget (#PARAM2,14,#PARAM1)
SetMonsterTarget (#PARAM2,15,#PARAM1)
Timer(603,1000,#PARAM1,#PARAM2,0)
Goto End

Label JasonAttack
JasonDamage=Random(1,50)
If GetUserHP(#PARAM1) < JasonDamage+1
	;SetUserHP(#PARAM1,GetUserMaxHP(#PARAM1))
	;WarpUser(#PARAM1,9,10,10)
	UserDamageUser(GetUserID("Jason"),JasonDamage,#PARAM1)
	Timer5(604,Random(5000,50000),Random(10,19),#PARAM1,#PARAM2,2,0)
Else
	DamageUser(#PARAM1,JasonDamage)
Endif
Goto IdleLoop



Label End

Continue = 1