Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 05:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement
Bitcoin Dice Game


Leave Mentor Fiction 2065

Discussion on Leave Mentor Fiction 2065 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 204
Leave Mentor Fiction 2065

So I've been playing with this all night, and I'm in need of some assistance. I have literally every other function of 2065 complete with no issues. The only problem I have is with leavementor. First I modify the subtype as dumpapprentice and send the packet to the mentor if online. I've tried sending 2066 with every value I can think of, but the apprentice doesnt get removed from the mentors apprentice list.

My question is this: how do I remove the apprentice from the mentors list? This is 5517.

Thanks in advance team



InsomniacPro is offline  
Old 10/23/2016, 12:07   #2
 
elite*gold: 0
Join Date: Mar 2006
Posts: 439
Received Thanks: 44
Egy's can help you this.


Soulfly25 is offline  
Old 10/24/2016, 07:13   #3
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 204
So I have completed the entire mentor apprentice system, the only thing I'm still stuck on is this. Anyone have any info?
InsomniacPro is offline  
Old 10/24/2016, 14:33   #4
 
elite*gold: 0
Join Date: Aug 2010
Posts: 988
Received Thanks: 1,077
You send the apprentice info packet (2066) to the mentor but with

Offset Value Name
4 2 (List) ActionType
8 Mentor Id
12 Apprentice Id
24 999999 Hours
52 2 (List) ActionType
56 1 IsOnline

followed and empty 2066 packet with the ActionType at offset 4 set to 3.

The Hours field at offset 24 is the important part of the packet. The client is expecting a value between 0-72 hours and when you send a value of 999999 the record is dropped and the apprentice info is freed client side.

Good luck.


{ Angelius } is offline  
Thanks
3 Users
Old 10/24/2016, 19:58   #5
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,699
Received Thanks: 3,805
Quote:
Originally Posted by { Angelius } View Post
You send the apprentice info packet (2066) to the mentor but with

Offset Value Name
4 2 (List) ActionType
8 Mentor Id
12 Apprentice Id
24 999999 Hours
52 2 (List) ActionType
56 1 IsOnline

followed and empty 2066 packet with the ActionType at offset 4 set to 3.

The Hours field at offset 24 is the important part of the packet. The client is expecting a value between 0-72 hours and when you send a value of 999999 the record is dropped and the apprentice info is freed client side.

Good luck.
I added these details to the packet wiki -->
Let me know if you'd like to change anything.
Spirited is offline  
Old 10/25/2016, 11:16   #6
 
elite*gold: 0
Join Date: Jul 2009
Posts: 713
Received Thanks: 277
Quote:
Originally Posted by Spirited View Post
I added these details to the packet wiki -->
Let me know if you'd like to change anything.
The offset I didn't know what it was about xD
pintinho12 is offline  
Old 10/26/2016, 16:08   #7


 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,212
Received Thanks: 782
Quote:
Originally Posted by { Angelius } View Post
You send the apprentice info packet (2066) to the mentor but with

Offset Value Name
4 2 (List) ActionType
8 Mentor Id
12 Apprentice Id
24 999999 Hours
52 2 (List) ActionType
56 1 IsOnline

followed and empty 2066 packet with the ActionType at offset 4 set to 3.

The Hours field at offset 24 is the important part of the packet. The client is expecting a value between 0-72 hours and when you send a value of 999999 the record is dropped and the apprentice info is freed client side.

Good luck.
What the actual ****??
KraHen is offline  
Old 10/27/2016, 01:04   #8
 
elite*gold: 0
Join Date: Aug 2010
Posts: 988
Received Thanks: 1,077
Quote:
Originally Posted by KraHen View Post
What the actual ****??
Yes, it was a WTF moment for me too when I saw how it's handled in the client while debugging it lol.

So just out of curiosity I looked at the code again and figured I gave the wrong answer. It turns out the default value for the Hours field is 999999 so

Hours == 999999; Field is ignored.
Hours == 0; The apprentice record is dropped from the mentor list.
Hours > 0; Value is parsed as the number of waiting hours left before the mentor-ship is active.

So to remove the apprentice from the mentor list you send
packet 2065 with ActionType = (ExpelApprentice = 18) followed by
packet 2066 with ActionType = (ApprenticeList = 2), and the Hours field set to 0.

Sorry about the wrong info I included in my previous post. I should've double checked first.
@ You might wanna edit the wiki page and remove the old info.
{ Angelius } is offline  
Thanks
1 User
Old 10/27/2016, 01:44   #9
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,699
Received Thanks: 3,805
Quote:
Originally Posted by { Angelius } View Post
Yes, it was a WTF moment for me too when I saw how it's handled in the client while debugging it lol.

So just out of curiosity I looked at the code again and figured I gave the wrong answer. It turns out the default value for the Hours field is 999999 so

Hours == 999999; Field is ignored.
Hours == 0; The apprentice record is dropped from the mentor list.
Hours > 0; Value is parsed as the number of waiting hours left before the mentor-ship is active.

So to remove the apprentice from the mentor list you send
packet 2065 with ActionType = (ExpelApprentice = 18) followed by
packet 2066 with ActionType = (ApprenticeList = 2), and the Hours field set to 0.

Sorry about the wrong info I included in my previous post. I should've double checked first.
@ You might wanna edit the wiki page and remove the old info.
Fixed.
Spirited is offline  
Old 10/27/2016, 02:21   #10
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 204
Quote:
Originally Posted by { Angelius } View Post
Yes, it was a WTF moment for me too when I saw how it's handled in the client while debugging it lol.

So just out of curiosity I looked at the code again and figured I gave the wrong answer. It turns out the default value for the Hours field is 999999 so

Hours == 999999; Field is ignored.
Hours == 0; The apprentice record is dropped from the mentor list.
Hours > 0; Value is parsed as the number of waiting hours left before the mentor-ship is active.

So to remove the apprentice from the mentor list you send
packet 2065 with ActionType = (ExpelApprentice = 18) followed by
packet 2066 with ActionType = (ApprenticeList = 2), and the Hours field set to 0.

Sorry about the wrong info I included in my previous post. I should've double checked first.
@ You might wanna edit the wiki page and remove the old info.
Angelius, first off thanks so much for the assistance and clarification of offset 24. Now my offsets are all correct and this is what I'm sending to the mentor.
Code:
                    Models.Packets.Guide.GuideInformation info = new Models.Packets.Guide.GuideInformation();
                    info.Mode = 2;
                    info.Id = guidePlayer.ClientId;
                    info.TargetId = (uint)player.ClientId;
                    info.Hours = 0;
                    info.EnrollDate = 0;
                    info.Strings = new System.Collections.Generic.List<string>();
                    guidePlayer.ClientSocket.Send(info);
Prior to that, I'm sending the 2065 with subtype 18. Still no luck removing the apprentice from the list. Is there anything you see I'm missing.
InsomniacPro is offline  
Old 10/27/2016, 03:28   #11
 
elite*gold: 0
Join Date: Aug 2010
Posts: 988
Received Thanks: 1,077
Quote:
Originally Posted by InsomniacPro View Post
Angelius, first off thanks so much for the assistance and clarification of offset 24. Now my offsets are all correct and this is what I'm sending to the mentor.
Code:
                    Models.Packets.Guide.GuideInformation info = new Models.Packets.Guide.GuideInformation();
                    info.Mode = 2;
                    info.Id = guidePlayer.ClientId;
                    info.TargetId = (uint)player.ClientId;
                    info.Hours = 0;
                    info.EnrollDate = 0;
                    info.Strings = new System.Collections.Generic.List<string>();
                    guidePlayer.ClientSocket.Send(info);
Prior to that, I'm sending the 2065 with subtype 18. Still no luck removing the apprentice from the list. Is there anything you see I'm missing.
Yes, The strings list cannot be empty you need to send the Mentor, Apprentice and Apprentice Spouse strings. I am guessing you can get away with sending the apprentice name only but it's just a guess. I personally send the packet fully populated and if I omit the strings the record doesn't get removed.

Also I am not sure if it's of any consequence here but offset 52 is an action type and it should be set to 2 (ApprenticeList) just like the one at offset 4.

You might ask why do I need the strings when I am only removing the record, I have no idea. It's TQ you know :P
{ Angelius } is offline  
Thanks
1 User
Old 10/27/2016, 04:49   #12
 
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 204
Quote:
Originally Posted by { Angelius } View Post
Yes, The strings list cannot be empty you need to send the Mentor, Apprentice and Apprentice Spouse strings. I am guessing you can get away with sending the apprentice name only but it's just a guess. I personally send the packet fully populated and if I omit the strings the record doesn't get removed.

Also I am not sure if it's of any consequence here but offset 52 is an action type and it should be set to 2 (ApprenticeList) just like the one at offset 4.

You might ask why do I need the strings when I am only removing the record, I have no idea. It's TQ you know :P
So both offset 4 and 52 are the action type?

//EDIT:
Thanks Angelius, I have it working. Now Mentor/Apprentice works 100%. Thanks so much I owe you!
InsomniacPro is offline  
Old 10/27/2016, 09:44   #13


 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,212
Received Thanks: 782
Quote:
Originally Posted by { Angelius } View Post
Yes, it was a WTF moment for me too when I saw how it's handled in the client while debugging it lol.

So just out of curiosity I looked at the code again and figured I gave the wrong answer. It turns out the default value for the Hours field is 999999 so

Hours == 999999; Field is ignored.
...

Again, what the **** TQ?


KraHen is offline  
Reply



« I want Lauder against Ollydbg program help | Best structured source »

Similar Threads Similar Threads
[Selling] 200 COMBAT, CHEAP, 50$, 105 DG, ALL CHAOTICS, 2065 TOTAL
03/18/2014 - Runescape Trading - 0 Replies
skype: mlgpro666 Account has to go. there is NO middleman. Ask me for details to be changed. pictures imgur: the simple image sharer always can contact for pictures if they dont work
Suche 2065 e*gold
01/01/2013 - elite*gold Trading - 1 Replies
hey suche 2065 e*gold biete 35 psc oder 40-45 paypal. bite skype addyn: keine spam im thread bitte, missachtung wird reported#
Selling Runescape Account 186 Cb 2065 Total & 30 Day Membership ( 99 Hunter +!)
12/21/2012 - Runescape Trading - 1 Replies
Before You all scroll down to look at the Stats and the 11 Pictures. Remember I Cannot Take off the Email by myself. I don't care how many time's you all tell me i can. I tryed 100+ Times for Runescape to send me new unsubscribed codes, every time i get the Email and try to use them It say's Wrong Email and Temp Bans me. I CAN HOWEVER! Get the Email to Switch to yours by accepting the Email Confirmation to your account which i have no Problem doing. I DID take of JAG guardian I just forgot to...



All times are GMT +2. The time now is 05:35.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2020 elitepvpers All Rights Reserved.