Register for your free account! | Forgot your password?

You last visited: Today at 15:51

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

Advertisement



problem with my NPC

Discussion on problem with my NPC within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Jay10291's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 143
Received Thanks: 155
problem with my NPC

I made this NPC for practise and it was working fine before. Now its deciding not to give me the items anymore. Wtf could cause that.. i didnt change anything. Heres a part of the code, the rest is coded the same. Can you guys go through it and tell me why its not giving me the item? -.-
Code:
#region DragonSoulShop
                case 10292:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Dragon Souls here! Get your Dragon Souls!");
                                    dialog.Link("Who are you?", 1);
                                    dialog.Link("Not interested.", 255);
                                    dialog.Avatar(6);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {
                                    dialog.Text("I have an abundance of Dragon Souls I can give you, but I'll charge a fee of 5,000 CPs for each one. Check out the Artifacts Inventory if you're interested.");
                                    dialog.Link("Artifacts Inventory.", 2);
                                    dialog.Link("Nevermind.", 255);
                                    dialog.Avatar(6);
                                    dialog.Send();
                                    break;
                                }
                            case 2:
                                {
                                    dialog.Text("See anything you need?");
                                    dialog.Link("Boots", 3);
                                    dialog.Link("Rings", 4);
                                    dialog.Link("Bracelets", 5);
                                    dialog.Link("1-handers", 6);
                                    dialog.Link("2-handers", 7);
                                    dialog.Link("Headgear", 8);
                                    dialog.Link("Armors", 9);
                                    dialog.Link("Shields", 99);
                                    dialog.Avatar(3);
                                    dialog.Send();
                                    break;
                                }
                            #region Boots Select
                            case 3:
                                {
                                    dialog.Text("Ahh, boots? I have some right here.");
                                    dialog.Link("Flame Boots", 10);
                                    dialog.Avatar(3);
                                    dialog.Send();
                                    break;
                                }
                            #endregion
#region Boots Give
                            case 10:
                                {
                                    if (client.Entity.Level >= 70)
                                    {
                                        if (client.Inventory.Count < 40)
                                        {
                                            if (client.Entity.ConquerPoints >= 5000)
                                            {
                                                client.Inventory.Add(824001, 0, 1);
                                                client.Entity.ConquerPoints -= 5000;
                                            }
                                            else
                                            {
                                                dialog.Text("You do not have 5,000 CPs");
                                                dialog.Link("Darn.", 255);
                                                dialog.Avatar(3);
                                                dialog.Send();
                                                break;
                                            }
                                        }
                                        else
                                        {
                                            dialog.Text("Please free up some space in your inventory first.");
                                            dialog.Link("Will do.", 255);
                                            dialog.Avatar(3);
                                            dialog.Send();
                                            break;
                                        }
                                    }
                                    else
                                    {
                                        dialog.Text("You do not meet the level requirement. You must reach level 70 before you can buy Artifiacts.");
                                        dialog.Link("Will do.", 255);
                                        dialog.Avatar(3);
                                        dialog.Send();
                                        break;
                                    }
                                    break;
                                }
                            #endregion
**Edit**
It started working again, then stopped again. I have nooo clue wtf is going on but its pissing me off :@
Jay10291 is offline  
Old 06/28/2011, 09:54   #2
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Are you Jay from Project Phoenix in Dec. 2009?
Spirited42 is offline  
Reply


Similar Threads Similar Threads
[Hilfe]Ungelöstes Server Erstell Problem, ausführliche Problem Schilderung
09/15/2011 - Flyff Private Server - 8 Replies
Hey Com! Ich hoffe, dass dieser Thread nicht als Spamthread angesehen wird, da ich ja gestern schon einen zu diesem Thema eröffnet habe. Sorry wenn ich euch mit dem Thema nerve, aber ich sitze nun schon 4 Tage über dem Problem, und finde einfach keine Lösung. Nun werde ich hier allerdings eine ausführlichere Beschreibung des Problems geben. Mein Problem ist, dass ich den Windows Mssql Server 2008/2005 aus Sedrika's TuT nicht installieren kann, da sobald ich ihn immer installiere...



All times are GMT +1. The time now is 15:52.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.