Register for your free account! | Forgot your password?

You last visited: Today at 19:08

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

Advertisement



weapon master bug

Discussion on weapon master bug within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2015
Posts: 15
Received Thanks: 1
weapon master bug

I just opened conquer 5065 and i have some bugs like weapon master. Even though an item is above 110 can't be upgrade. And the npc says that the item is not above 110...
boki&steve is offline  
Old 04/04/2015, 14:24   #2
 
m e n a's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 137
Received Thanks: 58
Read NPC Say carefully, don't want to get spammed with level, I've made it as I like.

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Redux.Packets.Game;

namespace Redux.Npcs
{

    /// <summary>
    /// Handles NPC usage for [7050] Eqipment Master
    /// </summary>
    public class NPC_7050 : INpc
    {

        public NPC_7050(Game_Server.Player _client)
            : base(_client)
        {
            ID = 7050;
            Face = 9;
        }

        public override void Run(Game_Server.Player _client, ushort _linkback)
        {
            Responses = new List<NpcDialogPacket>();
            AddAvatar();
            switch (_linkback)
            {

                case 0:
                    {
                        AddText("Each upgrade requires 1 DragonBall and there is no turning back!, your gears should be above level 15 to be upgraded. ");
                        AddText("\n What item would you like me to upgrade?");
                        AddOption("Helmet/Earrings/TaoCap ", 11);
                        AddOption("Necklace/Bag ", 12);
                        AddOption("Ring/Bracelet ", 16);
                        AddOption("Right Weapon ", 14);
                        AddOption("Shield/Left Weapon ", 15);
                        AddOption("Armor ", 13);
                        AddOption("Boots ", 18);
                        AddOption("I changed my mind. ", 255);
                        break;
                    }
                case 11:
                case 12:
                case 13:
                case 14:
                case 15:
                case 16:
                case 18:
                    {
                        var equipment = _client.Equipment.GetItemBySlot((Enum.ItemLocation)(_linkback % 10));
                        if (equipment == null)
                        {
                            AddText("There must be some mistake. You must be wearing an item before you may upgrade it!");
                            AddOption("Nevermind", 255);
                        }
                        else if (!_client.HasItem(1088000))
                        {
                            AddText("There must be some mistake. You must pay an DragonBall before you may upgrade it!");
                            AddOption("Nevermind", 255);
                        }
                        else if (equipment.EquipmentLevel <= 0)
                        {
                            AddText("There must be some mistake.");
                            AddOption("Nevermind", 255);

                        }
                        else if (equipment.GetNextItemLevel() == equipment.StaticID)
                        {
                            AddText("Your item can't be upgraded anymore!");
                            AddOption("Nevermind", 255);

                        }

                        else if (_client.Level < equipment.GetDBItemByStaticID(equipment.GetNextItemLevel()).LevelReq)
                        {
                            AddText("There must be some mistake. You are not high level enough to wear the item after upgrade!");
                            AddOption("Nevermind", 255);
                        }

                        else
                        {
                            equipment.ChangeItemID(equipment.GetNextItemLevel());
                            _client.DeleteItem(1088000);
                            _client.Send(ItemInformationPacket.Create(equipment, Enum.ItemInfoAction.Update));
                            equipment.Save();
                        }
                        break;
                    }


            }
            AddFinish();
            Send();

        }
    }
}
m e n a is offline  
Thanks
1 User
Old 04/06/2015, 13:46   #3
 
elite*gold: 0
Join Date: Apr 2015
Posts: 15
Received Thanks: 1
Thx a lot man you are the best!!!
boki&steve is offline  
Reply


Similar Threads Similar Threads
[Fixed]Weapon Master
07/29/2012 - CO2 PServer Guides & Releases - 6 Replies
Hello, many people had the same problem as me, Weapon Master adds +20k attack every level. And he keeps taking dbs even after you achieve the highest level, i tried to fix those things, i got help in the 1st problem. I know it's very easy to fix, but i felt that it would be nice to share it on elitepvpers This is the new Weapon Master code(if your weapon master doesn't have these problems don't use mine, it might not be compatible with your source) #region Weapon Master
Hi I am confuse about this Weapon Master
03/24/2012 - CO2 Private Server - 2 Replies
all Items can be upgrade to their high level limit except the Bracelet, can not be upgrade the level upto lvl 132 to 137 from 127, I use the impulse one.... can someone check this out please? case 7050: { switch (npcRequest.OptionID) { case 0: { ...
[Request] Weapon Master
10/01/2010 - CO2 Private Server - 19 Replies
Can anyone help me add an option for upgrading fan and towers to 130? Also i dont know why but he only lvls some items past 130. the rest dont lvl and he doesnt say anything. about it so are there fixes for this? #region WeaponMaster case 7050: { if (Control == 0) { ...
Weapon MasteR
06/10/2010 - CO2 Private Server - 2 Replies
heLp me i get a eror .. in 5165 #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.")); ...
[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



All times are GMT +1. The time now is 19:09.


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.