Thread: What is wrong with the PM Packet in RuneSource/Azure?

Results 1 to 8 of 8
  1. #1 What is wrong with the PM Packet in RuneSource/Azure? 
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    So I was working on cross world pming, got it to work perfectly appart from one thing, the PM packet doesn't always send the message to the recipient. Can anybody tell me what the problem is? This problem was there before I did cross world PMing.

    Code:
    	public ActionSender sendPrivateMessage(long name, int rights, byte[] message) {
    		StreamBuffer.OutBuffer out = StreamBuffer.newOutBuffer(message.length + 15);
    		out.writeVariablePacketHeader(player.getEncryptor(), 196);
    		out.writeLong(name);
    		out.writeInt(player.getPrivateMessaging().getLastPrivateMessageId());
    		out.writeByte(rights);
    		out.writeBytes(message, message.length);
    		out.finishVariablePacketHeader();
    		player.write(out.getBuffer());
    		return this;
    	}
    Reply With Quote  
     

  2. #2  
    Registered Member
    Mr.Client's Avatar
    Join Date
    Jun 2010
    Posts
    2,094
    Thanks given
    100
    Thanks received
    317
    Rep Power
    259
    So hold up, can u explain in more detail? like lets say you where to pm someone 3 times they'd only receive 2 of 3 pm's?
    Reply With Quote  
     

  3. #3  
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    Yeah if all, one discovery I've made is after sending about 20 undilvered PMs the recipient starts undelivered the new pms for a little
    Reply With Quote  
     

  4. #4  
    Registered Member
    Mr.Client's Avatar
    Join Date
    Jun 2010
    Posts
    2,094
    Thanks given
    100
    Thanks received
    317
    Rep Power
    259
    Quote Originally Posted by Ultimate View Post
    Yeah if all, one discovery I've made is after sending about 20 undilvered PMs the recipient starts undelivered the new pms for a little
    can u post packet 196 from your client for a sec?
    Reply With Quote  
     

  5. #5  
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    Code:
    				case 196:
    					long l5 = inStream.readQWord();
    					int j18 = inStream.readDWord();
    					int l21 = inStream.readUnsignedByte();
    					boolean flag5 = false;
    					for(int i28 = 0; i28 < 100; i28++) {
    						if(anIntArray1240[i28] != j18)
    							continue;
    						flag5 = true;
    						
    					}
    					if(l21 <= 1) {
    						for(int l29 = 0; l29 < ignoreCount; l29++) {
    							if(ignoreListAsLongs[l29] != l5)
    								continue;
    							flag5 = true;
    							
    						}
    					}
    					if(!flag5 && anInt1251 == 0)
    						try {
    							anIntArray1240[anInt1169] = j18;
    							anInt1169 = (anInt1169 + 1) % 100;
    							String s9 = TextInput.method525(pktSize - 13, inStream);
    							if(l21 != 3)
    								//s9 = Censor.doCensor(s9);
    							if(l21 == 2 || l21 == 3)
    								pushMessage(s9, 7, "@cr2@" + TextClass.fixName(TextClass.nameForLong(l5)));
    							else
    							if(l21 == 1)
    								pushMessage(s9, 7, "@cr1@" + TextClass.fixName(TextClass.nameForLong(l5)));
    							else
    								pushMessage(s9, 3, TextClass.fixName(TextClass.nameForLong(l5)));
    						} catch(Exception exception1) {
    							signlink.reporterror("cde1");
    						}
    					pktType = -1;
    					return true;
    Reply With Quote  
     

  6. #6  
    Registered Member
    Mr.Client's Avatar
    Join Date
    Jun 2010
    Posts
    2,094
    Thanks given
    100
    Thanks received
    317
    Rep Power
    259
    Link me to the base you used, please. sorry for delayed responces i went to the store lol.

    Oh and i forgot to ask does this happen to the person that send pm like it doesn't appear for the person whos supposed to get the PM? or it doesn't appear at all when sending the PM?

    Edit* just PM me ure msn if u haven't fixed this and we can talk on msn when im on.
    Reply With Quote  
     

  7. #7  
    Programmer, Contributor, RM and Veteran




    Join Date
    Mar 2007
    Posts
    5,147
    Thanks given
    2,656
    Thanks received
    3,731
    Rep Power
    5000
    Do you increment the message id counter before sending the packet?
    .
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Expert Programmer


    Join Date
    Dec 2007
    Posts
    2,018
    Thanks given
    52
    Thanks received
    84
    Rep Power
    986
    Wow that was a surprisely easy fix thank you
    Its was incrementing for each player instead of globally
    Reply With Quote  
     

  10. Thankful user:



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. [RuneSource]: How to compile and run Azure 317
    By blakeman8192 in forum Tutorials
    Replies: 14
    Last Post: 12-17-2011, 07:53 PM
  2. [RuneSource] Azure
    By Ashen Sky in forum Downloads
    Replies: 92
    Last Post: 09-13-2011, 05:40 AM
  3. [Azure/RuneSource] 2 bugs help
    By inFamous in forum Help
    Replies: 7
    Last Post: 05-26-2011, 01:07 PM
  4. Replies: 5
    Last Post: 04-04-2011, 11:54 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
  •