Register for your free account! | Forgot your password?

You last visited: Today at 11:22

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

Advertisement



[Release] MoneyBags

Discussion on [Release] MoneyBags within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Zeroxelli's Avatar
 
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.
Zeroxelli is offline  
Thanks
26 Users
Old 06/02/2009, 04:16   #2
 
elite*gold: 0
Join Date: Sep 2006
Posts: 32
Received Thanks: 3
what does this do?
keykeeper11 is offline  
Old 06/02/2009, 11:47   #3
 
-Reflexis-'s Avatar
 
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
-Reflexis- is offline  
Thanks
1 User
Old 06/13/2009, 07:03   #4
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
thanks
CIRASH is offline  
Thanks
1 User
Old 06/13/2009, 23:43   #5
 
grayfox1's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 79
Received Thanks: 2
Quote:
Originally Posted by Zeroxelli View Post
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
grayfox1 is offline  
Old 06/14/2009, 00:06   #6
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Handlers/UseItem.cs
Zeroxelli is offline  
Thanks
3 Users
Old 06/14/2009, 01:51   #7
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
Are you like, extremely bored?
Zanzibar is offline  
Thanks
2 Users
Old 06/14/2009, 01:54   #8
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Me? When am I not.
Zeroxelli is offline  
Thanks
3 Users
Old 06/21/2009, 18:19   #9
 
elite*gold: 0
Join Date: Jun 2009
Posts: 93
Received Thanks: 17
Thanks, another helpful release.
~*|Limbo|*~ is offline  
Thanks
1 User
Old 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
trakaiii is offline  
Old 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
PeTe Ninja is offline  
Old 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 View Post
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? >.>
Jay1029 is offline  
Thanks
2 Users
Old 07/05/2009, 19:20   #13
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by Jay1029 View Post
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
_tao4229_ is offline  
Thanks
3 Users
Old 07/05/2009, 22:43   #14
 
Zeroxelli's Avatar
 
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.
Zeroxelli is offline  
Thanks
3 Users
Old 07/06/2009, 03:45   #15
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by _tao4229_ View Post
#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
PeTe Ninja is offline  
Reply




All times are GMT +1. The time now is 11:22.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.