Thread: Packet help [Necrotic/Ruse base]

Results 1 to 4 of 4
  1. #1 Packet help [Necrotic/Ruse base] 
    Registered Member Yrreb's Avatar
    Join Date
    Apr 2016
    Posts
    208
    Thanks given
    23
    Thanks received
    36
    Rep Power
    11
    Hello,

    I've been trying to pass a prestige int through the SendSkill packet but I have been receiving errors as you can probably tell.

    Here is what I have tried so far:
    Code:
    public PacketSender sendSkill(Skill skill) {		
    		PacketBuilder out = new PacketBuilder(134);
    		out.put(skill.ordinal());
    		out.putInt(player.getSkillManager().getExperience(skill), ByteOrder.MIDDLE);
    		out.putShort(player.getSkillManager().getCurrentLevel(skill));
    		out.putShort(player.getSkillManager().getMaxLevel(skill));
    	        out.putShort(player.getSkillManager().getPrestigeLevel(skill));
    		player.getSession().queueMessage(out);																				
    		return this;																											
    	}
    Client sided:
    Code:
    case 134:
    				// needDrawTabArea = true;
    				
    				int skillId = getInputBuffer().getUnsignedByte();
    				int exp = getInputBuffer().method439();
    				int level = getInputBuffer().getUnsignedShort();
    				int maxLevel = getInputBuffer().getUnsignedShort();
    				int prestigeLvl = getInputBuffer().getUnsignedShort();
    				int gainedExperience = exp - currentExp[skillId];
    				currentExp[skillId] = exp;
    				currentStats[skillId] = level;
    				maxStats[skillId] = maxLevel;
    				prestigeLevel[skillId] = prestigeLvl;
    				if(gainedExperience > 0)
    					PlayerHandler.addXP(skillId, gainedExperience);
    				if(skillId == 23) {
    					setInterfaceText(""+maxLevel+"", 28171);
    				}
    				pktType = -1;
    				return true;
    I've also been messing around with packet sizes but I cannot seem to get it correct. (Not sure if this is what is causing the issue).

    This is where I'm at right now, if anyone out there is able to give me some guidance on packet sending I would be very grateful.

    Thank you in advance for anyone who may be able to help me
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Nov 2015
    Age
    24
    Posts
    1,980
    Thanks given
    334
    Thanks received
    1,051
    Rep Power
    5000
    increase existing packet size by 2
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Nov 2014
    Posts
    101
    Thanks given
    12
    Thanks received
    46
    Rep Power
    63
    Quote Originally Posted by Tommeh View Post
    increase existing packet size by 2
    This pretty much, for necrotic the packetsizes for the client are located in the SizeConstants class
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member Yrreb's Avatar
    Join Date
    Apr 2016
    Posts
    208
    Thanks given
    23
    Thanks received
    36
    Rep Power
    11
    Quote Originally Posted by Tommeh View Post
    increase existing packet size by 2
    Thanks for the response.

    Code:
    0, 4, 6, 8, 0, 6, 0, 0, 6, 2,  //130
    I believe this is the packet in question, it is originally 0, I did try 2 but I had no luck unfortunately.

    Just wondering what I should try next, can these packets be editted or am I still missing something?

    Thanks again for the reply.

    Quote Originally Posted by Tommeh View Post
    increase existing packet size by 2
    Quote Originally Posted by harryl View Post
    This pretty much, for necrotic the packetsizes for the client are located in the SizeConstants class
    Thanks both of you, I managed to resolve this issue now. I was editting the wrong file like a dummy. Really appreciate the help!
    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. Replies: 1
    Last Post: 09-08-2019, 06:54 PM
  2. need help with ruse base droprate%
    By MonsterRsps in forum Help
    Replies: 2
    Last Post: 03-07-2019, 11:13 PM
  3. [317] singlink.java help with ruse base
    By MonsterRsps in forum Help
    Replies: 1
    Last Post: 02-21-2019, 05:43 PM
  4. need help with ruse base
    By MonsterRsps in forum Help
    Replies: 2
    Last Post: 02-21-2019, 04:49 PM
  5. please help Necrotic/Ruse wild ditch
    By KushKings in forum Help
    Replies: 7
    Last Post: 12-23-2018, 02:00 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •