Changing NPC Dialog in Elite-Co Source

02/11/2011 15:50 warzie006#1
Where can i change the npc dialog in the elite-co source?

Because I can't find any dialog in there xD
02/11/2011 15:54 Syst3m_W1z4rd#2
just use the edit -> quick find and choose entire solution.
02/11/2011 16:34 Iron~Man#3
Quote:
Originally Posted by warzie006 View Post
Where can i change the npc dialog in the elite-co source?

Because I can't find any dialog in there xD
I've never used Coemu , but your signature sucks SO HARD.

All The best,
Stefan
02/11/2011 16:50 warzie006#4
I know it, my sig is sucks :P And it a long time ago sinds I had changed it and i was online ;)

But there is a problem. I had found it and changed it. After that I had changed it I had debugged it (f5) then I had logged in and checked the dialog. No change. What is the problem?
02/11/2011 18:38 pro4never#5
From what I remember he was working on converting to a sql based npc system... Not sure if he ever finished the system though. Try looking through the database for different npctext options.
02/11/2011 18:52 warzie006#6
No text thing in there :(

But thanks anywat :)

I now have made a pic:

[Only registered and activated users can see links. Click Here To Register...]

And the dialog in Oldstyle.cs:

Code:
                    #region MysticMerchant
                    case 410:
                        {
                            if (LinkBack == 0)
                            {
                                Text("Hello " + CSocket.Client.Name + ", I have many good things to sell you for cheap.\n What would you like?", CSocket);
                                //Link("DragonBall 10 kk", 10, CSocket);
                                //Link("Super Praying Stone 65 kk", 11, CSocket);
                                //Link("Super Dragon Gem 50 kk", 12, CSocket);
                                //Link("Super Phoenix Gem 50 kk", 13, CSocket);
                                //Link("Super Rainbow Gem 50 kk", 14, CSocket);
                                Link("Super Violet Gem 35 kk", 15, CSocket);
                                Link("Next Page.", 1, CSocket);
                                Link("Just passing by.", 255, CSocket);
                                Face(1, CSocket); End(CSocket);
                                End(CSocket);
                            }
                            else if (LinkBack == 1)
                            {
                                Text("Hello " + CSocket.Client.Name + ", I have many good things to sell you for cheap.\n What would you like?", CSocket);
                                Link("Super Moon Gem 35 kk", 16, CSocket);
                                Link("Super Kylin Gem 28 kk", 17, CSocket);
                                Link("Super Fury Gem 35 kk", 18, CSocket);
                                Link("Previous Page.", 0, CSocket);
                                Link("Just passing by.", 255, CSocket);
                                Face(1, CSocket); End(CSocket);
                            }
                            #region DragonBall
                            else if (LinkBack == 10)
                            {
                                if (CSocket.Client.Money >= 10000000)
                                {
                                    if (CSocket.Client.Inventory.Count <= 39)
                                    {
                                        Money(-10000000, CSocket);
                                        AddItem(1088000, 1, CSocket);
                                    }
                                    else
                                    {
                                        Text("Im Sorry but you dont have enough space in your bag.", CSocket);
                                        Link("Ok Thanks.", 255, CSocket);
                                        Face(1, CSocket); End(CSocket);
                                    }
                                }
                                else
                                {
                                    Text("Im Sorry but you dont have enough Gold to buy this item.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(1, CSocket); End(CSocket);
                                }
                            }
                            #endregion
                            #region Super Praying Stone
                            else if (LinkBack == 11)
                            {
                                if (CSocket.Client.Money >= 65000000)
                                {
                                    if (CSocket.Client.Inventory.Count <= 39)
                                    {
                                        Money(-65000000, CSocket);
                                        AddItem(1200002, 1, CSocket);
                                    }
                                    else
                                    {
                                        Text("Im Sorry but you dont have enough space in your bag.", CSocket);
                                        Link("Ok Thanks.", 255, CSocket);
                                        Face(1, CSocket); End(CSocket);
                                    }
                                }
                                else
                                {
                                    Text("Im Sorry but you dont have enough Gold to buy this item.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(1, CSocket); End(CSocket);
                                }
                            }
                            #endregion
                            #region Super DragonGem
                            else if (LinkBack == 12)
                            {
                                if (CSocket.Client.Money >= 50000000)
                                {
                                    if (CSocket.Client.Inventory.Count <= 39)
                                    {
                                        Money(-50000000, CSocket);
                                        AddItem(700013, 1, CSocket);
                                    }
                                    else
                                    {
                                        Text("Im Sorry but you dont have enough space in your bag.", CSocket);
                                        Link("Ok Thanks.", 255, CSocket);
                                        Face(1, CSocket); End(CSocket);
                                    }
                                }
                                else
                                {
                                    Text("Im Sorry but you dont have enough Gold to buy this item.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(1, CSocket); End(CSocket);
                                }
                            }
                            #endregion
                            #region Super PheonixGem
                            else if (LinkBack == 13)
                            {
                                if (CSocket.Client.Money >= 50000000)
                                {
                                    if (CSocket.Client.Inventory.Count <= 39)
                                    {
                                        Money(-50000000, CSocket);
                                        AddItem(700003, 1, CSocket);
                                    }
                                    else
                                    {
                                        Text("Im Sorry but you dont have enough space in your bag.", CSocket);
                                        Link("Ok Thanks.", 255, CSocket);
                                        Face(1, CSocket); End(CSocket);
                                    }
                                }
                                else
                                {
                                    Text("Im Sorry but you dont have enough Gold to buy this item.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(1, CSocket); End(CSocket);
                                }
                            }
                            #endregion
                            #region Super RainbowGem
                            else if (LinkBack == 14)
                            {
                                if (CSocket.Client.Money >= 50000000)
                                {
                                    if (CSocket.Client.Inventory.Count <= 39)
                                    {
                                        Money(-50000000, CSocket);
                                        AddItem(700033, 1, CSocket);
                                    }
                                    else
                                    {
                                        Text("Im Sorry but you dont have enough space in your bag.", CSocket);
                                        Link("Ok Thanks.", 255, CSocket);
                                        Face(1, CSocket); End(CSocket);
                                    }
                                }
                                else
                                {
                                    Text("Im Sorry but you dont have enough Gold to buy this item.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(1, CSocket); End(CSocket);
                                }
                            }
                            #endregion
                            #region Super VioletGem
                            else if (LinkBack == 15)
                            {
                                if (CSocket.Client.Money >= 35000000)
                                {
                                    if (CSocket.Client.Inventory.Count <= 39)
                                    {
                                        Money(-35000000, CSocket);
                                        AddItem(700053, 1, CSocket);
                                    }
                                    else
                                    {
                                        Text("Im Sorry but you dont have enough space in your bag.", CSocket);
                                        Link("Ok Thanks.", 255, CSocket);
                                        Face(1, CSocket); End(CSocket);
                                    }
                                }
                                else
                                {
                                    Text("Im Sorry but you dont have enough Gold to buy this item.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(1, CSocket); End(CSocket);
                                }
                            }
                            #endregion
                            #region Super MoonGem
                            else if (LinkBack == 16)
                            {
                                if (CSocket.Client.Money >= 35000000)
                                {
                                    if (CSocket.Client.Inventory.Count <= 39)
                                    {
                                        Money(-35000000, CSocket);
                                        AddItem(700063, 1, CSocket);
                                    }
                                    else
                                    {
                                        Text("Im Sorry but you dont have enough space in your bag.", CSocket);
                                        Link("Ok Thanks.", 255, CSocket);
                                        Face(1, CSocket); End(CSocket);
                                    }
                                }
                                else
                                {
                                    Text("Im Sorry but you dont have enough Gold to buy this item.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(1, CSocket); End(CSocket);
                                }
                            }
                            #endregion
                            #region Super KylinGem
                            else if (LinkBack == 17)
                            {
                                if (CSocket.Client.Money >= 28000000)
                                {
                                    if (CSocket.Client.Inventory.Count <= 39)
                                    {
                                        Money(-28000000, CSocket);
                                        AddItem(700043, 1, CSocket);
                                    }
                                    else
                                    {
                                        Text("Im Sorry but you dont have enough space in your bag.", CSocket);
                                        Link("Ok Thanks.", 255, CSocket);
                                        Face(1, CSocket); End(CSocket);
                                    }
                                }
                                else
                                {
                                    Text("Im Sorry but you dont have enough Gold to buy this item.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(1, CSocket); End(CSocket);
                                }
                            }
                            #endregion
                            #region Super Fury
                            else if (LinkBack == 18)
                            {
                                if (CSocket.Client.Money >= 35000000)
                                {
                                    if (CSocket.Client.Inventory.Count <= 39)
                                    {
                                        Money(-35000000, CSocket);
                                        AddItem(700023, 1, CSocket);
                                    }
                                    else
                                    {
                                        Text("Im Sorry but you dont have enough space in your bag.", CSocket);
                                        Link("Ok Thanks.", 255, CSocket);
                                        Face(1, CSocket); End(CSocket);
                                    }
                                }
                                else
                                {
                                    Text("Im Sorry but you dont have enough Gold to buy this item.", CSocket);
                                    Link("Ok Thanks.", 255, CSocket);
                                    Face(1, CSocket); End(CSocket);
                                }
                            }
                            #endregion
                            break;
                        }
                    #endregion