Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 16:30

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

Advertisement



[Request] ArtisanWind Met/DB Upgrade TC

Discussion on [Request] ArtisanWind Met/DB Upgrade TC within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 128
Received Thanks: 80
[Request] ArtisanWind Met/DB Upgrade TC

Anyone has a code for artisanwind that upgrades items in twin city. Its LOTF. Anyone can help me. thanks
nestreys is offline  
Old 07/17/2009, 22:22   #2
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
What source are you using? Most likely Binary right?
n0mansland is offline  
Old 07/17/2009, 22:37   #3
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
sigh, work out the changes for yourself.
though I doubt the mass of epvp is capable of that.

Code:
using System;
using System.IO;
using ConquerServer_v2.Core;
using ConquerServer_v2.Client;
using ConquerServer_v2.Database;
using ConquerServer_v2.Packet_Structures;

namespace ConquerServer_v2.Packet_Processor
{
    public unsafe partial class PacketProcessor
    {
        public static void UpgradeItemLevel(GameClient Client, ItemUsuagePacket* Packet)
        {
            Item MainItem = Client.Inventory.Search(Packet->UID);
            if (MainItem != null)
            {
                byte SubItemSlot;
                Item SubItem = Client.Inventory.Search(Packet->dwParam1, out SubItemSlot);
                if (SubItem != null)
                {
                    if (SubItem.ID == 1088001)
                    {
                        uint itemID = MainItem.ID;
                        int itemType = MainItem.GetSmallItemType();
                        switch (itemType)
                        {
                            case 11: itemID += 10; break; // head
                            case 12: itemID += 20; break; // neck
                            case 15: itemID += 20; break; // ring
                            case 13: itemID += 10; break; // armor
                            case 16: itemID += 20; break; // boots
                            default:
                                {
                                    if (itemType >= 40 && itemType <= 61) // weapons
                                        itemID += 10;
                                    break;
                                }
                        }
                        if (itemID != MainItem.ID)
                        {
                            if (File.Exists(ServerDatabase.Path + @"\Items\" + itemID.ToString() + ".ini"))
                            {
                                Client.Inventory.RemoveBySlot(SubItemSlot);
                                if (Kernel.Random.Next(1000) % 100 <= 40)
                                {
                                    MainItem.ID = itemID;
                                    MainItem.SendInventoryUpdate(Client);
                                }
                                return;
                            }
                        }
                        Client.Send(MessageConst.CANNOT_UPGRADE_LEVEL);
                    }
                }
            }
        }
    }
}
Code:
using System;
using ConquerServer_v2.Core;
using ConquerServer_v2.Client;
using ConquerServer_v2.Database;
using ConquerServer_v2.Packet_Structures;

namespace ConquerServer_v2.Packet_Processor
{
    public unsafe partial class PacketProcessor
    {
        public static void UpgradeItemQuality(GameClient Client, ItemUsuagePacket* Packet)
        {
            Item MainItem = Client.Inventory.Search(Packet->UID);
            if (MainItem != null)
            {
                byte SubItemSlot;
                Item SubItem = Client.Inventory.Search(Packet->dwParam1, out SubItemSlot);
                if (SubItem != null)
                {
                    if (SubItem.ID == 1088000)
                    {
                        byte itemQuality = MainItem.GetQuality();
                        if (itemQuality >= 3 && itemQuality < 9)
                        {   
                            Client.Inventory.RemoveBySlot(SubItemSlot);
                            bool Lucky = false;
                            if (itemQuality < 6)
                                Lucky = Kernel.Random.Next(1000) % 100 <= 80;
                            else if (itemQuality == 6)
                                Lucky = Kernel.Random.Next(1000) % 100 <= 50;
                            else if (itemQuality == 7)
                                Lucky = Kernel.Random.Next(1000) % 100 <= 20;
                            else if (itemQuality == 8)
                                Lucky = Kernel.Random.Next(1000) % 100 <= 8;
                            if (Lucky)
                            {
                                MainItem.ID++;
                                MainItem.SendInventoryUpdate(Client);
                            }
                        }
                        else
                        {
                            Client.Send(MessageConst.CANNOT_UPGRADE_QUALITY);
                        }
                    }
                }
            }
        }
    }
}
InfamousNoone is offline  
Thanks
1 User
Old 07/18/2009, 04:57   #4
 
elite*gold: 0
Join Date: Nov 2007
Posts: 128
Received Thanks: 80
Its an LOTF source.
nestreys is offline  
Reply


Similar Threads Similar Threads
upgrade core Upgrade hint
08/18/2009 - Cabal Hacks, Bots, Cheats, Exploits & Macros - 1 Replies
i saw ppl asking for the tools or hack on how to +0 to +7. kindly assist
[HELP] Artisanwind
05/26/2009 - CO2 Private Server - 0 Replies
Can someone please tell me wehre he is in the source. im uuseing Lotf :)
[Help Request] Custome upgrade glow
05/13/2009 - Dekaron Private Server - 3 Replies
Hey guys, I'm not asking anyone to hand me what I need. Just maybe some insight on what could possibly be wrong. I'm trying to create a new glow effect for my weapons. I added in +10 for my server and wanted something to look a little different. I already editted the levelup/eff_upgrade dds files to the color I want. I editted the effectscene and effectdata files as well, just not sure if I put in what I needed, because obviously something is wrong. If anyone has any ideas on what I can...
[Upgrade]New Ip
03/22/2008 - SRO Private Server - 61 Replies
http://img151.imageshack.us/img151/989/semttulozq5 ie0.th.jpg ip's / port / id/ pw works for me ;) dont forget to say thanks
upgrade value
10/16/2007 - Kal Online - 5 Replies
Gibt es eine Möglichkeit das Upgraden zu beeinflussen. Da Faken nicht geht, vieleicht dann das: Meine Idee ist den prozentualen Wert für den succ/fail zu ändern ich denke mal das der Zufallsgenerator des Clients den Wert (z.B. 3% für G59+) vom Server bekommt und der Rest auf dem Client abläuft. Dann könnte man den Wert ja einfach auf 100% setzen und bräuchte reale Stones, aber halt nur einen pro Grade ;) Kennt jemand die Speicheraddresse/values dafür?



All times are GMT +1. The time now is 16:30.


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