Thread: [pi] help!!

Results 1 to 9 of 9
  1. #1 [pi] help!! 
    Banned

    Join Date
    Oct 2010
    Posts
    1,309
    Thanks given
    63
    Thanks received
    257
    Rep Power
    0
    hey guys, i added a dungeoneering minigame to my server and then i thought that i should make it a skill and also add a dungeoneering point shop, so i dne all that and it worked out fine but, then the server started shuting down by itself, then i looked at what was causing this and i noticed that it was the dungeoneering minigame, this is the code i added under getdeademote method so that it gives you the points:

    Code:
    /*dungeoneering*/
    			case 10115:
    			c.getPA().startTeleport(2874, 3758, 0, "modern");
    			c.getPA().addSkillXP(5000, 23);
    			c.DNGpoints += 5;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			return 13171;
    			case 9879:
    			c.getPA().addSkillXP(1000, 23);
    			c.DNGpoints += 3;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			return 13481;
    			case 10167:
    			c.getPA().addSkillXP(2000, 23);
    			c.DNGpoints += 4;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			return 5329;
    			case 10052:
    			c.getPA().startTeleport(2646, 9553, 0, "modern");
    			c.getPA().addSkillXP(7500, 23);
    			c.DNGpoints += 8;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			return 10815;
    			case 10765:
    			c.getPA().addSkillXP(3200, 23);
    			c.DNGpoints += 4;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			return 4673;
    			case 9752:
    			c.getPA().startTeleport(2564, 4936, 0, "modern");
    			c.DNGpoints += 14;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			c.getPA().addSkillXP(15000, 23);
    			return 13424;
    			case 10193:
    			c.getPA().addSkillXP(4000, 23);
    			c.DNGpoints += 10;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			return 6564;
    			case 10479:
    			c.getPA().addSkillXP(5500, 23);
    			c.DNGpoints += 10;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			return 5503;
    			case 10070:
    			c.getPA().startTeleport(3180, 9758, 0, "modern");
    			c.DNGpoints += 17;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			c.getPA().addSkillXP(25000, 23);
    			return 12987;
    			case 10720:
    			case 10721:
    			c.getPA().addSkillXP(20000, 23);
    			c.DNGpoints += 15;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			return 67;
    			case 10141:
    			c.getPA().startTeleport(3504, 3571, 0, "modern");
    			c.getPA().addSkillXP(60000, 23);
    			c.DNGpoints += 20;
    			c.sendMessage("You now have <col=22015>"+c.DNGpoints+"</col> Dungeoneering points.");
    			c.getItems().addItem(18688,1);
    			return 13602;
    			/*end of dungeoneering*/
    i really need to fix this problem, please tell me how i can.

    MSN: [email protected]
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Oct 2011
    Posts
    47
    Thanks given
    0
    Thanks received
    8
    Rep Power
    0
    is it under the player getdeademote or npc method?
    Also you're Switch loop isn't displayed (switch -shitgoeshere-) {
    Reply With Quote  
     

  3. #3  
    Registered Member
    CTucker's Avatar
    Join Date
    Oct 2008
    Posts
    2,422
    Thanks given
    263
    Thanks received
    281
    Rep Power
    343
    Nothing displayed will cause the server to shut down.
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2010
    Posts
    1,309
    Thanks given
    63
    Thanks received
    257
    Rep Power
    0
    well its under the deademote method, straight under this:

    Code:
    public int getDeadEmote(int i) {
    		Client c = (Client)Server.playerHandler.players[npcs[i].killedBy];
    		switch(npcs[i].npcType) {
    and after the server gets shutdown it gives me the line where the error is occuring which is this:

    Code:
    npcs[i].animNumber = getDeadEmote(i); // dead emote
    it also happens at randopm times, and its for some reason any monster in dungeoneering
    Reply With Quote  
     

  5. #5  
    -- Client Developer -- Insane's Avatar
    Join Date
    Aug 2010
    Posts
    299
    Thanks given
    2
    Thanks received
    33
    Rep Power
    56
    be more specific supply us with an exception when the server shuts down otherwise we cant help without any info.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Oct 2010
    Posts
    1,309
    Thanks given
    63
    Thanks received
    257
    Rep Power
    0
    well this is the error:

    Code:
    [5/10/11 1:31 PM]: [player-1]: Invalid waypoint in walking queue!
    [5/10/11 1:31 PM]: java.lang.NullPointerException
    [5/10/11 1:31 PM]:      at server.model.npcs.NPCHandler.getDeadEmote(NPCHandler.
    java:1419)
    [5/10/11 1:31 PM]:      at server.model.npcs.NPCHandler.process(NPCHandler.java:
    2065)
    [5/10/11 1:31 PM]:      at server.Server.main(Server.java:154)
    [5/10/11 1:31 PM]: A fatal exception has been thrown!
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Oct 2010
    Posts
    1,309
    Thanks given
    63
    Thanks received
    257
    Rep Power
    0
    bump
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Oct 2010
    Posts
    1,309
    Thanks given
    63
    Thanks received
    257
    Rep Power
    0
    bumppp
    Reply With Quote  
     

  9. #9  
    Registered Member Richie's Avatar
    Join Date
    Sep 2009
    Age
    28
    Posts
    791
    Thanks given
    81
    Thanks received
    18
    Rep Power
    6
    Lol thats a easy fix ill talk to ya on msn.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •