Register for your free account! | Forgot your password?

You last visited: Today at 21:40

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

Advertisement



"Item" dialog of Npc

Discussion on "Item" dialog of Npc within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 43
Received Thanks: 3
Arrow "Item" dialog of Npc

Any help i created a item have dialog of npc more dont work

here images




help please here this code for any help please

Code:
 //---------TRocarDB------//711738
                #region TrocarDB

                case 3000508:
                     {
                    
                     
                        Npcs dialog = new Npcs(client);
                        
                        dialog.Text("Trocar DragonBall ou DBScroll");
                        dialog.Option("DragonBall", 1);
                        dialog.Option("DBScroll", 2);
                        //   dialog.Option("White horse", 3);
                        dialog.Option("Agora nao.", 255);
                        dialog.Send();
                        break;
                 
                       

                        
                    }
                    

                case 1:
                    {
                        if (client.Inventory.Contains(1088000, 1))
                        {

                            client.Inventory.Remove(1088000, 1);
                            client.Entity.ConquerPoints += 215;
                        }
                        else
                        {
                            client.Send(new Message("Voce nao Tem DragonBall", Color.White, 255));
                            // dialog.Send();
                        }
                        break;
                    }
                case 2:
                    {
                        if (client.Inventory.Contains(720028, 1))
                        {
                            client.Inventory.Remove(720028, 1);
                            client.Entity.ConquerPoints += 2150;
                        }
                        else
                        {
                            client.Send(new Message("Voce nao Tem DBScroll", Color.White, 255));
                           // dialog.Send();
                        }
                        break;
                    }
                       
                 
                #endregion
                //---------TrocarDB------//

Help me
perfect0 is offline  
Old 01/22/2014, 16:48   #2
 
littlechris95's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 150
Received Thanks: 11
NPCDialog Packet (2031,2032):

Item code:
littlechris95 is offline  
Thanks
1 User
Old 01/22/2014, 19:49   #3
 
elite*gold: 0
Join Date: Oct 2012
Posts: 43
Received Thanks: 3
Thanks worked perfectly: D






Thanks worked perfectly: D
perfect0 is offline  
Old 10/26/2014, 15:06   #4
 
elite*gold: 0
Join Date: May 2009
Posts: 40
Received Thanks: 1
please show me an example of this code:

Npcs npc = new Npcs(client);
npc.Text("Trocar DragonBall ou DBScroll");
npc.Option("DragonBall", 1);
npc.Option("DBScroll", 2);
npc.Option("Agora nao.", 255);
npc.Send();
client.ActiveNpc = item.ID;
with case 0:
case 1:
etc..
please !! Thanks !!
padure is offline  
Reply




All times are GMT +1. The time now is 21:45.


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

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