Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 01:20

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

Advertisement



[RE-Release] Another Code for Nobility NPC

Discussion on [RE-Release] Another Code for Nobility NPC within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 08/06/2009, 05:53   #16
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
I assumed this was right. Idk how teh f*ck to add an image so I'll just tell you that I have Rank and Donation added in character table like this

Name Type Length Decimals Allow Null Default
Rank int 10 0 not null 0
Donation int 10 0 not null 0
Jay1029 is offline  
Old 08/07/2009, 06:05   #17
 
ZkiNeF's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 80
Received Thanks: 7
Obviously, this code lacks many things.
Add to MySQL tables in Character, SaveDonation () in client Database.cs and character ... Add Character variables, etc. For that there is already a post. This is just to submit my change of ncp which recognizes your char if you are a man or woman for the matter of the king or queen.

And sorry for the text in SPanish, my private server is in spanish and only copy-paste a piece of my source code.
ZkiNeF is offline  
Old 08/12/2009, 22:07   #18
 
elite*gold: 0
Join Date: May 2006
Posts: 828
Received Thanks: 235
Translated..

Quote:
if (CurrentNPC == 8410)
{
SendPacket(General.MyPackets.NPCSay("I'm in charge of making ranking people."));
SendPacket(General.MyPackets.NPCSay(" If you wan't to be ranked"));
SendPacket(General.MyPackets.NPCSay(" You'll have to donate..."));
SendPacket(General.MyPackets.NPCLink("I have to donate?", 20));
SendPacket(General.MyPackets.NPCLink("Donate? HA!", 255));
SendPacket(General.MyPackets.NPCSetFace(28));
SendPacket(General.MyPackets.NPCFinish());
}

