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]