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.
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());
[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.