Register for your free account! | Forgot your password?

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

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

Advertisement



Checking code before I put it into my source

Discussion on Checking code before I put it into my source within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 289
Received Thanks: 425
Checking code before I put it into my source

#request close
Got nobility working
TehPwnzor is offline  
Thanks
3 Users
Old 07/30/2009, 15:05   #2
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Based off CoMy's source ??? this is a poorly coded loft and also he copied and pasted from here.. USE Search
danielachraf is offline  
Old 07/30/2009, 15:06   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 289
Received Thanks: 425
yeah i know i was just checking if it was all right
TehPwnzor is offline  
Thanks
2 Users
Old 07/31/2009, 13:18   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 289
Received Thanks: 425
sorry for the doublle post but i need to bump this

#BUMP

somebody please help
TehPwnzor is offline  
Thanks
2 Users
Old 07/31/2009, 13:50   #5
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Its alright
~Yuki~ is offline  
Old 07/31/2009, 14:02   #6
 
elite*gold: 0
Join Date: Jul 2009
Posts: 289
Received Thanks: 425
and for the database
it should be
PHP Code:
      Rank      int(10)           UNSIGNED      Notnull      9 
and
PHP Code:
      Donation      int(10)           UNSIGNED      Notnull      0 
right?
TehPwnzor is offline  
Thanks
2 Users
Old 07/31/2009, 14:21   #7
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
try it if it errors its not
~Yuki~ is offline  
Old 07/31/2009, 17:23   #8
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Why is everyone using CoMy >.<?

Anyway.. I'm sure you figured out the problem by now.. but yea, you'll have to add Donation and Rank into your database.. Also, are you forgetting the
Code:
Public Static Void SaveDonation
Part? or you just didn't add it in here..

Personally I wouldn't use that code.. but if it works it works.. Unless you plan on adding/changing some things.. Looks like they haven't added the extra potency part.
n0mansland is offline  
Old 07/31/2009, 17:27   #9
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Why are you asking until you copied and pasted here from the other thread? make yourself a coder or something like that ?
danielachraf is offline  
Old 07/31/2009, 21:45   #10
 
elite*gold: 0
Join Date: Jul 2009
Posts: 289
Received Thanks: 425
nah i already had the saverank void and blah blah
hmm i got ti all coded now all i need to do is code in somethin so royalty get bonus potency
TehPwnzor is offline  
Thanks
2 Users
Old 07/31/2009, 21:54   #11
 
elite*gold: 0
Join Date: Aug 2006
Posts: 323
Received Thanks: 14
In the King/Queen parts of the NPC control the MyChar.Model's are incorrect. Hopefully this will correct the issue. If not, feel free to point and laugh at me. I would also lose the last else if myself, and just have else becuase im picky as they get.

Code:
          if (CurrentNPC == 8410)
                        {
                            if (Control == 1)
                            {
                                if (MyChar.CPs > 1000000 && MyChar.Model != 2001 && MyChar.Model != 2002) // 1 Million
                                {
                                    MyChar.CPs -= 1000000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                    MyChar.Rank = 1;
                                    MyChar.Donation += 1000000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                    World.SendMsgToAll(" " + MyChar.Name + " is a King now! ", "SYSTEM", 2010);

                                }
                                else if (MyChar.CPs < 1000000)
                                {
                                    SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a King!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                else if (MyChar.Model == 2001 || MyChar.Model == 2002)
                                {
                                    SendPacket(General.MyPackets.NPCSay("You are a lady, so you must become a Queen!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 2)
                            {
                                if (MyChar.CPs > 1000000 && MyChar.Model != 1003 && MyChar.Model != 1004) // 1 Million
                                {
                                    MyChar.CPs -= 1000000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                    MyChar.Rank = 2;
                                    MyChar.Donation += 1000000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                    World.SendMsgToAll(" " + MyChar.Name + " is a Queen now! ", "SYSTEM", 2010);
                                }
                                else if (MyChar.CPs < 1000000)
                                {
                                    SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a Queen!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                else if (MyChar.Model == 1003 || MyChar.Model == 1004)
                                {
                                    SendPacket(General.MyPackets.NPCSay("You are a man, so you must become a King!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 3)
                            {
                                if (MyChar.CPs >= 750000) // 750 Thousand
                                {
                                    MyChar.CPs -= 750000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                    MyChar.Rank = 3;
                                    MyChar.Donation += 750000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                    World.SendMsgToAll(" " + MyChar.Name + " is a Prince now! ", "SYSTEM", 2010);
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a Prince!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 4)
                            {
                                if (MyChar.CPs >= 600000) // 600 Thousand
                                {
                                    MyChar.CPs -= 600000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                    MyChar.Rank = 4;
                                    MyChar.Donation += 600000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                    World.SendMsgToAll(" " + MyChar.Name + " is a Duke now! ", "SYSTEM", 2010);
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a Duke!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 5)
                            {
                                if (MyChar.CPs >= 500000) // 500 Thousand
                                {
                                    MyChar.CPs -= 500000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                    MyChar.Rank = 5;
                                    MyChar.Donation += 500000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                    World.SendMsgToAll(" " + MyChar.Name + " is an Earl now! ", "SYSTEM", 2010);
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become an Earl!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (Control == 6)
                            {
                                if (MyChar.CPs >= 350000) // 350 Thousand
                                {
                                    MyChar.CPs -= 350000;
                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                    MyChar.Rank = 6;
                                    MyChar.Donation += 350000;
                                    MyChar.SaveRank();
                                    MyChar.SaveDonation();
                                    World.UpdateSpawn(MyChar);
                                    World.SendMsgToAll(" " + MyChar.Name + " is a Knight now! ", "SYSTEM", 2010);
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("You dont have enough CPs to become a Knight!"));
                                    SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                        }
killermickle is offline  
Reply


Similar Threads Similar Threads
[Source] SRO BOT Source Code(AutoIt)
09/16/2011 - SRO Hacks, Bots, Cheats & Exploits - 34 Replies
I am finally going to release the source code to srobot.. it is a autoit bot.. ( befor you flame on auto it... check it out ) this is a very very advanced autoit script with read/write memory options. all this bot needs is to be updated with the new offsets and such. so please do not update this and just put your name on it.. as iv seen someone else in this forum has did.. not saying any names he knows who he is... after we spent a get bit of time on this script he wants to rip the source and...
[RELEASE] [OPEN SOURCE] CE 5.5 Pointer to AutoIt Source-Code
02/13/2011 - AutoIt - 6 Replies
Habe heute erst gemerkt, dass es hier eine AutoIt Sektion gibt xD also poste ich mal mein Programm mit rein. Funktionsweise: 1. in CE Rechtsklick auf den Pointer und auf "Copy" klicken 2. in meinem Programm auf "Code generieren" klicken 3. In euer Scite gehen und einfügen Hier ist der Source Code vom Programm:



All times are GMT +1. The time now is 18:23.


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.