Add this in your Frames.java:
Code:
/**
* Creates a Global Projectiles.
* @param Objectid The Id of the Object to spawn.
* @param Heigh The Height to spawn the Object on.
* @param ObjectX The AbsX to spawn the Object on.
* @param ObjectY The AbsY to spawn the Object on.
* @param Face The Position for the OBject to face
* @param Type Object Type
* */
public void createGlobalProjectile(int casterY, int casterX, int offsetY, int offsetX, int gfxMoving, int startHeight, int endHeight, int speed, int atkIndex) {
for (Player p : Engine.players) {
if (p == null || p.disconnected[0]) {
continue;
}
// createProjectile(p, casterY, casterX, offsetY, offsetX, angle, speed, gfxMoving, startHeight, endHeight, lockon)
p.frames.createProjectile(p, casterY, casterX, offsetY, offsetX, 50,
speed, gfxMoving, startHeight, endHeight, atkIndex);
}
}