Thread: Botany bay [718]

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 Botany bay [718] 
    Lambda

    Join Date
    Aug 2012
    Posts
    109
    Thanks given
    20
    Thanks received
    9
    Rep Power
    11
    Hello,

    So I leeched a botany bay, and well, the only problem I get is when I try to actually ban the "bot" or me in this case.

    I use the command

    Code:
    			case "botban":
    				name = "";
    				for (int i = 1; i < cmd.length; i++)
    					name += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
    				target = World.getPlayerByDisplayName(name);
    				if (target == null) {
    					player.getPackets().sendGameMessage(
    							Utils.formatPlayerNameForDisplay(name)+" is not logged in.");
    					return true;
    				}
    				World.getBotanyBay().trialBot(target, 1);
    				player.getPackets().sendGameMessage("You have bot-banned: "+target.getDisplayName()+".");
    				return true;
    And this is the "trialBot" method:

    Code:
    	public void trialBot(final Player bot, int daysBanned) {
    		if (trialTime > 0) {// trial already in progress
    			sendCrush(bot, daysBanned);
    			return;
    		}
    		if (bot.hasFinished() || bot == null) {
    			restart(false);
    			return;
    		}
    		announceEvent();
    		setUpConfigurations(bot);
    		sendBan(daysBanned, bot);
    		if (bots.contains(bot)) {
    			bots.remove(bot);
    		}
    So basicly, the actual sequence
    won't start, it simply tells me that this:
    Code:
    World.getBotanyBay().trialBot(target, 1);
    Code:
    at com.rs.game.player.content.Commands.processModCommand(Commands.java:2238)
    Particular code is giving me errors. And my initial thought was that the previous owner removed a method so that it doesn't work. Although i don't seem to find anything wrong with the actual code.

    Would be nice with some clearity

    OBS: Eclipse shows no errors in the code and nothing is stopping me from starting the server/client. I'm also able to do everything except that command.
    Attached image
    Reply With Quote  
     

  2. #2  
    Community Veteran

    Songoty's Avatar
    Join Date
    Dec 2007
    Posts
    2,740
    Thanks given
    211
    Thanks received
    1,034
    Rep Power
    2455


    Botany Bay? Oh no

    What error is it giving? could you post the stack trace
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Lambda

    Join Date
    Aug 2012
    Posts
    109
    Thanks given
    20
    Thanks received
    9
    Rep Power
    11
    Quote Originally Posted by Songoty View Post

    Botany Bay? Oh no

    What error is it giving? could you post the stack trace
    Do you mean this?

    Code:
    ERROR! THREAD NAME: New I/O  worker #2
    java.lang.NullPointerException
    	at com.rs.game.player.content.Commands.processModCommand(Commands.java:2238)
    	at com.rs.game.player.content.Commands.processCommand(Commands.java:84)
    	at com.rs.net.decoders.WorldPacketsDecoder.processPackets(WorldPacketsDecoder.java:1558)
    	at com.rs.net.decoders.WorldPacketsDecoder.decode(WorldPacketsDecoder.java:270)
    	at com.rs.net.ServerChannelHandler.messageReceived(ServerChannelHandler.java:98)
    	at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:95)
    	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:563)
    	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558)
    	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
    	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
    	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:91)
    	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:373)
    	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:247)
    	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
    	at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
    	at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Attached image
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    May 2012
    Posts
    989
    Thanks given
    19
    Thanks received
    28
    Rep Power
    0
    give us line 2238 in your commands.java
    Attached image
    Reply With Quote  
     

  6. #5  
    Lambda

    Join Date
    Aug 2012
    Posts
    109
    Thanks given
    20
    Thanks received
    9
    Rep Power
    11
    Quote Originally Posted by oblivion718 View Post
    give us line 2238 in your commands.java
    I have.

    Code:
    World.getBotanyBay().trialBot(target, 1);
    Attached image
    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    May 2012
    Posts
    989
    Thanks given
    19
    Thanks received
    28
    Rep Power
    0
    target could be null could be something to do with the code of trialbot or something to do with the getbotanybay code or there both not finished.
    Attached image
    Reply With Quote  
     

  8. #7  
    Lambda

    Join Date
    Aug 2012
    Posts
    109
    Thanks given
    20
    Thanks received
    9
    Rep Power
    11
    Quote Originally Posted by oblivion718 View Post
    target could be null could be something to do with the code of trialbot or something to do with the getbotanybay code or there both not finished.
    Thanks for the reply, but as i said, there's nothing wrong with the different codes, unless the previous owner changed something crucial or if i'm missing something :/
    Attached image
    Reply With Quote  
     

  9. #8  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,788
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    What's the getBotanyBay() method in World.java?
    Project thread
    Reply With Quote  
     

  10. #9  
    Lambda

    Join Date
    Aug 2012
    Posts
    109
    Thanks given
    20
    Thanks received
    9
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    What's the getBotanyBay() method in World.java?
    Code:
    private static BotanyBay botanyBay;
    	
    public static BotanyBay getBotanyBay() {
    		return botanyBay;
    	}
    The highlighted code brings me back to the original BotanyBay class.
    Attached image
    Reply With Quote  
     

  11. #10  
    Extreme Donator


    Join Date
    Mar 2009
    Posts
    1,461
    Thanks given
    111
    Thanks received
    184
    Rep Power
    79
    Quote Originally Posted by JesterHat View Post
    Code:
    private static BotanyBay botanyBay;
    	
    public static BotanyBay getBotanyBay() {
    		return botanyBay;
    	}
    The highlighted code brings me back to the original BotanyBay class.
    Then post the BotanyBay class.
    Attached image
    Quote Originally Posted by MaxXi View Post
    Your combat is so awsome that i almost forgot its the combat matrix coded.
    Quote Originally Posted by twobrosplay View Post
    Try allowing the batch file through your firewall?
    Quote Originally Posted by SS_Alophonse View Post
    i have no life u say ha anything u say kid.i doubt u can even get a girlfriend
    i bet u cant even code anything.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 718/735 Botany Bay Things
    By Chaz in forum Configuration
    Replies: 7
    Last Post: 02-27-2014, 07:48 PM
  2. Botany Bay
    By macalroy in forum Configuration
    Replies: 23
    Last Post: 11-24-2012, 10:13 PM
  3. Botany bay things
    By Mr Sandman in forum Requests
    Replies: 0
    Last Post: 10-14-2012, 06:17 PM
  4. botany bay coords
    By oblivion742 in forum Configuration
    Replies: 19
    Last Post: 10-09-2012, 09:50 PM
  5. Botany-Bay
    By Ahrim in forum Media
    Replies: 36
    Last Post: 10-01-2012, 06:03 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •