Repository reorganisation
Unified kotlin and java into just src/main Unified the rs09 and core packages Took all content out of the core package, and placed it into the new content package Reorganised all source code relating to content to be easier to find and explore
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package content.global.skill.magic.modern;
|
||||
|
||||
import core.game.component.Component;
|
||||
import core.game.node.Node;
|
||||
import core.game.node.entity.Entity;
|
||||
import core.game.node.entity.combat.spell.SpellType;
|
||||
import core.game.node.entity.combat.spell.MagicSpell;
|
||||
import core.game.node.entity.player.Player;
|
||||
import core.game.node.entity.player.link.SpellBookManager.SpellBook;
|
||||
import core.plugin.Initializable;
|
||||
import core.plugin.Plugin;
|
||||
|
||||
/**
|
||||
* Represents the enchant crossbow spell.
|
||||
* @author 'Vexia.
|
||||
* @version 1.0
|
||||
*/
|
||||
@Initializable
|
||||
public final class EnchantCrossbowSpell extends MagicSpell {
|
||||
|
||||
/**
|
||||
* Constructs a new {@code EnchantCrossbowSpell} {@code Object}.
|
||||
*/
|
||||
public EnchantCrossbowSpell() {
|
||||
super(SpellBook.MODERN, 4, 0, null, null, null, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Plugin<SpellType> newInstance(SpellType arg) throws Throwable {
|
||||
SpellBook.MODERN.register(3, this);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean cast(Entity entity, Node target) {
|
||||
final Player player = ((Player) entity);
|
||||
player.getInterfaceManager().open(new Component(432));
|
||||
int[][] data = new int[][] { { 17, 879 }, { 21, 9335 }, { 25, 880 }, { 28, 9336 }, { 31, 9337 }, { 34, 9338 }, { 37, 9339 }, { 40, 9340 }, { 43, 9341 }, { 46, 9342 } };
|
||||
for (int i = 0; i < data.length; i++) {
|
||||
player.getPacketDispatch().sendItemZoomOnInterface(data[i][1], 10, 270, 432, data[i][0]);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user