All pastes #28010 Raw Edit

Someone

public text v1 · immutable
#28010 ·published 2005-11-08 17:57 UTC
rendered paste body
// Get the equipped weapon's ID as defined in weapon.sql
L2ItemInstance equippedWeapon = player.getActiveWeaponItem();
        if (equippedWeapon != null) 
        {
            int itemId = equippedWeapon.getItemId();
		//Stormbringer Critical Anger
		//Decrease player HP by 12 & increase patk by 248 during critical attack
		if (itemId == 4681)
		    {
			boolean crit = false;
		  	crit = Formulas.getInstance().calcCrit(getCriticalHit(target, null));
			if (crit==true)
			    {
				int curHP = player.getCurrentHp()
				curHP = (curHP-12)
				int patk = getPAtk()
				patk = (patk+248)
			    }
		    }
        }