コード例 #1
0
        public void dragonBattleaxe()
        {
            if (p.getEquipment().getItemInSlot(ItemData.EQUIP.WEAPON) != 1377)
            {
                return;
            }
            int neededPower = getRequiredAmount(p.getEquipment().getItemInSlot(ItemData.EQUIP.WEAPON));

            if (neededPower > specialAmount)
            {
                p.getPackets().sendMessage("You don't have enough special power left.");
                usingSpecial = false;
                refreshBar();
                return;
            }
            specialAmount -= neededPower;
            p.setSpecialAmount(specialAmount);
            usingSpecial = false;
            refreshBar();
            p.setLastAnimation(new Animation(1056));
            p.setLastGraphics(new Graphics(246));
            p.setForceText("Raarrrrrgggggghhhhhhh!");
            Consumables.statBoost(p, Skills.SKILL.STRENGTH, 0.2, 0, false);

            p.getPackets().sendSkillLevel(Skills.SKILL.STRENGTH);
        }