Thread: Add on to my other tutorial for all combat skills.

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35
  1. #1 Add on to my other tutorial for all combat skills. (Modern mage added) 
    Registered Member

    Join Date
    Dec 2007
    Posts
    621
    Thanks given
    9
    Thanks received
    8
    Rep Power
    163
    Description: When a player levels up it will tell them what new things they can do at the level they just achieved.

    Difficulty: 1/10

    Assumed Knowledge: Copy and Paste

    Tested Server: Will work on all

    Files/Classes Modified: Client class

    Procedure

    Add this to UpdateNPCChat() under the switch.

    Code:
    case 1:
    	sendFrame164(6247);
    	stillgfx(199, absX, absY);
    	sendFrame126("@[email protected], you just advanced an attack level!", 6248);
    	sendFrame126("@[email protected] attack level is now " + getLevelForXP(playerXP[0]) + " .", 6249);
    	NpcDialogueSend = true;
    break;
    case 2:
    switch (playerLevel[0]) {
    	case 5:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1325);
    		sendFrame126("", 6207);
    		sendFrame126("You can now equip Steel weapons!", 6208);			
    		NpcDialogueSend = true;
    	break;
    	case 10:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1327);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Black weapons!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 20:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1329);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Mithril weapons!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 30:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1331);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Adamant weapons!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 40:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1333);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Runite weapons!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 50:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 4153);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Granite weapons with 50 strength!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 60:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 4587);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Dragon weapons!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 99:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 0000);//CHANGE 0000 TO THE SKILL CAPE ID
    		sendFrame126("You can now buy and wear an Attack skillcape!", 6207);
    		sendFrame126("@[email protected] can buy a skill cape from ------!", 6208);
    		NpcDialogueSend = true;
    	break;
    	default:
    		NpcDialogue = 0;
    		NpcDialogueSend = false;
    		RemoveAllWindows();
    	break;
    	}
    break;
     case 3:
    	sendFrame164(6247);
    	stillgfx(199, absX, absY);
    	sendFrame126("@[email protected], you just advanced an defence level!", 6248);
    	sendFrame126("@[email protected] defence level is now " + getLevelForXP(playerXP[1]) + " .", 6249);
    	NpcDialogueSend = true;
    	break;
    case 4:
    switch (playerLevel[1]) {
    	case 5:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1141);
    		sendFrame126("", 6207);
    		sendFrame126("You can now equip Steel armor!", 6208);			
    		NpcDialogueSend = true;
    	break;
    	case 10:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1153);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Black armor!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 20:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1143);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Mithril armor!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 30:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1145);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Adamant armor!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 40:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1147);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Runite armor!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 50:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 3122);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Granite armor with 50 strength!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 60:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1149);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Dragon armor!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 99:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 0000);//CHANGE 0000 TO THE SKILL CAPE ID
    		sendFrame126("You can now buy and wear an Defence skillcape!", 6207);
    		sendFrame126("@[email protected] can buy a skill cape from ------!", 6208);
    		NpcDialogueSend = true;
    	break;
    	default:
    		NpcDialogue = 0;
    		NpcDialogueSend = false;
    		RemoveAllWindows();
    	break;
    	}
    break;
     case 5:
    	sendFrame164(6247);
    	stillgfx(199, absX, absY);
    	sendFrame126("@[email protected], you just advanced a strength level!", 6248);
    	sendFrame126("@[email protected] strength level is now " + getLevelForXP(playerXP[2]) + " .", 6249);
    	NpcDialogueSend = true;
    	break;
    case 6:
    switch (playerLevel[2]) {
    	case 50:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 3122);
    		sendFrame126("", 6207);
    		sendFrame126("@[email protected] can now equip Granite weaponry with 50 attack/defence!", 6208);
    		NpcDialogueSend = true;
    	break;
    	case 99:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 0000);//CHANGE 0000 TO THE SKILL CAPE ID
    		sendFrame126("You can now buy and wear a Strength skillcape!", 6207);
    		sendFrame126("@[email protected] can buy a skill cape from ------!", 6208);
    		NpcDialogueSend = true;
    	break;
    	default:
    		NpcDialogue = 0;
    		NpcDialogueSend = false;
    		RemoveAllWindows();
    	break;
    	}
    break;
     case 7:
    	sendFrame164(6247);
    	stillgfx(199, absX, absY);
    	sendFrame126("@[email protected], you just advanced a Hitpoints level!", 6248);
    	sendFrame126("@[email protected] Hitpoints level is now " + getLevelForXP(playerXP[3]) + " .", 6249);
    	NpcDialogueSend = true;
    	break;
    case 8:
    switch (playerLevel[3]) {
    	case 99:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 0000);//CHANGE 0000 TO THE SKILL CAPE ID
    		sendFrame126("You can now buy and wear a Hitpoints skillcape!", 6207);
    		sendFrame126("@[email protected] can buy a skill cape from ------!", 6208);
    		NpcDialogueSend = true;
    	break;
    	default:
    		NpcDialogue = 0;
    		NpcDialogueSend = false;
    		RemoveAllWindows();
    	break;
    	}
    break;
     case 9:
    	sendFrame164(6247);
    	stillgfx(199, absX, absY);
    	sendFrame126("@[email protected], you just advanced a Ranging level!", 6248);
    	sendFrame126("@[email protected] Ranging level is now " + getLevelForXP(playerXP[4]) + " .", 6249);
    	NpcDialogueSend = true;
    	break;
    case 10:
    switch (playerLevel[4]) {
    	case 5:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 843);
    		sendFrame126("You can use Oak Shortbows!", 6207);
    		sendFrame126("You can also use Oak Longbows!", 6208);
    		NpcDialogueSend = true;			
    	break;
    	case 20:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 849);
    		sendFrame126("You can use Willow Shortbows!", 6207);
    		sendFrame126("You can also use Willow Longbows!", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 30:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 853);
    		sendFrame126("You can use Maple Shortbows!", 6207);
    		sendFrame126("You can also use Maple Longbows!", 6208);
    		NpcDialogueSend = true;			
    	break;			
    	case 40:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 857);
    		sendFrame126("@[email protected] can use Yew Shortbows & Longbows!", 6207);
    		sendFrame126("You can also use Green Dragonhide Armor!", 6208);
    		NpcDialogueSend = true;			
    	break;			
    	case 50:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 861);
    		sendFrame126("@[email protected] can use Magic Shortbows & Longbows!", 6207);
    		sendFrame126("@[email protected] can also use Blue Dragonhide Armor!", 6208);
    		NpcDialogueSend = true;			
    	break;					
    	case 60:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 843);
    		sendFrame126("@[email protected] can use red Dragonhide Armor!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;	
    	case 70:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 843);
    		sendFrame126("@[email protected] can use Black Dragonhide Armor!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;					
    	case 99:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 0000);//CHANGE 0000 TO THE SKILL CAPE ID
    		sendFrame126("You can now buy and wear a Ranging skillcape!", 6207);
    		sendFrame126("@[email protected] can buy a skill cape from ------!", 6208);
    		NpcDialogueSend = true;
    	break;
    	default:
    		NpcDialogue = 0;
    		NpcDialogueSend = false;
    		RemoveAllWindows();
    	break;
    	}
    break;
     case 11:
    	sendFrame164(6247);
    	stillgfx(199, absX, absY);
    	sendFrame126("@[email protected], you just advanced a Prayer level!", 6248);
    	sendFrame126("@[email protected] Prayer level is now " + getLevelForXP(playerXP[5]) + " .", 6249);
    	NpcDialogueSend = true;
    	break;
    case 12:
    switch (playerLevel[5]) {
    	case 4:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer @Burst of Stength!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;			
    	case 7:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Clarity of Thought!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 10:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Rock Skin!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;			
    	case 13:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Superhuman Strength!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;	
    	case 16:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Improved Reflexes!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;				
    	case 19:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Rapid Restore!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;				
    	case 22:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Rapid Heal!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;			
    	case 25:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Protect Items!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;				
    	case 28:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Steel Skin!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;			
    	case 31:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Ultimate Strength!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;	
    	case 34:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Incredible Reflexes!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;			
    	case 37:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Protect from Magic!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;	
    	case 40:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Protect from Missles!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 43:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Protect from Melee!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;			
    	case 46:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Retribution!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;	
    	case 49:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Redemption!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;	
    	case 52:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 1718);
    		sendFrame126("You can use the prayer Smite!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;				
    	case 99:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 0000);//CHANGE 0000 TO THE SKILL CAPE ID
    		sendFrame126("You can now buy and wear a Prayer skillcape!", 6207);
    		sendFrame126("@[email protected] can buy a skill cape from ------!", 6208);
    		NpcDialogueSend = true;
    	break;
    	default:
    		NpcDialogue = 0;
    		NpcDialogueSend = false;
    		RemoveAllWindows();
    	break;
    
    	}
    break;
      case 13:
    	sendFrame164(6247);
    	stillgfx(199, absX, absY);
    	sendFrame126("@[email protected], you just advanced a Magic level!", 6248);
    	sendFrame126("@[email protected] Magic level is now " + getLevelForXP(playerXP[6]) + " .", 6249);
    	NpcDialogueSend = true;
    	break;
    case 14:
    switch (playerLevel[6]) {
    	case 3:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Confuse!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 5:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Water Strike!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 7:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Enchant Level 1 Jewelry!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 9:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Earth Strike!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 11:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Weaken!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 13:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Fire Strike!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 15:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Bones to Bananas!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 17:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Wind Bolt!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 19:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Curse!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 20:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Bind!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 21:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Low Level Alchemy!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 23:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Water Bolt!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 25:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Varrock Teleport!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 27:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Enchant Level 2 Jewelry!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 29:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Earth Bolt!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 31:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Lumbridge Teleport!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 33:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Telekinetic grab!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 35:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Fire Bolt!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 37:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Falador Teleport!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 39:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Crumble Undead!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 41:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Wind Blast!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 43:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Superheat Item!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 45:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Camelot Teleport!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 47:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Water Blast!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 49:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Enchant Level 3 Jewelry!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 50:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Iban Blast, ", 6207);
    		sendFrame126("the spell Snare, and the spell MAgic Dart!", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 51:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Ardougne teleport!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 53:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Earth Blast!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 55:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell High Level Alchemy!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 56:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Charge Water Orb!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 57:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Enchant Level 4 Jewelry!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 58:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Watchtower Teleport!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 59:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Fire Blast!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 60:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Bones to Peaches, Charge Earth Orb,", 6207);
    		sendFrame126("Claws of Guthix, Saradomin Strike, and Flames of Zamorak!", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 61:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Trollheim Teleport!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 62:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Wind Wave!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 63:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Charge Fire Orb!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 64:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Ape Atoll teleport!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 65:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Water Wave!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 66:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Charge Air Orb and", 6207);
    		sendFrame126("Vulnerability!", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 68:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Enchant Level 5 Jewelry!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 70:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Earth Wave!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 73:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Enfeeble!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 74:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Teleother Lumbridge!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 75:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Fire Wave!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 79:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Entangle!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 80:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Stun and Charge!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 82:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Teleother Falador!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 87:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Enchant Level 6 Jewelry!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	case 90:
    		sendFrame164(6206);
    		sendFrame246(6210, 290, 579);
    		sendFrame126("You can use the magic spell Teleother Camelot!", 6207);
    		sendFrame126("", 6208);
    		NpcDialogueSend = true;			
    	break;		
    	default:
    		NpcDialogue = 0;
    		NpcDialogueSend = false;
    		RemoveAllWindows();
    	break;
    	}
    break;
    Add this to packet 40

    Code:
    || NpcDialogue == 1 || NpcDialogue == 3 || NpcDialogue == 5 || NpcDialogue == 7 || NpcDialogue == 9 || NpcDialogue == 11 || NpcDialogue == 13
    Add this to your LevelUp method (public boolean addSkillXP(int amount, int skill){)
    Code:
    		case 0:
                NpcDialogue = 1;
    			sendMessage("Congratulations, you just advanced an attack level.");
    			break;
    		case 1:
                NpcDialogue = 3;
    			sendMessage("Congratulations, you just advanced a defence level.");
    			break;
    		case 2:
                NpcDialogue = 5;
    			sendMessage("Congratulations, you just advanced a strength level.");
    			break;
    		case 3:
                NpcDialogue = 7;
    			sendMessage("Congratulations, you just advanced a hitpoints level.");
    			break;
    		case 4:
                NpcDialogue = 9;
    			sendMessage("Congratulations, you just advanced a ranging level.");
    			break;
    		case 5:
                NpcDialogue = 11;
    			sendMessage("Congratulations, you just advanced a prayer level.");
    			break;
    		case 6:
                NpcDialogue = 13;
    			sendMessage("Congratulations, you just advanced a magic level.");
    			break;
    You may have to replace old ones..

    Declare this if you don't have it
    Code:
    public void sendFrame246(int MainFrame, int SubFrame, int SubFrame2) {
    	outStream.createFrame(246);
    	outStream.writeWordBigEndian(MainFrame);
    	outStream.writeWord(SubFrame);
    	outStream.writeWord(SubFrame2);
    	flushOutStream();
    }
    Credits: Me..
     

  2. #2  
    I LOVE CHEESE


    Join Date
    Oct 2007
    Age
    26
    Posts
    1,153
    Thanks given
    7
    Thanks received
    8
    Rep Power
    104
    Wow very nice gj u took ur time i guess cant rep u again


     

  3. #3  
    Rise
    Guest
    now this is nifty! i should use this.

    "wow you just lvld! noob.. " xDxD
     

  4. #4  
    Officially Retired


    Join Date
    Oct 2007
    Age
    27
    Posts
    5,456
    Thanks given
    558
    Thanks received
    122
    Rep Power
    1364
    get me an error using this
     

  5. #5  
    Registered Member

    Join Date
    Dec 2007
    Posts
    621
    Thanks given
    9
    Thanks received
    8
    Rep Power
    163
    Post your error..
     

  6. #6  
    Registered Member
    zedex ranger's Avatar
    Join Date
    Mar 2008
    Age
    27
    Posts
    2,565
    Thanks given
    1
    Thanks received
    9
    Rep Power
    325
    omfg nice!!! i think he made this for me cause i was asking for mage range strenght attack defence tyvm! rep misa!
    [Only registered and activated users can see links. ]
     

  7. #7  
    Registered Member

    Join Date
    Dec 2007
    Posts
    621
    Thanks given
    9
    Thanks received
    8
    Rep Power
    163
    Quote Originally Posted by zedex ranger View Post
    omfg nice!!! i think he made this for me cause i was asking for mage range strenght attack defence tyvm! rep misa!
    Yeah.. I noticed you were asking how to modify it and everything so I just felt like adding it for all the other combat skills for you and whoever else needs it
     

  8. #8  
    Registered Member
    zedex ranger's Avatar
    Join Date
    Mar 2008
    Age
    27
    Posts
    2,565
    Thanks given
    1
    Thanks received
    9
    Rep Power
    325
    wheres the levelup method?
    [Only registered and activated users can see links. ]
     

  9. #9  
    Registered Member

    Join Date
    Dec 2007
    Posts
    621
    Thanks given
    9
    Thanks received
    8
    Rep Power
    163
    public boolean addSkillXP(int amount, int skill){
     

  10. #10  
    I LOVE CHEESE


    Join Date
    Oct 2007
    Age
    26
    Posts
    1,153
    Thanks given
    7
    Thanks received
    8
    Rep Power
    104
    Woot now u used switch statement now i will use ill give ur credits


     

Page 1 of 4 123 ... LastLast

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
  •