Register for your free account! | Forgot your password?

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

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

Advertisement



Pharmacist Dialog Param

Discussion on Pharmacist Dialog Param within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Pharmacist Dialog Param

hello guys , lets see this code for , Pharmacist with text Dialog

i need Pharmacist Dialog Param id


PHP Code:
                #region NpcDivorce
                
case 123456:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("ElitePvpers ElitePvpers ElitePvpers ElitePvpers ElitePvpers.");
                                    
dialog.Option("Yes."1);
                                    
dialog.Option("No."255);
                                    
dialog.Avatar(56);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
Network.GamePackets.Data Data = new Network.GamePackets.Data(true);
                                    
Data.UID client.Entity.UID;
                                    
Data.ID 126;
                                    
Data.dwParam = ???;
                                    
Data.wParam1 client.Entity.X;
                                    
Data.wParam2 client.Entity.Y;
                                    
client.Send(Data);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 
abdeen is offline  
Old 10/17/2011, 15:35   #2
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
Ive been trying it too,
-Sensei- is offline  
Old 10/17/2011, 15:55   #3
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by -Sensei- View Post
Ive been trying it too,
i think you can get the code if you open conquer.exe with hex program !!
abdeen is offline  
Old 10/17/2011, 16:42   #4
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
You mad?
-Sensei- is offline  
Old 10/17/2011, 16:48   #5
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by -Sensei- View Post
You mad?
mad of what ?

or do you mean made it ?

anyway i didn't made it yet , and i am not mad at all
abdeen is offline  
Old 10/17/2011, 17:50   #6
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
Quote:
Originally Posted by abdeen View Post
mad of what ?

or do you mean made it ?

anyway i didn't made it yet , and i am not mad at all
Then stop using |Punctaution mark

@on topic
TrinityCo have it ,
-Sensei- is offline  
Old 10/17/2011, 18:21   #7
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by -Sensei- View Post
Then stop using |Punctaution mark

@on topic
TrinityCo have it ,
lol , we need to know this id , can you help me ?
abdeen is offline  
Old 10/17/2011, 18:29   #8
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
Compose = 1,
Craft = 2,
Warehouse = 4,
DetainRedeem = 336,
DetainClaim = 337,
OpenSockets = 425,
VIPWarehouse = 341,
Breeding = 368,
PurificationWindow = 455,
StabilizationWindow = 459,
TalismanUpgrade = 347,
GemComposing = 422,
Blessing = 426,
TortoiseGemComposing = 438,
RefineryStabilization = 448,
HorseRacingStore = 464,
Reincarnation = 485,
GarmentShop = 502;
-Sensei- is offline  
Old 10/17/2011, 18:43   #9
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by -Sensei- View Post
Compose = 1,
Craft = 2,
Warehouse = 4,
DetainRedeem = 336,
DetainClaim = 337,
OpenSockets = 425,
VIPWarehouse = 341,
Breeding = 368,
PurificationWindow = 455,
StabilizationWindow = 459,
TalismanUpgrade = 347,
GemComposing = 422,
Blessing = 426,
TortoiseGemComposing = 438,
RefineryStabilization = 448,
HorseRacingStore = 464,
Reincarnation = 485,
GarmentShop = 502;

okay , i know all of them , i can get them from Data.cs file , but i can't find Pharmacist shop id
abdeen is offline  
Old 10/17/2011, 19:00   #10
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
Quote:
Originally Posted by abdeen View Post
okay , i know all of them , i can get them from Data.cs file , but i can't find Pharmacist shop id
The shop ID is the same as the NPC's ID.
Lateralus is offline  
Old 10/17/2011, 19:09   #11
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by Lateralus View Post
The shop ID is the same as the NPC's ID.
i don't think so , but you can edit this code to make it open shop with an option ?

do it please!

PHP Code:
                #region NpcDivorce
                
