In WearItem, just make it switch to attackStyle = 0; which would switch it to the first attack, which should be bash or something like that.
Not sure if that's what your question was, but hope this helps.
|
Hey Rune-server I have a problem with my server. the problem is when I switch from a weapon to a staff like chaotic or staff of light it keeps attacking with melee. does anyone know how to reset the attack on equipping a staff?
Thanks if anyone would know this.
and a happy new year to the whole rune-server community
In WearItem, just make it switch to attackStyle = 0; which would switch it to the first attack, which should be bash or something like that.
Not sure if that's what your question was, but hope this helps.
public boolean wearItem(int wearID) { in itemassistant.java somewhere along the lines add c.getCombat().resetPlayerAttack();
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |