;'Boot stat bonus' - item equip script

If HasItem(#USERID,#TARGETID) = 1
	AgilityPlus = GetItemFlag4(#TARGETID)
	
	SetUserAgilityBonus(#USERID,GetUserAgilityBonus(#USERID)+AgilityPlus)
	
	If AgilityPlus <> 0
		If AgilityPlus > 0
			SendCombatMessage(#USERID,"Your agility was increased by "+AgilityPlus+" ")
		Else
			SendCombatMessage(#USERID,"Your agility was decreased by "+Floor(0-AgilityPlus)+" ")
		EndIf
	EndIf
EndIf

Label END

Continue = 1