Thread: [PI] My total level is 30 LOL?

Results 1 to 8 of 8
  1. #1 [PI] My total level is 30 LOL? 
    Registered Member Beanerrr's Avatar
    Join Date
    Feb 2011
    Posts
    598
    Thanks given
    78
    Thanks received
    28
    Rep Power
    6
    Base: PI
    Problem: On my skill tab, total level always shows up as 30. Started happening a couple of days ago, don't remember after which update.

    Anyway, here's the part of my PlayerAssistant.java related to total level. I couldn't find anything wrong..

    Code:
    	public void levelUp(int skill) {
    		int totalLevel = 0;
    		for(int i = 0; i < 22; i++) {
    			totalLevel += (getLevelForXP(c.playerXP[i]));
    		}
    		sendFrame126("Total\\n Level: "+totalLevel, 3984);
    		int[][] data = {
    			{0, 6248, 6249, 6247}, //	ATTACK
    			{1, 6254, 6255, 6253}, //	DEFENCE
    			{2, 6207, 6208, 6206}, //	STRENGTH
    			{3, 6217, 6218, 6216}, //	HITPOINTS
    			***, 5453, 6114, 4443}, //	RANGED
    			{5, 6243, 6244, 6242}, //	PRAYER
    			{6, 6212, 6213, 6211}, //	MAGIC
    			{7, 6227, 6228, 6226}, //	COOKING
    			{8, 4273, 4274, 4272}, //	WOODCUTTING
    			{9, 6232, 6233, 6231}, //	FLETCHING
    			{10, 6259, 6260, 6258}, //	FISHING
    			{11, 4283, 4284, 4282}, //	FIREMAKING
    			{12, 6264, 6265, 6263}, //	CRAFTING
    			{13, 6222, 6223, 6221}, //	SMITHING
    			{14, 4417, 4438, 4416}, //	MINING
    			{15, 6238, 6239, 6237}, //	HERBLORE
    			{16, 4278, 4279, 4277}, //	AGILITY
    			{17, 4263, 4264, 4261}, //	THIEVING
    			{18, 12123, 12124, 12122}, //	SLAYER
    			{ 19, -1, -1, -1}, //		FARMING
    			{20, 4268, 4269, 4267},	//	RUNECRAFTING
    		};
    		String[] name = {
    			"Attack", "Defence", "Strength", "Hitpoints", "Ranged", "Prayer", "Magic",
    			"Cooking", "Woodcutting", "Fletching", "Fishing", "Firemaking", "Crafting",
    			"Smithing", "Mining", "Herblore", "Agility", "Theiving", "Slayer", "Farming",
    			"Runecrafting",
    		};
    		for(int i = 0; i < 21; i++) {
    			if(skill == data[i][0]) {
    				sendFrame126("Congratulations, you just advanced a "+name[i]+" level!", data[i][1]);
    				sendFrame126("@[email protected] "+name[i]+" level is now "+getLevelForXP(c.playerXP[skill])+".", data[i][2]);
    				c.sendMessage("Congratulations, you just advanced a "+name[i]+" level.");
    				sendFrame164(data[i][3]);
    			}
    		}
    		c.dialogueAction = 0;
    		c.nextChat = 0;
    		
    	}
    Quote Originally Posted by Galkon View Post
    The rules clearly state, if you can't help, don't reply.


    Quote Originally Posted by Mod Josh - Question: How do you ask girls out?
    I can't ask them out, I am banned from the kitchen
    Quote Originally Posted by Penor View Post
    How will i know if its PI based?? Omfg this is sooo confusing!!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    Prehaps it's written somewhere else as well?
    Is it correct when you level up (it could be the totalLvl isn't sent when logging in)?
    Reply With Quote  
     

  3. #3  
    Registered Member Beanerrr's Avatar
    Join Date
    Feb 2011
    Posts
    598
    Thanks given
    78
    Thanks received
    28
    Rep Power
    6
    Quote Originally Posted by TheChosenOne View Post
    Prehaps it's written somewhere else as well?
    Is it correct when you level up (it could be the totalLvl isn't sent when logging in)?
    Not even upon level up.

    The trouble is that I see nothing wrong on the Total Level int...

    Code:
    		int totalLevel = 0;
    		for(int i = 0; i < 22; i++) {
    			totalLevel += (getLevelForXP(c.playerXP[i]));
    		}
    Still need help with this.
    Quote Originally Posted by Galkon View Post
    The rules clearly state, if you can't help, don't reply.


    Quote Originally Posted by Mod Josh - Question: How do you ask girls out?
    I can't ask them out, I am banned from the kitchen
    Quote Originally Posted by Penor View Post
    How will i know if its PI based?? Omfg this is sooo confusing!!
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Mar 2011
    Posts
    36
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    It's probably to do with refreshing it at the correct time. It goes to 30 when the player logs in because the player data hasn't been loaded yet and doesn't update anymore.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    Are you sure the 3984 you use when sending is still correct?
    Reply With Quote  
     

  6. #6  
    Registered Member Beanerrr's Avatar
    Join Date
    Feb 2011
    Posts
    598
    Thanks given
    78
    Thanks received
    28
    Rep Power
    6
    Quote Originally Posted by TheChosenOne View Post
    Are you sure the 3984 you use when sending is still correct?
    It was correct. This "error" only started to happen 3/4 days ago.
    Quote Originally Posted by Galkon View Post
    The rules clearly state, if you can't help, don't reply.


    Quote Originally Posted by Mod Josh - Question: How do you ask girls out?
    I can't ask them out, I am banned from the kitchen
    Quote Originally Posted by Penor View Post
    How will i know if its PI based?? Omfg this is sooo confusing!!
    Reply With Quote  
     

  7. #7  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    28
    Posts
    4,758
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    do u have this
    Code:
    public void totallevelsupdate() {
    		int totalLevel = (getLevelForXP(Player.playerXP[0]) + getLevelForXP(Player.playerXP[1]) + getLevelForXP(Player.playerXP[2]) + getLevelForXP(Player.playerXP[3]) + getLevelForXP(Player.playerXP[4]) + getLevelForXP(Player.playerXP[5]) + getLevelForXP(Player.playerXP[6]) + getLevelForXP(Player.playerXP[7]) + getLevelForXP(Player.playerXP[8]) + getLevelForXP(Player.playerXP[9]) + getLevelForXP(Player.playerXP[10]) + getLevelForXP(Player.playerXP[11]) + getLevelForXP(Player.playerXP[12]) + getLevelForXP(Player.playerXP[13]) + getLevelForXP(Player.playerXP[14]) + getLevelForXP(Player.playerXP[15]) + getLevelForXP(Player.playerXP[16]) + getLevelForXP(Player.playerXP[17]) + getLevelForXP(Player.playerXP[18]) + getLevelForXP(Player.playerXP[19]) + getLevelForXP(Player.playerXP[20]));
    		sendFrame126("Level: "+totalLevel, 13983);
    	}
    and replace
    Code:
    sendFrame126("Total\\n Level: "+totalLevel, 3984);
    with
    Code:
    totallevelsupdate();
    see if that helps
    Reply With Quote  
     

  8. #8  
    Registered Member Beanerrr's Avatar
    Join Date
    Feb 2011
    Posts
    598
    Thanks given
    78
    Thanks received
    28
    Rep Power
    6
    Quote Originally Posted by animeking1120 View Post
    do u have this
    Code:
    public void totallevelsupdate() {
    		int totalLevel = (getLevelForXP(Player.playerXP[0]) + getLevelForXP(Player.playerXP[1]) + getLevelForXP(Player.playerXP[2]) + getLevelForXP(Player.playerXP[3]) + getLevelForXP(Player.playerXP[4]) + getLevelForXP(Player.playerXP[5]) + getLevelForXP(Player.playerXP[6]) + getLevelForXP(Player.playerXP[7]) + getLevelForXP(Player.playerXP[8]) + getLevelForXP(Player.playerXP[9]) + getLevelForXP(Player.playerXP[10]) + getLevelForXP(Player.playerXP[11]) + getLevelForXP(Player.playerXP[12]) + getLevelForXP(Player.playerXP[13]) + getLevelForXP(Player.playerXP[14]) + getLevelForXP(Player.playerXP[15]) + getLevelForXP(Player.playerXP[16]) + getLevelForXP(Player.playerXP[17]) + getLevelForXP(Player.playerXP[18]) + getLevelForXP(Player.playerXP[19]) + getLevelForXP(Player.playerXP[20]));
    		sendFrame126("Level: "+totalLevel, 13983);
    	}
    and replace
    Code:
    sendFrame126("Total\\n Level: "+totalLevel, 3984);
    with
    Code:
    totallevelsupdate();
    see if that helps
    Still nothing >.<
    Quote Originally Posted by Galkon View Post
    The rules clearly state, if you can't help, don't reply.


    Quote Originally Posted by Mod Josh - Question: How do you ask girls out?
    I can't ask them out, I am banned from the kitchen
    Quote Originally Posted by Penor View Post
    How will i know if its PI based?? Omfg this is sooo confusing!!
    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

Similar Threads

  1. Level 118/123 total of 80M 5 99's
    By wa3ad in forum Accounts
    Replies: 2
    Last Post: 03-10-2011, 02:05 AM
  2. Total Level
    By Jason in forum Help
    Replies: 3
    Last Post: 02-19-2011, 05:54 AM
  3. Replies: 8
    Last Post: 02-17-2011, 11:55 PM
  4. Total Level Not Working?!
    By Rune Sage in forum Help
    Replies: 0
    Last Post: 11-23-2010, 12:35 AM
  5. total level
    By Shoes in forum Help
    Replies: 2
    Last Post: 05-02-2010, 06:05 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •