|
You last visited: Today at 11:22
Advertisement
[Release] MoneyBags
Discussion on [Release] MoneyBags within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
05/31/2009, 03:40
|
#1
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
[Release] MoneyBags
With my  , I figured I should add functionality for moneybags; So here it is.
Screenshot:
Code: Goes in UseItem.cs:
Code:
#region MoneyBags
case 723713: //Class1MoneyBag
{
Money(300000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class1MoneyBag and obtained 300,000 silvers", Struct.ChatType.Top));
break;
}
case 723714: //Class2MoneyBag
{
Money(800000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class2MoneyBag and obtained 800,000 silvers", Struct.ChatType.Top));
break;
}
case 723715: //Class3MoneyBag
{
Money(1200000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class3MoneyBag and obtained 1,200,000 silvers", Struct.ChatType.Top));
break;
}
case 723716: //Class4MoneyBag
{
Money(1800000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class4MoneyBag and obtained 1,800,000 silvers", Struct.ChatType.Top));
break;
}
case 723717: //Class5MoneyBag
{
Money(5000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class5MoneyBag and obtained 5,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723718: //Class6MoneyBag
{
Money(20000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class6MoneyBag and obtained 20,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723719: //Class7MoneyBag
{
Money(25000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class7MoneyBag and obtained 25,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723720: //Class8MoneyBag
{
Money(80000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class8MoneyBag and obtained 80,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723721: //Class9MoneyBag
{
Money(100000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class9MoneyBag and obtained 100,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723722: //Class10MoneyBag
{
Money(300000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class10MoneyBag and obtained 300,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723723: //TopMoneyBag
{
Money(500000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the TopMoneyBag and obtained 500,000,000 silvers", Struct.ChatType.Top));
break;
}
#endregion
Hope it helps.
|
|
|
06/02/2009, 04:16
|
#2
|
elite*gold: 0
Join Date: Sep 2006
Posts: 32
Received Thanks: 3
|
what does this do?
|
|
|
06/02/2009, 11:47
|
#3
|
elite*gold: 0
Join Date: Nov 2008
Posts: 412
Received Thanks: 314
|
well these moneybags are bags that gives you money 0.0
you can win it at the lotery
|
|
|
06/13/2009, 07:03
|
#4
|
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
|
thanks
|
|
|
06/13/2009, 23:43
|
#5
|
elite*gold: 0
Join Date: Jan 2008
Posts: 79
Received Thanks: 2
|
Quote:
Originally Posted by Zeroxelli
With my  , I figured I should add functionality for moneybags; So here it is.
Screenshot:
Code: Goes in UseItem.cs:
Code:
#region MoneyBags
case 723713: //Class1MoneyBag
{
Money(300000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class1MoneyBag and obtained 300,000 silvers", Struct.ChatType.Top));
break;
}
case 723714: //Class2MoneyBag
{
Money(800000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class2MoneyBag and obtained 800,000 silvers", Struct.ChatType.Top));
break;
}
case 723715: //Class3MoneyBag
{
Money(1200000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class3MoneyBag and obtained 1,200,000 silvers", Struct.ChatType.Top));
break;
}
case 723716: //Class4MoneyBag
{
Money(1800000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class4MoneyBag and obtained 1,800,000 silvers", Struct.ChatType.Top));
break;
}
case 723717: //Class5MoneyBag
{
Money(5000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class5MoneyBag and obtained 5,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723718: //Class6MoneyBag
{
Money(20000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class6MoneyBag and obtained 20,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723719: //Class7MoneyBag
{
Money(25000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class7MoneyBag and obtained 25,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723720: //Class8MoneyBag
{
Money(80000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class8MoneyBag and obtained 80,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723721: //Class9MoneyBag
{
Money(100000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class9MoneyBag and obtained 100,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723722: //Class10MoneyBag
{
Money(300000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class10MoneyBag and obtained 300,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723723: //TopMoneyBag
{
Money(500000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the TopMoneyBag and obtained 500,000,000 silvers", Struct.ChatType.Top));
break;
}
#endregion
Hope it helps.
|
Can you tell me plz how I can do it, and find where
|
|
|
06/14/2009, 00:06
|
#6
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
Handlers/UseItem.cs
|
|
|
06/14/2009, 01:51
|
#7
|
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
|
Are you like, extremely bored?
|
|
|
06/14/2009, 01:54
|
#8
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
Me? When am I not.
|
|
|
06/21/2009, 18:19
|
#9
|
elite*gold: 0
Join Date: Jun 2009
Posts: 93
Received Thanks: 17
|
Thanks, another helpful release.
|
|
|
06/25/2009, 17:45
|
#10
|
elite*gold: 0
Join Date: Jan 2009
Posts: 7
Received Thanks: 0
|
Hi how could i use it plz write
|
|
|
06/25/2009, 18:42
|
#11
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
good release but i find it funny that people who using this source dont have all the items in yet...lol
|
|
|
07/05/2009, 19:16
|
#12
|
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 99
|
One small issue =p
Quote:
Originally Posted by Zeroxelli
With my  , I figured I should add functionality for moneybags; So here it is.
Screenshot:
Code: Goes in UseItem.cs:
Code:
#region MoneyBags
case 723713: //Class1MoneyBag
{
Money(300000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class1MoneyBag and obtained 300,000 silvers", Struct.ChatType.Top));
break;
}
case 723714: //Class2MoneyBag
{
Money(800000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class2MoneyBag and obtained 800,000 silvers", Struct.ChatType.Top));
break;
}
case 723715: //Class3MoneyBag
{
Money(1200000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class3MoneyBag and obtained 1,200,000 silvers", Struct.ChatType.Top));
break;
}
case 723716: //Class4MoneyBag
{
Money(1800000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class4MoneyBag and obtained 1,800,000 silvers", Struct.ChatType.Top));
break;
}
case 723717: //Class5MoneyBag
{
Money(5000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class5MoneyBag and obtained 5,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723718: //Class6MoneyBag
{
Money(20000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class6MoneyBag and obtained 20,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723719: //Class7MoneyBag
{
Money(25000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class7MoneyBag and obtained 25,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723720: //Class8MoneyBag
{
Money(80000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class8MoneyBag and obtained 80,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723721: //Class9MoneyBag
{
Money(100000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class9MoneyBag and obtained 100,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723722: //Class10MoneyBag
{
Money(300000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the Class10MoneyBag and obtained 300,000,000 silvers", Struct.ChatType.Top));
break;
}
case 723723: //TopMoneyBag
{
Money(500000000, CSocket);
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You opened the TopMoneyBag and obtained 500,000,000 silvers", Struct.ChatType.Top));
break;
}
#endregion
Hope it helps.
|
What do you mean by "#region" and "#endregion" I'm new, still learning. More ppl tell me the better i get >.> And do I paste #region and #endregion as part of the code? and where do i paste it? clientsocket? >.>
|
|
|
07/05/2009, 19:20
|
#13
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
Quote:
Originally Posted by Jay1029
What do you mean by "#region" and "#endregion" I'm new, still learning. More ppl tell me the better i get >.> And do I paste #region and #endregion as part of the code? and where do i paste it? clientsocket? >.>
|
#region and #endregion aren't really "code"
but you put them in the file. it's basically so you can minimize the code inside them
|
|
|
07/05/2009, 22:43
|
#14
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
Exactly what tao said, it's mainly for people who like their code organized. And me, I'm OCD so I need things like that or I get ****** and delete it all.
|
|
|
07/06/2009, 03:45
|
#15
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
|
Quote:
Originally Posted by _tao4229_
#region and #endregion aren't really "code"
but you put them in the file. it's basically so you can minimize the code inside them 
|
=]
you can minimize classes too! and whole bunch of others!yay
|
|
|
All times are GMT +1. The time now is 11:22.
|
|