Thread: [PI] Spawn skillcape at level 99

Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1 [PI] Spawn skillcape at level 99 
    Donator [PI] Spawn skillcape at level 99 Market Banned

    Usaclub's Avatar
    Join Date
    Aug 2010
    Age
    28
    Posts
    512
    Thanks given
    119
    Thanks received
    37
    Rep Power
    29
    *NOTE*THIS IS FOR PROJECT INSANITY BASES ONLY!
    *NOTE*I MADE THIS VERY QUICK SO DON'T FLAME...

    First go to \src\server\model\players.

    Next open up PlayerAssistant.java

    Next search for "public void levelUp(int skill) {"

    Next replace that whole int with this one..
    Code:
    	public void levelUp(int skill) {
    		int totalLevel = (getLevelForXP(c.playerXP[0]) + getLevelForXP(c.playerXP[1]) + getLevelForXP(c.playerXP[2]) + getLevelForXP(c.playerXP[3]) + getLevelForXP(c.playerXP[4]) + getLevelForXP(c.playerXP[5]) + getLevelForXP(c.playerXP[6]) + getLevelForXP(c.playerXP[7]) + getLevelForXP(c.playerXP[8]) + getLevelForXP(c.playerXP[9]) + getLevelForXP(c.playerXP[10]) + getLevelForXP(c.playerXP[11]) + getLevelForXP(c.playerXP[12]) + getLevelForXP(c.playerXP[13]) + getLevelForXP(c.playerXP[14]) + getLevelForXP(c.playerXP[15]) + getLevelForXP(c.playerXP[16]) + getLevelForXP(c.playerXP[17]) + getLevelForXP(c.playerXP[18]) + getLevelForXP(c.playerXP[19]) + getLevelForXP(c.playerXP[20]));
    		sendFrame126("Total Lvl: "+totalLevel, 3984);
    		switch(skill) {
    			case 0:
    			sendFrame126("Congratulations, you just advanced an attack level!", 6248);
    			sendFrame126("Your attack level is now "+getLevelForXP(c.playerXP[skill])+".", 6249);
    			c.sendMessage("Congratulations, you just advanced an attack level.");	
    			sendFrame164(6247);
    	if(c.playerLevel[0] == 99) { //or you can do > 98
    		c.getItems().addItem(9748, 1);
    		return;
    	}
    			break;
    			
    			case 1:
                sendFrame126("Congratulations, you just advanced a defence level!", 6254);
                sendFrame126("Your defence level is now "+getLevelForXP(c.playerXP[skill])+".", 6255);
                c.sendMessage("Congratulations, you just advanced a defence level.");
    			sendFrame164(6253);
    	if(c.playerLevel[1] == 99) { //or you can do > 98
    		c.getItems().addItem(9754, 1);
    		return;
    	}
    			break;
    			
    			case 2:
                sendFrame126("Congratulations, you just advanced a strength level!", 6207);
                sendFrame126("Your strength level is now "+getLevelForXP(c.playerXP[skill])+".", 6208);
                c.sendMessage("Congratulations, you just advanced a strength level.");
    			sendFrame164(6206);
    	if(c.playerLevel[2] == 99) { //or you can do > 98
    		c.getItems().addItem(9751, 1);
    		return;
    	}
    			break;
    			
    			case 3:
                sendFrame126("Congratulations, you just advanced a hitpoints level!", 6217);
                sendFrame126("Your hitpoints level is now "+getLevelForXP(c.playerXP[skill])+".", 6218);
                c.sendMessage("Congratulations, you just advanced a hitpoints level.");
    			sendFrame164(6216);
    	if(c.playerLevel[3] == 99) { //or you can do > 98
    		c.getItems().addItem(9769, 1);
    		return;
    	}
    			break;
    			
    			case 4:
                sendFrame126("Congratulations, you just advanced a ranged level!", 5453);
                sendFrame126("Your ranged level is now "+getLevelForXP(c.playerXP[skill])+".", 6114);
                c.sendMessage("Congratulations, you just advanced a ranging level.");
    			sendFrame164(4443);
    	if(c.playerLevel[4] == 99) { //or you can do > 98
    		c.getItems().addItem(9757, 1);
    		return;
    	}
    			break;
    			
    			case 5:
                sendFrame126("Congratulations, you just advanced a prayer level!", 6243);
                sendFrame126("Your prayer level is now "+getLevelForXP(c.playerXP[skill])+".", 6244);
                c.sendMessage("Congratulations, you just advanced a prayer level.");
    			sendFrame164(6242);
    	if(c.playerLevel[5] == 99) { //or you can do > 98
    		c.getItems().addItem(9760, 1);
    		return;
    	}
    			break;
    			
    			case 6:
                sendFrame126("Congratulations, you just advanced a magic level!", 6212);
                sendFrame126("Your magic level is now "+getLevelForXP(c.playerXP[skill])+".", 6213);
                c.sendMessage("Congratulations, you just advanced a magic level.");
    			sendFrame164(6211);
    	if(c.playerLevel[6] == 99) { //or you can do > 98
    		c.getItems().addItem(9763, 1);
    		return;
    	}
    			break;
    			
    			case 7:
                sendFrame126("Congratulations, you just advanced a cooking level!", 6227);
                sendFrame126("Your cooking level is now "+getLevelForXP(c.playerXP[skill])+".", 6228);
                c.sendMessage("Congratulations, you just advanced a cooking level.");
    			sendFrame164(6226);
    	if(c.playerLevel[7] == 99) { //or you can do > 98
    		c.getItems().addItem(9802, 1);
    		return;
    	}
    			break;
    			
    			case 8:
    			sendFrame126("Congratulations, you just advanced a woodcutting level!", 4273);
    			sendFrame126("Your woodcutting level is now "+getLevelForXP(c.playerXP[skill])+".", 4274);
    			c.sendMessage("Congratulations, you just advanced a woodcutting level.");
    			sendFrame164(4272);
    	if(c.playerLevel[8] == 99) { //or you can do > 98
    		c.getItems().addItem(9808, 1);
    		return;
    	}
                break;
    			
                case 9:
                sendFrame126("Congratulations, you just advanced a fletching level!", 6232);
                sendFrame126("Your fletching level is now "+getLevelForXP(c.playerXP[skill])+".", 6233);
                c.sendMessage("Congratulations, you just advanced a fletching level.");
    			sendFrame164(6231);
    	if(c.playerLevel[9] == 99) { //or you can do > 98
    		c.getItems().addItem(9784, 1);
    		return;
    	}
                break;
    			
    			case 10:
                sendFrame126("Congratulations, you just advanced a fishing level!", 6259);
                sendFrame126("Your fishing level is now "+getLevelForXP(c.playerXP[skill])+".", 6260);
                c.sendMessage("Congratulations, you just advanced a fishing level.");
    			sendFrame164(6258);
    	if(c.playerLevel[10] == 99) { //or you can do > 98
    		c.getItems().addItem(9799, 1);
    		return;
    	}
    			break;
    			
    			case 11:
    			sendFrame126("Congratulations, you just advanced a fire making level!", 4283);
    			sendFrame126("Your firemaking level is now "+getLevelForXP(c.playerXP[skill])+".", 4284);
    			c.sendMessage("Congratulations, you just advanced a fire making level.");
    			sendFrame164(4282);
    	if(c.playerLevel[11] == 99) { //or you can do > 98
    		c.getItems().addItem(9805, 1);
    		return;
    	}
                break;
    			
                case 12:
    			sendFrame126("Congratulations, you just advanced a crafting level!", 6264);
    			sendFrame126("Your crafting level is now "+getLevelForXP(c.playerXP[skill])+".", 6265);
    			c.sendMessage("Congratulations, you just advanced a crafting level.");
    			sendFrame164(6263);
    	if(c.playerLevel[12] == 99) { //or you can do > 98
    		c.getItems().addItem(9781, 1);
    		return;
    	}
                break;
    			
    			case 13:
    			sendFrame126("Congratulations, you just advanced a smithing level!", 6222);
    			sendFrame126("Your smithing level is now "+getLevelForXP(c.playerXP[skill])+".", 6223);
    			c.sendMessage("Congratulations, you just advanced a smithing level.");
    			sendFrame164(6221);
    	if(c.playerLevel[13] == 99) { //or you can do > 98
    		c.getItems().addItem(9796, 1);
    		return;
    	}
    			break;
    			
    			case 14:
    			sendFrame126("Congratulations, you just advanced a mining level!", 4417);
    			sendFrame126("Your mining level is now "+getLevelForXP(c.playerXP[skill])+".", 4438);
    			c.sendMessage("Congratulations, you just advanced a mining level.");
    			sendFrame164(4416);
    	if(c.playerLevel[14] == 99) { //or you can do > 98
    		c.getItems().addItem(9793, 1);
    		return;
    	}
                break;
    			
    			case 15:
                sendFrame126("Congratulations, you just advanced a herblore level!", 6238);
                sendFrame126("Your herblore level is now "+getLevelForXP(c.playerXP[skill])+".", 6239);
                c.sendMessage("Congratulations, you just advanced a herblore level.");
    			sendFrame164(6237);
    	if(c.playerLevel[15] == 99) { //or you can do > 98
    		c.getItems().addItem(9775, 1);
    		return;
    	}
                break;
    			
    			case 16:
    			sendFrame126("Congratulations, you just advanced a agility level!", 4278);
    			sendFrame126("Your agility level is now "+getLevelForXP(c.playerXP[skill])+".", 4279);
    			c.sendMessage("Congratulations, you just advanced an agility level.");
    			sendFrame164(4277);
    	if(c.playerLevel[16] == 99) { //or you can do > 98
    		c.getItems().addItem(9772, 1);
    		return;
    	}
                break;
    			
    			case 17:
    			sendFrame126("Congratulations, you just advanced a thieving level!", 4263);
    			sendFrame126("Your theiving level is now "+getLevelForXP(c.playerXP[skill])+".", 4264);
                c.sendMessage("Congratulations, you just advanced a thieving level.");
    			sendFrame164(4261);
    	if(c.playerLevel[17] == 99) { //or you can do > 98
    		c.getItems().addItem(9778, 1);
    		return;
    	}
    			break;
    			
    			case 18:
    			sendFrame126("Congratulations, you just advanced a slayer level!", 12123);
    			sendFrame126("Your slayer level is now "+getLevelForXP(c.playerXP[skill])+".", 12124);
    			c.sendMessage("Congratulations, you just advanced a slayer level.");
    			sendFrame164(12122);
    	if(c.playerLevel[18] == 99) { //or you can do > 98
    		c.getItems().addItem(9787, 1);
    		return;
    	}
                break;
                
                case 20:
    			sendFrame126("Congratulations, you just advanced a runecrafting level!", 4268);
    			sendFrame126("Your runecrafting level is now "+getLevelForXP(c.playerXP[skill])+".", 4269);
    			c.sendMessage("Congratulations, you just advanced a runecrafting level.");
    			sendFrame164(4267);
    	if(c.playerLevel[20] == 99) { //or you can do > 98
    		c.getItems().addItem(9766, 1);
    		return;
    	}
                break;
    		}
    		c.dialogueAction = 0;
    		c.nextChat = 0;
    	}
    Save, compile, your done! Now when you get a 99 in a stat the cape auto spawns in your inventory!

    Credits- 100% to me
    Comment any errors and rep please

    My Vouches..
    Spoiler for Vouches:

    Quote Originally Posted by Benes View Post
    Very good!
    Quote Originally Posted by Jesper_ View Post
    Big vouch for you!!! Thanks for your auto donation system.
    Quote Originally Posted by Light View Post
    vouch, Bought summoning & extra. Went first and was done smoothly. Rep++
    Quote Originally Posted by Grim Line View Post
    Brought all of it. Very good trade very good guy
    Quote Originally Posted by HyBriDPvP View Post
    Vouch for this guy (I bought scripts and now i got my domain up and running with the WC maker (Rsps-HQ.com)) Ty!!!
    Quote Originally Posted by chri55w View Post
    vouch bought vote4cash, was done very quickly and payment went smooth
    Rep++ too
    thanks
    Quote Originally Posted by muporz View Post
    Vouch, bought vote4points $5, he even went first.
    Thanks .


    Reply With Quote  
     

  2. #2  
    Registered Member
    iHybrid's Avatar
    Join Date
    Sep 2010
    Posts
    2,095
    Thanks given
    636
    Thanks received
    352
    Rep Power
    81
    Change the name to skillcape trimming bro
    Reply With Quote  
     

  3. #3  
    Donator [PI] Spawn skillcape at level 99 Market Banned

    Usaclub's Avatar
    Join Date
    Aug 2010
    Age
    28
    Posts
    512
    Thanks given
    119
    Thanks received
    37
    Rep Power
    29
    Quote Originally Posted by iHybrid View Post
    Change the name to skillcape trimming bro
    Why?

    My Vouches..
    Spoiler for Vouches:

    Quote Originally Posted by Benes View Post
    Very good!
    Quote Originally Posted by Jesper_ View Post
    Big vouch for you!!! Thanks for your auto donation system.
    Quote Originally Posted by Light View Post
    vouch, Bought summoning & extra. Went first and was done smoothly. Rep++
    Quote Originally Posted by Grim Line View Post
    Brought all of it. Very good trade very good guy
    Quote Originally Posted by HyBriDPvP View Post
    Vouch for this guy (I bought scripts and now i got my domain up and running with the WC maker (Rsps-HQ.com)) Ty!!!
    Quote Originally Posted by chri55w View Post
    vouch bought vote4cash, was done very quickly and payment went smooth
    Rep++ too
    thanks
    Quote Originally Posted by muporz View Post
    Vouch, bought vote4points $5, he even went first.
    Thanks .


    Reply With Quote  
     

  4. #4  
    Registered Member LauryS's Avatar
    Join Date
    Aug 2010
    Posts
    372
    Thanks given
    77
    Thanks received
    21
    Rep Power
    6
    Nice.Rep++
    Quote Originally Posted by Gacoa View Post
    Does not remove doors. Objects only
    Quote Originally Posted by Kyle Iz Pro View Post
    Idk im stupid

    Reply With Quote  
     

  5. #5  
    Donator [PI] Spawn skillcape at level 99 Market Banned

    Usaclub's Avatar
    Join Date
    Aug 2010
    Age
    28
    Posts
    512
    Thanks given
    119
    Thanks received
    37
    Rep Power
    29
    Quote Originally Posted by LauryS View Post
    Nice.Rep++
    Thanks

    My Vouches..
    Spoiler for Vouches:

    Quote Originally Posted by Benes View Post
    Very good!
    Quote Originally Posted by Jesper_ View Post
    Big vouch for you!!! Thanks for your auto donation system.
    Quote Originally Posted by Light View Post
    vouch, Bought summoning & extra. Went first and was done smoothly. Rep++
    Quote Originally Posted by Grim Line View Post
    Brought all of it. Very good trade very good guy
    Quote Originally Posted by HyBriDPvP View Post
    Vouch for this guy (I bought scripts and now i got my domain up and running with the WC maker (Rsps-HQ.com)) Ty!!!
    Quote Originally Posted by chri55w View Post
    vouch bought vote4cash, was done very quickly and payment went smooth
    Rep++ too
    thanks
    Quote Originally Posted by muporz View Post
    Vouch, bought vote4points $5, he even went first.
    Thanks .


    Reply With Quote  
     

  6. #6  
    Registered Member
    sadgrills's Avatar
    Join Date
    Dec 2009
    Age
    28
    Posts
    1,419
    Thanks given
    120
    Thanks received
    194
    Rep Power
    863
    100% credits to you? Lol.
    This can be done without a huge whored code.


    Reply With Quote  
     

  7. #7  
    Member

    Join Date
    Nov 2008
    Age
    27
    Posts
    4,859
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    Quote Originally Posted by Zombie Inc View Post
    100% credits to you? Lol.
    This can be done without a huge whored code.
    Isn't a huge 'whored' code. It's just add item to it. The rest of it is there anyway all he did was add something little.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jan 2010
    Posts
    336
    Thanks given
    11
    Thanks received
    4
    Rep Power
    16
    why not just buy one
    «The original Nick»
    Reply With Quote  
     

  9. #9  
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    Terrible way to do it and a waste of time to go through each skill individually and find each skillcape id.

    Code:
    	 /*
    	  * In order by skill Id, last quest cape
    	  * @param untrimmed skillcape id, trimmed skillcape id
    	  */
    	
    	public int[][] skillcapes = { 
    		{9747, 9748},
    		{9753, 9754},
    		{9750, 9751},
    		{9768, 9769},
    		{9756, 9757},
    		{9759, 9760},
    		{9762, 9763},
    		{9801, 9802},
    		{9807, 9808},
    		{9783, 9784},
    		{9798, 9799},
    		{9804, 9805},
    		{9780, 9781},
    		{9795, 9796},
    		{9792, 9793},
    		{9774, 9775},
    		{9771, 9772},
    		{9777, 9778},
    		{9786, 9787}, 
    		{9810, 9811},
    		{9765, 9766},
    		{9789, 9790},
    		{9813}
    	};
    Here is something very useful I wrote a long time ago.
    Reply With Quote  
     

  10. #10  
    Professional Helper


    Join Date
    Jul 2010
    Posts
    2,148
    Thanks given
    353
    Thanks received
    232
    Rep Power
    1900
    nice work!
    gj
    Reply With Quote  
     

Page 1 of 3 123 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: 107
    Last Post: 12-27-2010, 05:42 AM
  2. Replies: 3
    Last Post: 10-31-2010, 02:35 AM
  3. Replies: 3
    Last Post: 09-21-2010, 04:07 AM
  4. Replies: 1
    Last Post: 09-11-2010, 01:27 PM
  5. Level up interfaces will skillcape
    By Icy Whip in forum Tutorials
    Replies: 5
    Last Post: 06-14-2008, 02:11 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •