Register for your free account! | Forgot your password?

You last visited: Today at 11:02

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

Advertisement



Weapon MasteR

Discussion on Weapon MasteR within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 83
Received Thanks: 8
Weapon MasteR

heLp me i get a eror .. in 5165


Code:
                            #region WeaponMaster
                            case 7050:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("I can upgrade your items here for a DB each time. But remember for changes to take effect you need to click Finish when done."));
                                        GC.AddSend(Packets.NPCLink("Upgrade.", 10));
                                        GC.AddSend(Packets.NPCLink("Hmmmmm.", 255)); 
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        GC.Agreed = false;
                                    }
                                    else if (Control == 10)
                                    {
                                        GC.AddSend(Packets.NPCSay("Choose the equipment you want to upgrade."));
                                        GC.AddSend(Packets.NPCLink("Headgear", 1));
                                        GC.AddSend(Packets.NPCLink("Necklace/Bag", 2));
                                        GC.AddSend(Packets.NPCLink("Armor", 3));
                                        GC.AddSend(Packets.NPCLink("Weapon", 4));
                                        GC.AddSend(Packets.NPCLink("Shield", 5));
                                        GC.AddSend(Packets.NPCLink("Ring", 6));
                                        GC.AddSend(Packets.NPCLink("Boots", 8));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 65)
                                    {
                                        GC.Disconnect();
                                    }
                                    else if (Control >= 1 && Control <= 8)
                                    {
                                        Game.Item I = GC.MyChar.Equips.Get(Control);
                                        byte PrevLevel = I.DBInfo.LevReq;

                                        Game.ItemIDManipulation IMan = new NewestCOServer.Game.ItemIDManipulation(I.ID);
                                        IMan.IncreaseLevel();

                                        DatabaseItem Di = (DatabaseItem)Database.DatabaseItems[IMan.ToID()];

                                        byte NewLevel = Di.LevReq;
                                        if (NewLevel > PrevLevel)
                                        {
                                            if (GC.MyChar.Level >= NewLevel)
                                            {
                                                if (!GC.Agreed)
                                                {
                                                    GC.AddSend(Packets.NPCSay("You need a DragonBall. Are you ready?"));
                                                    GC.AddSend(Packets.NPCLink("Upgrade it.", Control));
                                                    GC.AddSend(Packets.NPCLink("Forget it.", 255)); 
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                    GC.Agreed = true;
                                                }
                                                else
                                                {
                                                    GC.Agreed = false;
                                                    if (GC.MyChar.InventoryContains(1088000, 1))
                                                    {

                                                        GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
                                                        I.ID = IMan.ToID();

                                                        GC.MyChar.Equips.Replace(Control, I, GC.MyChar);
                                                        GC.MyChar.EquipStats(Control, true);

                                                        GC.AddSend(Packets.NPCSay("If you are done upgrading click finish for attack changes to take effect!"));
                                                        GC.AddSend(Packets.NPCLink("Finished", 65));
                                                        GC.AddSend(Packets.NPCLink("Upgrade More First", 10));
                                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                        GC.AddSend(Packets.NPCFinish());

                                                    }
                                                    else
                                                    {
                                                        GC.AddSend(Packets.NPCSay("You don't have a DragonBall."));
                                                        GC.AddSend(Packets.NPCLink("Oh hold on.", 255));  
                                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                        GC.AddSend(Packets.NPCFinish()); 
                                                    }
                                                }
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("You aren't high level enough to wear the item after upgrading."));
                                                GC.AddSend(Packets.NPCLink("Alright.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }

                                    }
                                    else
                                    {
                                        GC.AddSend(Packets.NPCSay("The item cannot be upgraded anymore."));
                                        GC.AddSend(Packets.NPCLink("Alright.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    break;
                                }
                            #endregion
kewell5454 is offline  
Old 06/10/2010, 17:47   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 128
Received Thanks: 50
What is the error?
s.bat is offline  
Old 06/10/2010, 17:49   #3
 
elite*gold: 0
Join Date: Feb 2010
Posts: 83
Received Thanks: 8
i am talk npc exampLe : Armor Upgrade .. and NPC no say : more
kewell5454 is offline  
Reply


Similar Threads Similar Threads
weapon master to upgrade tower/fan?
07/04/2010 - CO2 Private Server - 7 Replies
hi, i was searching a code to add tower/fan in weapon master, or npc to upgrade tower/fan, but today i think i'm not lucky x) here is my weapon master code #region Market High Upgrade case 7050: { if (Control == 0) { GC.AddSend(Packets.NPCSay("As you know Magic Artisan sucks at upgrading high level gear. So i'm the...
Weapon MAster 5095
05/19/2010 - CO2 Private Server - 3 Replies
hey all i need Weapon master Npc normal mean= max level ring=126maxmum bracelet=126maxmum armors and robs=120maxmum boots=129maxmum head gears=112maxmum i need it normal can any one upload sql file to me And Thanks
[Request] Weapon Master
11/28/2009 - CO2 Private Server - 4 Replies
Hello there, im currently editing, CoEmu.V2 and I just cannot get my weapon master working, so im here to ask would someone be kind enough to release me there CoEmu.V2 Weapon Master Code. I have tried to search but i found nothing :(.. If you could/would possibly link me to one would be great too.. Kindest Regards Phenom
WTS> Cabal FS 46 /w Astral board and master/master
05/24/2008 - Cabal Online Trading - 0 Replies
If anyone wants to buy this at all just msn me or xfire me I'm selling it for fairly cheap so just offer a price. Xfire : zblackrosez Msn : [email protected]



All times are GMT +2. The time now is 11:02.


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