Thanks, Although you're just encouraging ruse even more.
|
This tutorial is to stop this from happening:
Anyways, CombatSpecial.java
aboveaddCode:} final CombatSpecial spec = player.getCombatSpecial(); boolean instantSpecial = spec == CombatSpecial.GRANITE_MAUL || spec == CombatSpecial.DRAGON_BATTLEAXE || spec == CombatSpecial.STAFF_OF_LIGHT; if (spec == CombatSpecial.STAFF_OF_LIGHT && player.hasStaffOfLightEffect()) { player.getPacketSender().sendMessage("You are already being protected by the Staff of Light!"); return; }Probably a better way to do this, but i DON'T CARE.Code:if(player.isAutocast()){ player.setAutocast(false); player.getPacketSender().sendMessage("Gay shit detected."); return; }}
find
above it, add the code referred to above this ^Code:CombatSpecial.activate(player);
Thanks, Although you're just encouraging ruse even more.
The way i fixed this was in CombatFactory.java
Above
Add thisCode:double attackCalc = Math.floor(equipmentBonus + attacker.getBaseAttack(type)) + 8;
Code:/* * Fixed By SimplyNextGen */ if (player.isSpecialActivated()) { player.getPacketSender().sendAutocastId(-1); player.setAutocast(false); player.setAutocastSpell(null); player.setCastSpell(null); player.getPacketSender().sendConfig(108, 3); specialBonus = player.getCombatSpecial().getAccuracyBonus(); } }
bad fix, do it like this instead:
http://www.rune-server.org/runescape...bug-fixes.html
with my fix, the character will properly run up to the target and spec them
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |