and that is will ALL MyChar.Rank and MyChar.Donation
its underlined Red so its an error
The error for Rank Describes:
Code:
'COServer_Project.Character' does not conatain a definiton of 'Rank' and no extension method 'Rank' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The error for Donation describes
Code:
'COServer_Project.Character' does not conatain a definiton of 'Donation' and no extension method 'Donation' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The UID of the NPC is the same but those are the main problems
i think you should do it since you just talk alot, i really want you to release something ok...release nobility working the real way since you said you can do it
i couldn't because i don't have the packets. and thats my point why do something if you can't do it properly.
and that is will ALL MyChar.Rank and MyChar.Donation
its underlined Red so its an error
The error for Rank Describes:
Code:
'COServer_Project.Character' does not conatain a definiton of 'Rank' and no extension method 'Rank' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The error for Donation describes
Code:
'COServer_Project.Character' does not conatain a definiton of 'Donation' and no extension method 'Donation' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The UID of the NPC is the same but those are the main problems
Help:???: ?
your an idiot , define the god damn Rank and Donation in character.cs ... It clearly SAYS What the problem is... geez learn to read or get a glasses.
and that is will ALL MyChar.Rank and MyChar.Donation
its underlined Red so its an error
The error for Rank Describes:
Code:
'COServer_Project.Character' does not conatain a definiton of 'Rank' and no extension method 'Rank' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The error for Donation describes
Code:
'COServer_Project.Character' does not conatain a definiton of 'Donation' and no extension method 'Donation' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The UID of the NPC is the same but those are the main problems
Help:???: ?
first part of my whole guide...follow the steps please
Quote:
Originally Posted by adz06676
i couldn't because i don't have the packets. and thats my point why do something if you can't do it properly.
Quote:
Originally Posted by damianpesta
your an idiot , define the god damn Rank and Donation in character.cs ... It clearly SAYS What the problem is... geez learn to read or get a glasses.
xD
Quote:
Originally Posted by Vortex.
Not bad could be better.. Why are so many effects being sent?
make it better then
Quote:
Originally Posted by adz06676
i couldn't because i don't have the packets. and thats my point why do something if you can't do it properly.
hmm.. ok..
why did the people make titanic if they couldn't do it right?
why did the wright brothers make the airplane if for a while they couldnt do it right?
why is USA fighthing everyone trying to make peace if they cant do it right?
answer my questions and those will be the answer of yours.
Well...this is the first part of my entire release:
//As i know, there is no delete character added to LOTF, and i`m going to use it for donations. Its a faster way to do it...
Find in client.cs "case 1010:"
add
Code:
case 95:
{
uint Donation = (uint)((Data[15] << 24) + (Data[14] << 16) + (Data[13] << 8) + Data[12]);
if (MyChar.Silvers >= Donation)
{
MyChar.Silvers -= Donation;
MyChar.Donation += Donation;
if (MyChar.Donation >= 800000000)
{
switch (MyChar.Model)
{
case 1003:
case 1004: MyChar.Rank = 1; World.SendMsgToAll(MyChar.Name + " is a King now! ", "SYSTEM", 2010); break;
case 2001:
case 2002: MyChar.Rank = 2; World.SendMsgToAll(MyChar.Name + " is a Queen now! ", "SYSTEM", 2010); break;
}
return;
}//King/Queen
if (MyChar.Donation <= 800000000 && MyChar.Donation >= 500000000)
MyChar.Rank = 4;//Prince
if (MyChar.Donation <= 500000000 && MyChar.Donation >= 200000000)
MyChar.Rank = 3;//Duke
if (MyChar.Donation <= 200000000 && MyChar.Donation >= 100000000)
MyChar.Rank = 5;//Earl
if (MyChar.Donation <= 100000000 && MyChar.Donation >= 50000000)
MyChar.Rank = 7;//Baron
if (MyChar.Donation <= 50000000 && MyChar.Donation >= 30000000)
MyChar.Rank = 6;//Knight
switch (MyChar.Rank)
{
case 0: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You have no rank right now.", 2010)); break;
case 1:
case 2: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You reached the last rank.", 2010));break;
case 3: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a Prince.", 2010));break;
case 4: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a King or a Queen.", 2010));break;
case 5: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a Duke.", 2010));break;
case 6: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a Baron.", 2010));break;
case 7: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a Earl.", 2010));break;
}
MyChar.SaveRank();
MyChar.SaveDonation();
World.UpdateSpawn(MyChar);
}
}break;
To donate you`ll go to Options->Delete->OK->Set how much you want to donate->OK
You can now delete the npc.
EDIT: Also i modified the donation need to be another rank...
#Delete and repost reason: I`m sorry but i didnt try the code, now it is fully working thx to IcedEarth who told me the errors.
One thing that's making this code longer is every line to send the rank all the time. Here, add this void into Character.cs, and each time you want to send the rank packets/effects, just throw MyChar.SendRank();
Quote:
public void SendRank()
{
for (int i = 8; i > 0; i--)
{
if (Rank == i)
MyClient.SendPacket(General.MyPackets.String(UID, 10, "letter" + i));
}
if (Rank == 1)
MyClient.SendPacket(General.MyPackets.String(UID, 10, "coronet4"));
if (Rank == 2)
MyClient.SendPacket(General.MyPackets.String(UID, 10, "coronet4"));
}
[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;
[RE-Release] Another Code for Nobility NPC 08/12/2009 - CO2 PServer Guides & Releases - 17 Replies Its my code for Nobility npc, here depend of you sex become you King or Queen...
and... to donation need nvl +100...
Its for LOTF...
talk()
if (CurrentNPC == 8410)
{
SendPacket(General.MyPackets.NPCSay("Soy el Encargado de la Donacion en 4Conquer..."));
SendPacket(General.MyPackets.NPCSay(" si quieres tener reconocimiento y un Titulo noble"));
[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 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.