under
add thisCode:public static void handleItemOption1(Player player, final int slotId,
Code:if (itemId == 6) { player.getDwarfCannon().cannonSetup(); return; } if (HerbClean
|
hello! Just added http://www.rune-server.org/runescape...rf-cannon.html
no errors everything fine.. When i try to place cannon base it doesnt do anything..? what i did wrong? im new with 718.
under
add thisCode:public static void handleItemOption1(Player player, final int slotId,
Code:if (itemId == 6) { player.getDwarfCannon().cannonSetup(); return; } if (HerbClean
[QUOTE=Storm Powner;3937748]under
add thisCode:public static void handleItemOption1(Player player, final int slotId,
Got nullpointer after adding itCode:if (itemId == 6) { player.getDwarfCannon().cannonSetup(); return; }
Code:ERROR! THREAD NAME: New I/O server worker #1-1 java.lang.NullPointerException at com.rs.net.decoders.handlers.InventoryOptionsHandler.handleItemOption 1(InventoryOptionsHandler.java:152) at com.rs.net.decoders.handlers.ButtonHandler.handleButtons(ButtonHandle r.java:1161) at com.rs.net.decoders.WorldPacketsDecoder.processPackets(WorldPacketsDe coder.java:1282) at com.rs.net.decoders.WorldPacketsDecoder.decode(WorldPacketsDecoder.ja va:280) at com.rs.net.ServerChannelHandler.messageReceived(ServerChannelHandler. java:98) at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleCha nnelHandler.java:100) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh annelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh annelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:27 4) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:26 1) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:351) at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioW orker.java:282) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:202) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnabl e.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProof Worker.java:44) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
bump
find
add thisCode:public static void handleItemOption1(Player player, final int slotId,
like underCode:if (itemId == 6) { player.getDwarfCannon().cannonSetup(); return; }
Code:if (itemId == 952) {// spade dig(player); return; }
InventoryOptionsHandler.java
In Player.java addCode:else if (itemId == 6) player.getDwarfCannon().cannonSetup();
Code:import com.rs.game.player.content.DwarfCannon;Code:private transient DwarfCannon dwarfCannon;Code:dwarfCannon = new DwarfCannon(this);Now since you can't get that part by yourselves I'm guessing you also didn't add the loading/firing/pickup because he didn't release that.Code:public DwarfCannon getDwarfCannon() { return dwarfCannon; }
Add this in objecthandler.java
In ObjectHandler.java
Code://cannon firing/rotating else if (id == 6) { player.getDwarfCannon().preRotationSetup(object); player.getDwarfCannon().fireDwarfCannon(object); }Code:case "dwarf multicannon": if (player.getDwarfCannon().hasCannon()) player.getDwarfCannon().pickUpDwarfCannon(0, player.getDwarfCannon().getObject()); break;Code://cannon loading } else if (object.getId() == 6) { if (player.getInventory().containsOneItem(2)) { player.getDwarfCannon().loadDwarfCannon(object); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |