Register for your free account! | Forgot your password?

You last visited: Today at 20:07

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

Advertisement



VIP Repair?

Discussion on VIP Repair? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2020
Posts: 30
Received Thanks: 2
VIP Repair?

So it works, But has an odd bug where boots, or ring will drop instantly to 0 dura. its very odd. Has anyone come across this?
TheFadedOne is offline  
Old 11/07/2022, 00:57   #2
 
elite*gold: 0
Join Date: Mar 2021
Posts: 13
Received Thanks: 5
what project are you working on?
divulga is offline  
Old 11/09/2022, 00:55   #3
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 865
Received Thanks: 370
Quote:
Originally Posted by TheFadedOne View Post
So it works, But has an odd bug where boots, or ring will drop instantly to 0 dura. its very odd. Has anyone come across this?
I'll take a look at your code.
pintinho12 is offline  
Old 11/23/2022, 23:10   #4
 
elite*gold: 0
Join Date: Nov 2020
Posts: 30
Received Thanks: 2
Quote:
Originally Posted by pintinho12 View Post
I'll take a look at your code.
Thank you dude

Code:
public static void HandleVipRepair(Main.GameClient GC)
        {
            try
            {
                for (byte i = 1; i < 10; i++)
                {
                    Game.Item Repairing = GC.MyChar.Equips.Get(i);
                    if (Repairing.ID != 0)
                    {
                        int nRecoverDurability = Math.Max(0, (Repairing.MaxDur - Repairing.CurDur));
                        if (nRecoverDurability == 0) return;
                        int nRepairCost = (int)(Math.Max(1, ((Repairing.DBInfo.Worth / 5) * nRecoverDurability / Repairing.MaxDur)));
                        if (GC.MyChar.Silvers >= (nRepairCost))
                        {
                            GC.MyChar.Silvers -= (uint)(nRepairCost);
                            Repairing.CurDur = Repairing.MaxDur;
                            GC.AddSend(Packets.UpdateItem(Repairing, i));
                           // GC.MyChar.BrokenItem = false;
                        }
                        else GC.LocalMessage(2005, "You don`t have enough money. Come back after you have more!");
                    }
                }
            }
            catch (Exception e) { Console.WriteLine(e); }
        }
TheFadedOne is offline  
Reply


Similar Threads Similar Threads
Battle pirates Glith repair or instan repair
05/01/2015 - Facebook - 0 Replies
who have lua script for instant repair ? send me please
[TIP] Repair Your Ship Without using URIDIUM OR REPAIR CREDIT
05/25/2012 - DarkOrbit - 15 Replies
Hey Guys, I know many of you know this trick. But this trick is for those who does't know about that If your ship is destroyed and u have no uridum or repair credits just click on GALAXY GATE and use your GG energy when you will get the Extra Hp your ship will automatically repairs and it doen't cost and uridium or repair credit. Sory for my bad english THANX FOR READING
please help how i can auto vip repair
04/02/2010 - Conquer Online 2 - 0 Replies
please help how i can auto vip repair:D



All times are GMT +1. The time now is 20:07.


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