Thread: server dcs every 5 mins and i get this error?

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 server dcs every 5 mins and i get this error? 
    Registered Member
    Join Date
    Jan 2011
    Posts
    56
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    Code:
    [7/25/11 12:21 PM]: java.lang.NullPointerException
    [7/25/11 12:21 PM]:     at server.model.npcs.NPCHandler.loadSpell(NPCHandler.jav
    a:3315)
    [7/25/11 12:21 PM]:     at server.model.npcs.NPCHandler.attackPlayer(NPCHandler.
    java:3597)
    [7/25/11 12:21 PM]:     at server.model.npcs.NPCHandler.process(NPCHandler.java:
    2056)
    [7/25/11 12:21 PM]:     at server.Server.main(Server.java:170)
    [7/25/11 12:21 PM]: A fatal exception has been thrown!
    i get that error after about 5 mins of server uptime then it just dc's and idk what to do to stop it.. compiler is fine etc any help?
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Lolz, this happened to me to. It's your Jad.
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2011
    Posts
    56
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    how do i fix it? LOLZ. just remove him or somthing?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Mar 2011
    Posts
    521
    Thanks given
    2
    Thanks received
    30
    Rep Power
    0
    Remove jad, unless you know a permanent fix.
    Reply With Quote  
     

  5. #5  
    Generation-X

    Bilsma's Avatar
    Join Date
    Feb 2011
    Posts
    691
    Thanks given
    657
    Thanks received
    45
    Rep Power
    82
    Place this

    public static void enterFightCaves() {
    c.getPA().movePlayer(2413, 5117, c.playerId * 4);
    }

    public static void exitFightCaves() {
    c.getPA().movePlayer(2438, 5168, 0);
    }

    private boolean waveCountStarted = false;
    public void startFightCaves() {
    if (!waveCountStarted) {
    waveCountStarted = true;
    Server.getTaskScheduler().schedule(new Task(1, true) {
    int count = 0, timeUntilRound = 10;
    @Override
    protected void execute() {
    count++;
    c.getPA().walkableInterface(4535);
    c.getPA().sendFrame126("" + timeUntilRound, 4536);
    if (count == 2) {
    timeUntilRound--;
    count = 0;
    }
    if (timeUntilRound == 0) {
    Server.npcHandler.spawnNpc(c, 2745, 2402, 5088, c.playerId * 4, 0, 15, 90, 6000, 300, true, false);
    stop();
    waveCountStarted = false;
    }
    }
    });
    }
    }

    public static boolean isInFightCaves() {
    if(c.absX > 2358 && c.absX < 2433 && c.absY > 5042 && c.absY < 5121) {
    return true;
    }
    return false;
    }

    public static void sendFightCaveRespawn() {
    c.getPA().movePlayer(2438, 5168, 0);
    }

    public static void giveFightCaveRewards() {
    sendFightCaveRespawn();
    c.getItems().addItem(6570, 1);
    c.sendMessage("Congratulations on conquering the Fight Caves! Enjoy your Fire Cape!");
    c.getCombat().resetPrayers();
    for (int i = 0; i < 20; i++) {
    c.playerLevel[i] = c.getPA().getLevelForXP(c.playerXP[i]);
    c.getPA().refreshSkill(i);
    }
    }
    Reply With Quote  
     

  6. #6  
    Registered Member Justpking's Avatar
    Join Date
    Dec 2010
    Age
    29
    Posts
    131
    Thanks given
    10
    Thanks received
    15
    Rep Power
    3
    Yeah like the posts say above, it definitely IS your Jad NPC. If i were you, just remove its entry, unless you are planning on using jad for something significant
    Reply With Quote  
     

  7. #7  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    You don't need to remove jad >.>

    Just go to this line
    NPCHandler.jav
    a:3315)
    and either // it out or fix it up
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jun 2011
    Posts
    13
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Bump. I need help with this as well and not really understanding the above. Replacing my fight caves with the code above did not work.
    Reply With Quote  
     

  9. #9  
    Registered Member Pakku's Avatar
    Join Date
    Mar 2010
    Posts
    1,234
    Thanks given
    127
    Thanks received
    111
    Rep Power
    47
    Quote Originally Posted by RuneskyYoyoyo3 View Post
    Bump. I need help with this as well and not really understanding the above. Replacing my fight caves with the code above did not work.
    Post the line that harlan said.


    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jun 2011
    Posts
    13
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Pakku View Post
    Post the line that harlan said.

    .. Can you tell me where?
    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. Replies: 16
    Last Post: 04-14-2011, 12:55 AM
  2. connecting after 5 mins
    By brentjuu in forum Help
    Replies: 4
    Last Post: 05-07-2010, 07:08 PM
  3. Replies: 13
    Last Post: 08-07-2008, 03:58 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •