Register for your free account! | Forgot your password?

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

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

Advertisement



Merchant/Lock item GUI upon login?

Discussion on Merchant/Lock item GUI upon login? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
.Xori^'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 58
Received Thanks: 7
Merchant/Lock item GUI upon login (Albetros)?

I've completely removed the lock item system, but yet it still pops up upon login asking me to lock all my items. Is there anyway to remove this?

Source: Albetros 5518


#edit I added packet.Merchant in the PlayerInfo packet with type 38, and made the DB read and write it aswell. But its still not working lol. What could I be missing?
.Xori^ is offline  
Old 03/14/2013, 20:23   #2
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
it has nothing to do with Locking .. if u would like to De-Activate this ... just make all characters Merchant and this wont Pop up again
shadowman123 is offline  
Old 03/14/2013, 21:54   #3
 
elite*gold: 0
Join Date: Feb 2013
Posts: 51
Received Thanks: 22
Quote:
Originally Posted by .Xori^ View Post
I've completely removed the lock item system, but yet it still pops up upon login asking me to lock all my items. Is there anyway to remove this?
the lock item screen is a client side event, when the character has unlocked valuables items and ddnt receive a packet that tells it he is a merchant character then the client pops up the lock screen
then all u need to do is to send the Merchant status packet at login and be4 u send the character items
EgyptianMano is offline  
Old 03/14/2013, 21:56   #4
 
EOS 60D's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 94
Received Thanks: 13
Dont update merchant to hero upon log on..
EOS 60D is offline  
Old 03/14/2013, 22:20   #5
 
.Xori^'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 58
Received Thanks: 7
Lol what packet is it, I've implemented the database to read the MerchantStatus, along with having it auto set to 255 (IsMerchant). I can send a check if I'm a merchant and it comes back correctly. But I don't know exactly what packet sends the information thats triggering the item lock sequence.
.Xori^ is offline  
Old 03/15/2013, 01:21   #6
 
elite*gold: 0
Join Date: Feb 2013
Posts: 51
Received Thanks: 22
Quote:
Originally Posted by .Xori^ View Post
Lol what packet is it, I've implemented the database to read the MerchantStatus, along with having it auto set to 255 (IsMerchant). I can send a check if I'm a merchant and it comes back correctly. But I don't know exactly what packet sends the information thats triggering the item lock sequence.
There is no packet that triggers the item lock screen , as i told you it's a client side event , i'll try to make it more clear
1-Loggin request sent from the client
2-The server checks auths and send reply with ok
3-The server checks Merchant status and if merchants sends the status packet 10017 with type 38 value 255
4-Server sends the client items
5-the client checks If have unlocked valuable items , if yes and merchant nothing happens
if yes and not merchant (ddnt receive the Merchant status packet) then Ta Ta the lock item screen triggered
EgyptianMano is offline  
Old 03/15/2013, 05:33   #7
 
.Xori^'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 58
Received Thanks: 7
Quote:
Originally Posted by EgyptianMano View Post
There is no packet that triggers the item lock screen , as i told you it's a client side event , i'll try to make it more clear
1-Loggin request sent from the client
2-The server checks auths and send reply with ok
3-The server checks Merchant status and if merchants sends the status packet 10017 with type 38 value 255
4-Server sends the client items
5-the client checks If have unlocked valuable items , if yes and merchant nothing happens
if yes and not merchant (ddnt receive the Merchant status packet) then Ta Ta the lock item screen triggered
I added packet.Merchant in the PlayerInfo packet with type 38, and made the DB read and write it aswell. But its still not working lol. What could I be missing?
.Xori^ is offline  
Old 03/15/2013, 09:47   #8
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Hmm Lemme See ... u should send the Player Update packet 10017 with type 38 and assign value to it = 255 as Mano said .. and dont forget to send it everytime the player login
shadowman123 is offline  
Old 03/15/2013, 22:26   #9
 
.Xori^'s Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 58
Received Thanks: 7
Problem solved! Thank's for your help everyone. Just had to make the update packet send before LoadGears.
.Xori^ is offline  
Old 06/18/2015, 21:00   #10
 
elite*gold: 0
Join Date: Jul 2011
Posts: 10
Received Thanks: 1
Hey guys,

Sorry for replying on old topic. But I'm having the same issue. The merchant window keeps popping up.

I use the function:
GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.Merchant, GC.MyChar.merchant));

1. AddSend accepts parameter COPacket;
2. Packets.Status function looks like this:
Code:
public static COPacket Status(uint UID, Game.Status Type, ulong Value)
        {
            byte[] Packet = new byte[8 + 36];
            COPacket P = new COPacket(Packet);
            P.WriteInt16((ushort)(Packet.Length - 8));
            P.WriteInt16((ushort)10017);
            P.WriteInt32(UID);
            P.WriteInt32(0x01);
            P.WriteInt32((uint)Type);
            P.WriteInt64((ulong)Value);
            P.Move(12);

            return P;
        }
So yes it is using 10017, the Game.Status.Merchant enum is set to 38 and the value I'm sending is 255 (that's the value of my character). but still it isn't working.

Any help would be greatly appreciated.


Blaze


#SOLVED

I feel like an complete idiot. Made the same mistake hehe.
Solution: First make the call and after send the items.
legend9944 is offline  
Reply


Similar Threads Similar Threads
5165 Item lock, and item redeem.
02/09/2010 - CO2 Private Server - 4 Replies
Anyone knows how to make the item lock and redeem items npc in 5165? Im not too good at that stuff, and it'll be great if someone could help me. :handsdown:
[Help] Item Lock
07/21/2009 - CO2 Private Server - 1 Replies
How can i do item lock in LOTF?
Item Lock
08/05/2008 - Conquer Online 2 - 4 Replies
Is there any way around item lock so you can trade a locked item to whoever? Maybe through editting some files or something? Thanks.



All times are GMT +1. The time now is 20:23.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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