;'Pwn Stick' weapon unequip script

stats=GetUserStrength(#USERID)+GetUserWisdom(#USERID)+GetUserEndurance(#USERID)+GetUserAgility(#USERID)
stats=Floor(stats/4)

If stats > 49
	SetUserStrengthBonus(#USERID,GetUserStrengthBonus(#USERID)-35)
	SetUserEnduranceBonus(#USERID,GetUserEnduranceBonus(#USERID)-35)
	SetUserWisdomBonus(#USERID,GetUserWisdomBonus(#USERID)-35)
	SetUserAgilityBonus(#USERID,GetUserAgilityBonus(#USERID)-35)
EndIf

;Remove from the map, if the unequip was by death
RemoveItem(#MAPID, 229)


Continue = 1