Register for your free account! | Forgot your password?

You last visited: Today at 05:50

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

Advertisement



Impulse's source npc

Discussion on Impulse's source npc within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2007
Posts: 12
Received Thanks: 1
Impulse's source npc

Can anyone tell me why this does not work?It's the same id as in the npcs.txt file(111110) but it still chooses the default in the "switch (client.ActiveNpc)" is there something wrong with the "(npcRequest.OptionID)" or?



Code:
public static void GetDialog(NpcRequest npcRequest, GameState client)
        {
            if (npcRequest == null || client == null || client.Entity == null)
                return;
       
            Dialogs dialog = new Dialogs();
            dialog.Client = client;
            dialog.Replies = new List<NpcReply>();
            switch (client.ActiveNpc)
            {
                #region BirthVillage
                #region Gateman
                case 111110://Village gateman

                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Teleport to TwinCity?");
                                    dialog.Option("Yes", 1);
                                    dialog.Option("No.", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                
                                {
                                    client.Entity.Teleport(1002, 439, 390);
                                    break;
                                }

                              
                        }
                        break;
                    }
                #endregion
                #endregion

                default:
                    {
                        dialog.Text("This npc doesn't have a text added. It's ID is " + client.ActiveNpc);
                        dialog.Option("Alright.", 255);
                        dialog.Send();
                        break;
                    }
            }
        }
Edit:I rebuilt and everything.Anyone has any ideas?
vladradu2007 is offline  
Reply


Similar Threads Similar Threads
[Help]Errors (Impulse's Source)
10/06/2010 - CO2 Private Server - 2 Replies
http://s4.postimage.org/kGv8i.jpg What does that errors means? Where should I look to fix them? As title says, I'm using Impulse's source!
[Release] Breeder NPC (Impulse's source)
07/25/2010 - CO2 PServer Guides & Releases - 4 Replies
Hello, I am very very pleased and proud of myself that I managed to do this FIRST time trying to send a packet via npc so I'm happy :) SPECIAL THANKS TO: .Arco's thread Breeder packet with NPC. That gave me the packet id's. all it is, is this npc in dialog.cs #region Breeder case 13118:
[Release] No whisper's command (Impulse's source)
07/23/2010 - CO2 PServer Guides & Releases - 2 Replies
Here. First define in entity.cs public bool nowhsp = false; then goto packethandler.cs and where whisper is handled make it this foreach (Client.GameState pClient in ServerBase.Kernel.GamePool.Values) {



All times are GMT +1. The time now is 05:56.


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.