case 123456:
                    {
                        switch (
npcRequest.OptionID)
                        {
                            case 
0:
                                {
                                    
dialog.Text("ElitePvpers ElitePvpers ElitePvpers ElitePvpers ElitePvpers.");
                                    
dialog.Option("Yes."1);
                                    
dialog.Option("No."255);
                                    
dialog.Avatar(56);
                                    
dialog.Send();
                                    break;
                                }
                            case 
1:
                                {
                                    
Network.GamePackets.Data Data = new Network.GamePackets.Data(true);
                                    
Data.UID client.Entity.UID;
                                    
Data.ID 126;
                                    
Data.dwParam = ???;
                                    
Data.wParam1 client.Entity.X;
                                    
Data.wParam2 client.Entity.Y;
                                    
client.Send(Data);
                                    break;
                                }
                        }
                        break;
                    }
                
#endregion 
abdeen is offline  
Old 10/17/2011, 19:58   #12
 
-Sensei-'s Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 267
Received Thanks: 59
Quote:
Originally Posted by Lateralus View Post
The shop ID is the same as the NPC's ID.
Yah we know but Its not like that.
We want to spawn the Pharmacist via npc Dialogs like realco.
-Sensei- is offline  
Old 10/17/2011, 20:05   #13
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by -Sensei- View Post
Yah we know but Its not like that.
We want to spawn the Pharmacist via npc Dialogs like realco.
about the Pharmacist Dialog id , you can get it from conquer.exe

but i wanna know something about summon a monster via dialog too , i coded the npc and he summon it like real co , but if i need to summon it again it wont summon it till i restart the server .

why is that ?
abdeen is offline  
Old 10/18/2011, 06:28   #14
 
Lateralus's Avatar
 
elite*gold: 0
Join Date: May 2005
Posts: 1,892
Received Thanks: 920
Quote:
Originally Posted by -Sensei- View Post
Yah we know but Its not like that.
We want to spawn the Pharmacist via npc Dialogs like realco.
Send the NPC spawn packet (type 2030) with the desired information when a user selects the option you want to spawn it. I'm not going to be implementation specific, sorry.
Lateralus is offline  
Old 10/18/2011, 07:01   #15
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
.... pharmacist is just a shop. You open it just like any other shop.

I use talking shop npcs all over my source. It's just a matter of sending general data with data1 as 32 with action type being 160


Seeing as I'm sure people will still be asking me...

Code:
 scope.SetVariable("OpenShop", new Func<uint, int>(delegate(uint shopID)
                    {
                        Packet.DataPacket pack = new Packet.DataPacket();
                        pack.Action = Core.Enum.DataAction.OpenUpgrade;
                        pack.Id = user.UID;
                        pack.Data1 = 32;
                        pack.Data3Low = user.X;
                        pack.Data3High = user.Y;
                        pack.Timestamp = shopID;
                        user.Send(pack);
                        return 0;
                    }));
That's what I use for my python methods for opening a shop so I can just say OpenShop(1) or w/e the shop id is.
pro4never is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[HELP]Pharmacist Problem!!!
05/30/2009 - CO2 Private Server - 1 Replies
Any idea why i can't buy a scroll on any Pharmacist NPC?
Portable Pharmacist
01/17/2006 - Conquer Online 2 - 2 Replies
Can you record the packet of buying a twin city scroll and send it to the server while at a place like lab or the packets for arrows? I came up with this idea when I was stuck at stone city :P
Ware House and Pharmacist and other NPC's
12/08/2005 - Conquer Online 2 - 7 Replies
Is it possible to put WhareHouse, Pharmacist and other NPC's in Lab map?... how?.. can anyone help me here on how to Hex or Edit?
Ware House and Pharmacist and other NPC
09/01/2005 - Conquer Online 2 - 11 Replies
Is it possible to put WhareHouse, Pharmacist and other NPC's in Lab map?... how?.. can anyone help me here on how to Hex or Edit?



All times are GMT +1. The time now is 06:53.


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.