Register for your free account! | Forgot your password?

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

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

Advertisement



How to open warehouses? What triggers the GUI?

Discussion on How to open warehouses? What triggers the GUI? within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
How to open warehouses? What triggers the GUI?

From what I know, the NPC Type has to be 3 for warehouses, the TQ Bin and various public sources confirm that.

Dialoges are 2, shops are 1 (or the reverse) and wh's are 3.

If I click shops, the gui opens, if i click "normal" npc's the dialoge executes. If I klick a warehouse guy, it still executes the packet 2031 instead of 1009 with the propper subtype for show wh items / money

What am I doing wrong? Patch 4348.

Even if i explicitly send the open wh packet i get nothing.

HTML Code:
public static byte[] OpenWarehouse(uint NPCID, ulong Money)
        {
            ushort PacketType = 1009;
            byte[] Packet = new byte[20];

            fixed (byte* p = Packet)
            {
                *((ushort*)p) = (ushort)Packet.Length;
                *((ushort*)(p + 2)) = (ushort)PacketType;
                *((uint*)(p + 4)) = (uint)NPCID;
                *((ulong*)(p + 8)) = (ulong)Money;
                *(p + 12) = (byte)(9 & 0xff);
            }

            return Packet;
        }
^ the above packet is a mess, but it should work as I took it from Co2.1 wich had warehouses working (using that very packet)
Y u k i is offline  
Old 04/25/2014, 01:40   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
To open the warehouse window you have to send a 1010 packet. The packet you posted above is used to update the money you have stored in the warehouse.

The warehouse men also allow for you to use a password which is a reason why it uses 2031 and not 1009.
-impulse- is offline  
Thanks
1 User
Old 04/25/2014, 01:48   #3
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Code:
_client.Send(GeneralActionPacket.Create(_client.UID, Enum.DataAction.OpenWindow, 4));
Which then triggers packet 1009 and 1102 requests from the client.
At least in 5065.
Aceking is offline  
Thanks
1 User
Old 04/25/2014, 02:12   #4
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Ah ****. Thanks alot!
Y u k i is offline  
Closed Thread


Similar Threads Similar Threads
[MySQL] Cursor/Procedures/Triggers
01/16/2014 - Web Development - 1 Replies
Hey, kann mir einer kurz und knapp die drei oben genannten Punkte erklären? Unser Lehrer hat uns dazu nichts beigebracht aber wir müssen das einfach mal für ne LK-Klausur können. Wäre nett wenn das wer mit Bsp. kurz erläutern könnte xD
[Help] Eudemon warehouses
06/18/2012 - EO PServer Hosting - 1 Replies
Hello people of elite pvpers, im having a problem with my Eud WH's, when i put my pets in the warehouse their ID's disappear and when i pull them out they are still gone, the ID's show back up after a third evolve, and my Cronus warehouse wont work at all, and i mean that i cant store pets in it, any idea's on how to fix my two problems?? :handsdown: :handsdown:
[DB] problem ' Triggers for table `player`.`item` have no creation context'
05/26/2012 - Metin2 Private Server - 0 Replies
Triggers for table `player`.`item` have no creation context Dadurch wird bei mir in der Tabelle item keine items gespeichert Folge : EQ verschwindet Kann mir wer sagen wie ich das behebe? Skype : mafasaphir Wäre sehr nett!
[Release] 5165 Warehouses Auth System
04/01/2011 - CO2 PServer Guides & Releases - 18 Replies
this is just a simple Auth system for warehouses. It will ask for password (set from WHGuardian) each time players will open their warehouse. Attempt limit is not included in this release... btw; with this release, warehouseGuardian will now save the password in Character file. here are the screenshots: http://img408.imageshack.us/img408/6986/98867182. jpg Click The Image to see more screen shots 1. Go to NPCDialog.cs and search for this code: public static void...



All times are GMT +1. The time now is 18:09.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.