Pharmacist Dialog Param

10/17/2011 15:07 abdeen#1
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 
10/17/2011 15:35 -Sensei-#2
Ive been trying it too,
10/17/2011 15:55 abdeen#3
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 !!
10/17/2011 16:42 -Sensei-#4
You mad?
10/17/2011 16:48 abdeen#5
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 :)
10/17/2011 17:50 -Sensei-#6
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 ,
10/17/2011 18:21 abdeen#7
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 ?
10/17/2011 18:29 -Sensei-#8
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;
10/17/2011 18:43 abdeen#9
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 :(
10/17/2011 19:00 Lateralus#10
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.
10/17/2011 19:09 abdeen#11
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 
10/17/2011 19:58 -Sensei-#12
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.
10/17/2011 20:05 abdeen#13
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 ?
10/18/2011 06:28 Lateralus#14
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.
10/18/2011 07:01 pro4never#15
.... 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.