|
You last visited: Today at 17:37
Advertisement
[RELEASE] Nobility
Discussion on [RELEASE] Nobility within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
05/06/2009, 21:48
|
#31
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
Quote:
Originally Posted by ph03nixx
@adz
why comment? just su and wait,
@PeTe
Do you have any ideas why the f*cker wont talk ?
|
make sure its the same UID the npc i released uid is 8410 make sure the npc you created is 8410
|
|
|
05/06/2009, 21:55
|
#32
|
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
|
ok this is maybe a main problem
Code:
MyChar.[COLOR="Red"]Rank[/COLOR] = 1;
MyChar.[COLOR="red"]Donation [/COLOR]+= 500000000;
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:???: ?
|
|
|
05/06/2009, 21:56
|
#33
|
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
|
Quote:
Originally Posted by PeTe Ninja
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.
|
|
|
05/06/2009, 22:02
|
#34
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Quote:
Originally Posted by ph03nixx
ok this is maybe a main problem
Code:
MyChar.[COLOR="Red"]Rank[/COLOR] = 1;
MyChar.[COLOR="red"]Donation [/COLOR]+= 500000000;
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.
|
|
|
05/06/2009, 22:04
|
#35
|
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
|
Not bad could be better.. Why are so many effects being sent?
|
|
|
05/06/2009, 22:05
|
#36
|
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
|
@damian
geez i have glasses, but im a bit tired i have to do ****, So define it in Charactaer.cs?
lol....
|
|
|
05/06/2009, 22:08
|
#37
|
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
|
also upload the effects for me.... (the dds files and ect. please..
|
|
|
05/06/2009, 22:08
|
#38
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
Quote:
Originally Posted by ph03nixx
ok this is maybe a main problem
Code:
MyChar.[COLOR="Red"]Rank[/COLOR] = 1;
MyChar.[COLOR="red"]Donation [/COLOR]+= 500000000;
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.
|
|
|
05/06/2009, 22:35
|
#39
|
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
|
Quote:
Originally Posted by PeTe Ninja
first part of my whole guide...follow the steps please
xD
make it better then
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.
|
they made the titanic right but it hit an iceberg?
and anyway to do this properly you need the packets, the way your doing it will cause fps lag.
|
|
|
05/06/2009, 22:39
|
#40
|
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
|
Quote:
Originally Posted by adz06676
they made the titanic right but it hit an iceberg?
and anyway to do this properly you need the packets, the way your doing it will cause fps lag.
|
there is no ftp lag the effect only goes off when needed not ever sec
|
|
|
05/07/2009, 12:45
|
#41
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
i posted a few new things on the main thread at top and bottom about some things taht happen when you have this
|
|
|
05/07/2009, 15:07
|
#42
|
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
|
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.
|
|
|
05/08/2009, 02:32
|
#43
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
wow real nice alex...never though of using a different button
|
|
|
05/08/2009, 05:25
|
#44
|
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
|
Dont get it lol sup with that does it use a button or somthing?
|
|
|
05/09/2009, 23:16
|
#45
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
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"));
}
|
|
|
|
 |
|
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;
|
[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.
|
All times are GMT +1. The time now is 17:38.
|
|