any one know why it sightly goes high ?
EDIT: forgot .gif loollo
Code:
public void createboltProjectile(int casterY, int casterX, int offsetY,
int offsetX, int angle, int speed, int gfxMoving, int startHeight,
int endHeight, int MageAttackIndex) {
try {
outStream.createFrame(85);
outStream.writeByteC((casterY - (mapRegionY * 8)) - 2);
outStream.writeByteC((casterX - (mapRegionX * 8)) - 3);
outStream.createFrame(117);
outStream.writeByte(angle); // Starting place of the projectile
outStream.writeByte(offsetY); // Distance between caster and enemy
// Y
outStream.writeByte(offsetX); // Distance between caster and enemy
// X
outStream.writeWord(MageAttackIndex); // The NPC the missle is
// locked on to
outStream.writeWord(gfxMoving); // The moving graphic ID
outStream.writeByte(startHeight); // The starting height
outStream.writeByte(endHeight); // Destination height
outStream.writeWord(51); // Time the missle is created
outStream.writeWord(speed); // Speed minus the distance making it
// set
outStream.writeByte(4); // Initial slope
outStream.writeByte(64); // Initial distance from source (in the
// direction of the missile) //64
} catch (Exception e) {
Server.logError(e.getMessage());
}
}
Code:
createboltProjectile(absY, absX, offsetY, offsetX, 50, speed, arrow, 43,
31, attacknpc + 1);