Quote:
if (CurrentNPC == 8410)
{
if (Control == 1)
{
if (MyChar.Silvers >= 500000000 && MyChar.Model == 1003 || MyChar.Silvers >= 500000000 && MyChar.Model == 1004) // King
{
MyChar.Silvers -= 500000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
MyChar.Rank = 1;
MyChar.Donation += 500000000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
World.SendMsgToAll(" ATTENTION! " + MyChar.Name + " Has become a King! #35 ", "SYSTEM", 2010);
SendPacket(General.MyPackets.NPCSay("Long live the Queen!"));
SendPacket(General.MyPackets.NPCLink("Oh...", 255));
SendPacket(General.MyPackets.NPCSetFace(28));
SendPacket(General.MyPackets.NPCFinish());

}
else if (MyChar.Silvers < 500000000 && MyChar.Model == 1003 || MyChar.Silvers < 500000000 && MyChar.Model == 1004) // no money
{
SendPacket(General.MyPackets.NPCSay("You don't have enough money."));
SendPacket(General.MyPackets.NPCLink("Oh...", 255));
SendPacket(General.MyPackets.NPCSetFace(28));
SendPacket(General.MyPackets.NPCFinish());
}
else if (MyChar.Silvers >= 500000000 && MyChar.Model == 2001 || MyChar.Silvers >= 500000000 && MyChar.Model == 2002) // queen
{
MyChar.Silvers -= 500000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
MyChar.Rank = 2;
MyChar.Donation += 500000000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
World.SendMsgToAll(" ATTENTION! " + MyChar.Name + " Has become a Queen! #35 ", "SYSTEM", 2010);
}
else if (MyChar.Silvers < 500000000 && MyChar.Model == 2001 || MyChar.Silvers < 500000000 && MyChar.Model == 2002) // no money
{
SendPacket(General.MyPackets.NPCSay("You don't have enough money"));
SendPacket(General.MyPackets.NPCLink("Oh...", 255));
SendPacket(General.MyPackets.NPCSetFace(28));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 3)
{
if (MyChar.Silvers >= 300000000) // 300 Million
{
MyChar.Silvers -= 300000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
MyChar.Rank = 3;
MyChar.Donation += 300000000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);

}
else
{
SendPacket(General.MyPackets.NPCSay("You don't have enough money."));
SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 4)
{
if (MyChar.Silvers >= 70000000) // 70 Million
{
MyChar.Silvers -= 70000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
MyChar.Rank = 4;
MyChar.Donation += 70000000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
}
else
{
SendPacket(General.MyPackets.NPCSay("You don't have enough money."));
SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 5)
{
if (MyChar.Silvers >= 50000000) // 50 Million
{
MyChar.Silvers -= 50000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
MyChar.Rank = 5;
MyChar.Donation += 50000000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
}
else
{
SendPacket(General.MyPackets.NPCSay("You don't have enough money."));
SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 6)
{
if (MyChar.Silvers >= 30000000) // 30 Million
{
MyChar.Silvers -= 30000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
MyChar.Rank = 6;
MyChar.Donation += 30000000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
}
else
{
SendPacket(General.MyPackets.NPCSay("You don't have enough money."));
SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 7)
{
if (MyChar.Silvers >= 3000000) // 3 Million
{
MyChar.Silvers -= 3000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
MyChar.Rank = 7;
MyChar.Donation += 3000000;
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
}
else
{
SendPacket(General.MyPackets.NPCSay("You don't have enough money."));
SendPacket(General.MyPackets.NPCLink("Oh sorry...", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 20)
{
if (MyChar.Level >= 100)
{
SendPacket(General.MyPackets.NPCSay("Donate to become a King!"));
SendPacket(General.MyPackets.NPCLink("How much do I have to donate?", 21));
SendPacket(General.MyPackets.NPCLink("I will not donate my money", 255));
SendPacket(General.MyPackets.NPCSetFace(28));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("You have to be level 100+ to donate."));
SendPacket(General.MyPackets.NPCSay("Ok."));
SendPacket(General.MyPackets.NPCLink("Lame!", 255));
SendPacket(General.MyPackets.NPCSetFace(28));
SendPacket(General.MyPackets.NPCFinish());
}
}
if (Control == 21)
{
SendPacket(General.MyPackets.NPCSay("Good the money is high."));
SendPacket(General.MyPackets.NPCSay("The payers will be awarded."));
SendPacket(General.MyPackets.NPCSay("It's not compatible, ok?"));
SendPacket(General.MyPackets.NPCLink("King/Queen (500kk)", 1));
SendPacket(General.MyPackets.NPCLink("Prince (300kk)", 3));
SendPacket(General.MyPackets.NPCLink("Duke (70kk)", 4));
SendPacket(General.MyPackets.NPCLink("Baron (50kk)", 5));
SendPacket(General.MyPackets.NPCLink("Knight (30kk)", 6));
SendPacket(General.MyPackets.NPCLink("Lord (3kk)", 7));
SendPacket(General.MyPackets.NPCLink("See ya...", 255));
SendPacket(General.MyPackets.NPCSetFace(28));
SendPacket(General.MyPackets.NPCFinish());
}
}
blade911 is offline  
Reply


Similar Threads Similar Threads
[Release]CoEmu(V2) Nobility Completed 90%
12/23/2009 - CO2 PServer Guides & Releases - 8 Replies
Here you will have the full nobility to CoEmu V2. If you have any error, or do not understand something, I do not ask, here just let my contribution. English: In Character.cs: add this: public int NobleListPlace; public uint NobleDonate = 0; public byte NobleRank = 0;
[GREAT-RELEASE]Nobility Rank on LOTF
08/05/2009 - CO2 PServer Guides & Releases - 30 Replies
Ok well i decided to share with everyone the nobility rank that i use on my private server Drop|Dead, Its really nicely coded so just check it out and judge by yourself. Well anyways here it is enjoy. Ok first go to Client.cs and search for: if (MyChar.PrayStone > 0 And add this above:
[RELEASE]Nobility
08/05/2009 - CO2 PServer Guides & Releases - 10 Replies
#REquest close someone elses work i guess
[RELEASE] Nobility
06/20/2009 - CO2 PServer Guides & Releases - 63 Replies
REQUEST CLOSE
[Release]Nobility chat effect fix
04/22/2008 - EO PServer Guides & Releases - 2 Replies
This mysql dump will fix the chat effects so that the right ranks get the right chat effects. The baron currently will not recieve a chat effect. I will be adding that once I have more time to work on it.



All times are GMT +1. The time now is 01:21.


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.