Register for your free account! | Forgot your password?

You last visited: Today at 19:00

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

Advertisement



Public Void

Discussion on Public Void within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Zkiller110's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 276
Received Thanks: 99
Public Void

just a quick question here im working on a 5165 server and im making a public void for setting the lvl of a weapons prof i got it to work but im asking what is extra unneeded code in this all i basicly did was copied the AddProfExp

Code:
        public void ProfLvl(ushort Wep, byte Level)
        {
            if (Profs.Contains(Wep))
            {
                Prof P = (Prof)Profs[Wep];
                if (P.Lvl < 20)
                {
                    Profs.Remove(Wep);
                    P.Lvl = Level;
                    if (P.Exp >= Database.ProfExp[P.Lvl])
                    {
                        P.Lvl++;
                        P.Exp = 0;
                        MyClient.LocalMessage(2000, "Your proficiency level has increased.");
                    }
                    Profs.Add(Wep, P);
                    MyClient.AddSend(Packets.Prof(P));
                }
            }
            else
            {
                Prof P = new Prof();
                P.ID = Wep;
                P.Lvl = 0;
                P.Exp = 0;
                NewProf(P);
            }
        }
Zkiller110 is offline  
Old 07/29/2010, 20:44   #2


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
You don't need to check the Exp. Just set the level to the specified one and just set the exp to 0.
CptSky is offline  
Thanks
1 User
Old 07/29/2010, 21:14   #3
 
Zkiller110's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 276
Received Thanks: 99
ok thanks
Zkiller110 is offline  
Reply


Similar Threads Similar Threads
[Visual C#] von public static void richtextbox in einer Form steuern
06/12/2010 - .NET Languages - 2 Replies
Hallo liebe Coders Erstmal vielen Dank das ihr immer so fleißig helft.. Ich hab mal wieder ein neues Problem: public static void txtboxaktu() { Form1 f1 = new Form1(); f1.richTextBox2Form1.Text = "test";
.Void Gordon Ca 1.2.6 Bypass GET IT NAO!
11/15/2009 - Combat Arms - 7 Replies
http://gordonca.net/showthread.php?11-V0id-s-Gordo nCA-1-2-6-Bypass READ NOW
[Help] void GetStatus
08/08/2009 - CO2 Private Server - 0 Replies
http://i783.photobucket.com/albums/yy117/archangel co08/untitled.jpg i got that error when i online both char at a time. Anyone can help how to fix it? Thanks.
Void Walker Productions
12/27/2006 - WoW Exploits, Hacks, Tools & Macros - 10 Replies
Hi there, this is new exploration video: Void Walker Productions Presents GM ISLAND 2.0 = http://www.youtube.com/watch?v=j9o79bo7kjI ORG AH / ORG GATE / AQUARIUM 2.0 = http://www.youtube.com/watch?v=j9o79bo7kjI EMERALD DREAM / Hyjal / Under org / Under RFD/ Under GM island videos coming in a week or so There a few reason im making this post #1 to get my videos out to people #2 There is a lot of people asking how to do stuff and theese videos will explain and if the video doesnt...
[Request]void zones
11/29/2006 - World of Warcraft - 2 Replies
So da ich immer wieder diesen tollen nervigen bug habe das manche voidzones von lady blaumex unsichtbar sind wollte ich nun mal versuchen ob man den fehler durch ersetzen des models fixen kann z.b. durch das kel thuzad model ... sprich die voidzones sehn aus wie kel .. oder irgendwas anderes was eine größere höhe hat als die zones weil meine vermutung beruht darauf das die models zu tief sprich unter die erde "fallen" spawnen was auch immer so das man sie deswegen nicht sieht .. nun steh...



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


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.