Upgrade Souls

01/21/2012 14:27 nemboy11#1
Hey im trying to get an NPC to upgrade to Soul Items And its Just not working Can someone help me please?

and i really need it urgently thanks

Code:
                        #region Market High Upgrade
                            case 705021:
                                {
                                    if (option == 0)
                                    {
                                        OptionText("As you know Magic Artisan sucks at upgrading high level gear. So i'm the one in charge of upgrading the ones he cannot.", GC);
                                        OptionLink("Great! Just what i needed.", 10, GC);
                                        OptionLink("Just passing by.", 255, GC);
                                        GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                        GC.SendPacket(Packets.NPCFinish());
                                        GC.Agreed = false;
                                    }
                                    else if (option == 10)
                                    {
                                        OptionText("Choose the equipment you want to upgrade.", GC);
                                        OptionLink("Headgear", 1, GC);
                                        OptionLink("Necklace/Bag", 2, GC);
                                        OptionLink("Armor", 3, GC);
                                        OptionLink("Weapon", 4, GC);
                                        OptionLink("Shield", 5, GC);
                                        OptionLink("Ring", 6, GC);
                                        OptionLink("Boots", 8, GC);
                                        GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                        GC.SendPacket(Packets.NPCFinish());
                                    }
                                    else if (option >= 1 && option <= 8)
                                    {
                                        Game.Item I = GC.MyChar.Equips.Get(option);
                                        byte PrevLevel = I.DBInfo.LevReq;

                                        Game.ItemIDManipulation IMan = new RawRCO.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)
                                                {
                                                    OptionText("50k CPS. Are you ready Bare in mind The Weapons i make are rare i can make SOUL ITEMS!!!?", GC);
                                                    OptionLink("Upgrade it.", option, GC);
                                                    OptionLink("Forget it.", 255, GC);
                                                    GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                                    GC.SendPacket(Packets.NPCFinish());
                                                    GC.Agreed = true;
                                                }
                                                else
                                                {
                                                    GC.Agreed = false;
                                                    if (GC.MyChar.CPs >= 50000)
                                                    {
                                                        GC.MyChar.CPs -= 50000;
                                                        I.ID = IMan.ToID();

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

                                                        OptionText("Here you are. It's done.", GC);
                                                        OptionLink("Thanks.", 255, GC);
                                                        GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                                        GC.SendPacket(Packets.NPCFinish());
                                                    }
                                                    else
                                                    {
                                                        OptionText("You don't have the CPS.", GC);
                                                        OptionLink("Ahh.", 255, GC);
                                                        GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                                        GC.SendPacket(Packets.NPCFinish());
                                                    }
                                                }
                                            }
                                            else
                                            {
                                                OptionText("You aren't high level enough to wear the item after upgrading.", GC);
                                                OptionLink("Alright.", 255, GC);
                                                GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                                GC.SendPacket(Packets.NPCFinish());
                                            }
                                        }

                                    }
                                    else
                                    {
                                        OptionText("The item cannot be upgraded anymore.", GC);
                                        OptionLink("Alright.", 255, GC);
                                        GC.SendPacket(Packets.NPCSetFace(N.Avatar));
                                        GC.SendPacket(Packets.NPCFinish());
                                    }
                                    break;
                                }
                            #endregion
02/09/2012 19:31 copyrut2008#2
for some reason, they are not interstet few things go public.
i hope moderators like pro4never and korvac and others.
take measures on this issue.
we support their effort, but also , we seek answers
whit the help of moderators we will put epvprs bag where it was. top....
thansk to all.
read and learning is the key of the future...