Code:
public void levelup(int skill)
{
switch(skill)
{
case 0: // Attack levelup
sendFrame164(6247);
sendFrame126("Congratulations, you just advanced an attack level!", 6254);
sendFrame126("Your attack level is now "+playerLevel[0]+" .", 6255);
sendMessage("Congratulations, you just advanced an attack level.");
stillgfx(199, absY, absX);
if (playerLevel[0] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2678);
sendFrame126("Congratulations, you have reached 99 attack!", 6207);
sendFrame126("You are now Master of the Attacks!", 6208);
sendMessage("Congratulations, you just advanced an attack level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 attack!";
}
//NpcDialogueSend = true;
break;
case 1: // Strength
//sendFrame164(6206);
//sendFrame126("Congratulations, you just advanced a strength level!", 6207);
//sendFrame126("Your strength level is now "+playerLevel[2]+" .", 6208);
sendMessage("Congratulations, you just advanced a strength level.");
stillgfx(199, absY, absX);
if (playerLevel[1] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2681);
sendFrame126("Congratulations, you have reached 99 strength!", 6207);
sendFrame126("Grats! Steiroids boy! 99 str!", 6208);
sendMessage("Congratulations, you just advanced a strength level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 Strength!(his really on steiroids!)";
}
NpcDialogueSend = true;
break;
case 2: // Defence
//sendFrame164(6253);
//sendFrame126("Congratulations, you just advanced a defence level!", 6254);
//sendFrame126("Your defence level is now "+playerLevel[1]+" .", 6255);
sendMessage("Congratulations, you just advanced a defence level.");
stillgfx(199, absY, absX);
if (playerLevel[2] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2684);
sendFrame126("Congratulations, you have reached 99 defence!", 6207);
sendFrame126("You can finally defend yourself now!", 6208);
sendMessage("Congratulations, you just advanced a defence level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 Defence!";
}
NpcDialogueSend = true;
break;
case 3: //Hitpoints
sendFrame164(6216);
sendFrame126("Congratulations, you have just advanced hp lvl", 6217);
sendFrame126("Your hitpoints level is now "+playerLevel[3]+" .", 6218);
sendMessage("Congratulations, you just advanced a hitpoints level.");
stillgfx(199, absY, absX);
if (playerLevel[3] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2702);
sendFrame126("Congratulations, you have reached 99 hitpoints!", 6207);
sendFrame126("Congrats you nurse you!", 6208);
sendMessage("Congratulations, you just advanced a hitpoints level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 HitPoints!";
}
NpcDialogueSend = true;
break;
case 4: //Ranging
sendFrame164(4443);
sendFrame126("Congratulations, you've just advanced Range lvl!", 4444);
sendFrame126("Your ranged level is now "+playerLevel[4]+" .", 4445);
sendMessage("Congratulations, you just advanced a ranging level.");
stillgfx(199, absY, absX);
if (playerLevel[4] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2687);
sendFrame126("Congratulations, you have reached 99 range!", 6207);
sendFrame126("Go get yourself a range cape!", 6208);
sendMessage("Congratulations, you just advanced a range level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" Is the Next Robin hood with 99 ranged!";
}
NpcDialogueSend = true;
break;
case 5: // Prayer
sendFrame164(6242);
sendFrame126("Congratulations!", 6243);
sendFrame126("Your prayer level is now "+playerLevel[5]+" .", 6244);
sendMessage("Congratulations, you just advanced a prayer level.");
stillgfx(199, absY, absX);
if (playerLevel[5] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2690);
sendFrame126("Congratulations, you have reached 99 prayer!", 6207);
sendFrame126("You can now wear the prayer cape!", 6208);
sendMessage("Congratulations, you just advanced a prayer level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 Prayer!";
}
NpcDialogueSend = true;
break;
case 6: // Magic
sendFrame164(6211);
sendFrame126("Congratulations, you've just gotten better in mage!", 6212);
sendFrame126("Your magic level is now "+playerLevel[6]+" .", 6213);
sendMessage("Congratulations, you just advanced a magic level.");
stillgfx(199, absY, absX);
if (playerLevel[6] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2693);
sendFrame126("Congratulations, you have reached 99 magic!", 6207);
sendFrame126("You Have Finally Achieved 99 Magic!", 6208);
sendMessage("Congratulations, you just advanced a magic level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 Magic!";
}
//NpcDialogueSend = true;
break;
case 7: //Cooking
sendFrame164(6226);
sendFrame126("Congratulations, you are the cook!", 6227);
sendFrame126("Your cooking level is now "+playerLevel[7]+" .", 6228);
sendMessage("Congratulations, you just advanced a cooking level.");
stillgfx(199, absY, absX);
if (playerLevel[7] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2732);
sendFrame126("Congratulations, you have reached 99 cooking!", 6207);
sendFrame126("Go cook me a pancake!", 6208);
sendMessage("Congratulations, you just advanced a cooking level.");
stillgfx(199, absY, absX);
}
NpcDialogueSend = true;
break;
case 8: //Woodcutting
sendFrame164(4272);
sendFrame126("Congratulations!..!..!", 4273);
sendFrame126("Your woodcutting level is now "+playerLevel[8]+" .", 4274);
sendMessage("Congratulations, you just advanced a woodcutting level.");
stillgfx(199, absY, absX);
if (playerLevel[8] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2735);
sendFrame126("Congratulations, you have reached 99 woodcutting!", 6207);
sendFrame126("99 Wc not to bad", 6208);
sendMessage("Congratulations, you just advanced a woodcutting level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 WoodCutting";
}
//NpcDialogueSend = true;
break;
case 9: //fletcing
sendFrame164(6206);
sendFrame246(6210, 290, 853);
sendFrame126("Congratulations you advanced a fletching level!", 6207);
sendFrame126("Your fletching level is now "+playerLevel[9]+" .", 6208);
sendMessage("Congratulations, you just advanced a fletching level.");
stillgfx(199, absY, absX);
if (playerLevel[9] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2717);
sendFrame126("Congratulations, you have reached 99 fletching!", 6207);
sendFrame126("You can now wear the flething cape!", 6208);
sendMessage("Congratulations, you just advanced a fletching level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 fletching!";
}
NpcDialogueSend = true;
break;
case 10: //fishing
sendFrame164(6258);
sendFrame126("Congratulations, On fishing!", 6259);
sendFrame126("Your fishing level is now "+playerLevel[10]+" .", 6260);
sendMessage("Congratulations, you just advanced a fishing level.");
stillgfx(199, absY, absX);
if (playerLevel[10] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2729);
sendFrame126("Congratulations, you have reached 99 fishing!", 6207);
sendFrame126("You owe me Sea Turtle!", 6208);
sendMessage("Congratulations, you just advanced a fishing level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 Fishing!";
}
NpcDialogueSend = true;
break;
case 11: //firemaking
sendFrame164(4282);
sendFrame126("Congratulations, Rubbish..", 4283);
sendFrame126("Your firemaking level is now "+playerLevel[11]+" .", 4284);
sendMessage("Congratulations, you just advanced a fire making level.");
stillgfx(199, absY, absX);
if (playerLevel[11] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2696);
sendFrame126("Congratulations, you have reached 99 Firemaking!", 6207);
sendFrame126("This still means you can play with fire..", 6208);
sendMessage("Congratulations, you just advanced a Firemaking level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 Fire Making";
}
NpcDialogueSend = true;
break;
case 12: //crafting
sendFrame164(6263);
sendFrame126("Congratulations, you can craft god items now!", 6264);
sendFrame126("Your crafting level is now "+playerLevel[12]+" .", 6265);
sendMessage("Congratulations, you just advanced a crafting level.");
stillgfx(199, absY, absX);
if (playerLevel[12] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2714);
sendFrame126("Congratulations, you have reached 99 Crafting!", 6207);
sendFrame126("You can now craft anything you want!", 6208);
sendMessage("Congratulations, you just advanced a Crafting level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 Crafting";
}
NpcDialogueSend = true;
break;
case 13: //Smithing
sendFrame164(6221);
sendFrame126("Congratulations, you have just advanced smithing level!", 6222);
sendFrame126("Your smithing level is now "+playerLevel[13]+" .", 6223);
sendMessage("Congratulations, you just advanced a smithing level.");
stillgfx(199, absY, absX);
if (playerLevel[13] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2726);
sendFrame126("Congratulations, you have reached 99 smithing!", 6207);
sendFrame126("Go smith some rune armor!", 6208);
sendMessage("Congratulations, you just advanced a smithing level.");
stillgfx(199, absY, absX);
}
NpcDialogueSend = true;
break;
case 14: //Mining
sendFrame164(4416);
sendFrame126("Congratulations, you love mining dont u?", 4417);
sendFrame126("Your mining level is now "+playerLevel[14]+" .", 4418);
sendMessage("Congratulations, you just advanced a mining level.");
stillgfx(199, absY, absX);
if (playerLevel[14] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2723);
sendFrame126("Congratulations, you have reached 99 mining!", 6207);
sendFrame126("Hope you know how to use a skillcape", 6208);
sendMessage("Congratulations, you just advanced a mining level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 Mining!";
}
NpcDialogueSend = true;
break;
case 15: //herblore
sendFrame164(6206);
sendFrame246(6210, 290, 257);
sendFrame126("Congratulations you advanced a herblore level!", 6207);
sendFrame126("Your herblore level is now "+playerLevel[15]+" .", 6208);
sendMessage("Congratulations, you just advanced a herblore level.");
stillgfx(199, absY, absX);
if (playerLevel[15] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2708);
sendFrame126("Congratulations, you have reached 99 herblore!", 6207);
sendFrame126("You can now do... i dunno", 6208);
sendMessage("Congratulations, you just advanced a Theiving level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 herblore!";
}
NpcDialogueSend = true;
break;
case 16: //Agility
sendFrame164(4277);
sendFrame126("Congratulations, you just advanced a agility level!", 4278);
sendFrame126("Your agility level is now "+playerLevel[16]+" .", 4279);
sendMessage("Congratulations, you just advanced an agility level.");
stillgfx(199, absY, absX);
if (playerLevel[16] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2705);
sendFrame126("Congratulations, you have reached 99 agility!", 6207);
sendFrame126("Agility for the noobs! ;)", 6208);
sendMessage("Congratulations, you just advanced a agility level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 agility!";
}
NpcDialogueSend = true;
break;
case 17: //Thieving
sendFrame164(6206);
sendFrame246(6210, 290, 979);
sendFrame126("Congratulations, you advanced a theiving level!", 6207);
sendFrame126("Your theiving level is now "+playerLevel[17]+" .", 6208);
sendMessage("Congratulations, you just advanced a thieving level.");
stillgfx(199, absY, absX);
if (playerLevel[17] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2711);
sendFrame126("Congratulations, you have reached 99 Theiving!", 6207);
sendFrame126("Nerd", 6208);
sendMessage("Congratulations, you just advanced a Theiving level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 thieving!";
}
NpcDialogueSend = true;
break;
case 18: //Slayer
sendFrame164(6206);
sendFrame246(6210, 290, 4151);
sendFrame126("whips...", 6207);
sendFrame126("slayer!", 6208);
sendMessage("Congratulations, you just advanced a Slayer Lvl!.");
stillgfx(199, absY, absX);
if (playerLevel[18] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2720);
sendFrame126("Congratulations, you have reached 99 Slayer!", 6207);
sendFrame126("Go get yourself a nice whip!", 6208);
sendMessage("Congratulations, you just advanced a Slayer level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 slayer! and will never be poor again!!";
}
NpcDialogueSend = true;
break;
case 19: //Farming
sendFrame164(6206);
sendFrame246(6210, 290, 5340);
sendFrame126("Congratulations, you have advanced a farming level!", 6207);
sendFrame126("Your farming level is now "+playerLevel[19]+" .",6208);
sendMessage("Congratulations, you just advanced a farming level.");
stillgfx(199, absY, absX);
if (playerLevel[19] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2738);
sendFrame126("Congratulations, you have reached 99 farming!", 6207);
sendFrame126("Nerd!!!!!!", 6208);
sendMessage("Congratulations, you just advanced a farming level.");
stillgfx(199, absY, absX);
PlayerHandler.messageToAll = playerName+" just got 99 farming and is a nerd cause this must've tookin so long..";
}
NpcDialogueSend = true;
break;
case 20: //Runecrafting
sendFrame164(4267);
sendFrame126("Congratulations, you just advanced a runecrafting level!", 4268);
sendFrame126("Your runecrafting level is now "+playerLevel[20]+" .", 4269);
sendMessage("Congratulations, you just advanced a runecrafting level.");
stillgfx(199, absY, absX);
if (playerLevel[20] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2699);
sendFrame126("Congratulations, you have reached 99 runecrafting!", 6207);
sendFrame126("Skiller!!", 6208);
sendMessage("Congratulations, you just advanced a runecrafting level.");
PlayerHandler.messageToAll = playerName+" just got 99 runecrafting";
}
NpcDialogueSend = true;
break;
case 23: //Runecrafting
sendFrame246(6210, 290, 1);
sendFrame126("Congratulations, you just advanced a construction level!", 6207);
sendFrame126("Your construction level is now "+playerLevel[23]+" .", 6208);
sendMessage("Congratulations, you just advanced a construction level.");
stillgfx(199, absY, absX);
if (playerLevel[23] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 2743);
sendFrame126("Congratulations, you have reached 99 construction!", 6207);
sendFrame126("Make some houses!", 6208);
sendMessage("Congratulations, you just advanced a Construction level.");
PlayerHandler.messageToAll = playerName+" just got 99 construction and can now make you all houses! free of charge!";
}
NpcDialogueSend = true;
break;
case 21: //Hunting
sendFrame246(6210, 290, 15167);
sendFrame126("Congratulations, you just advanced a Hunting level!", 6207);
sendFrame126("Your Hunting level is now "+playerLevel[21]+" .", 6208);
sendMessage("Huntsmen.");
stillgfx(199, absY, absX);
if (playerLevel[21] == 99) {
sendFrame164(6206);
sendFrame246(6210, 290, 14234);
sendFrame126("Congratulations, you have reached 99 Hunter!", 6207);
sendFrame126("You can now wear the Hunter cape!", 6208);
sendMessage("Congratulations, you just advanced a Hunter level.");
PlayerHandler.messageToAll = playerName+" just got 99 Hunter..Drop party!";
}
NpcDialogueSend = true;
break;
}
Or at least something like it.