[Release] MoneyBags

05/31/2009 03:40 Zeroxelli#1
With my [Only registered and activated users can see links. Click Here To Register...], I figured I should add functionality for moneybags; So here it is.

Screenshot: [Only registered and activated users can see links. Click Here To Register...]

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 keykeeper11#2
what does this do?
06/02/2009 11:47 -Reflexis-#3
well these moneybags are bags that gives you money 0.0

you can win it at the lotery
06/13/2009 07:03 CIRASH#4
thanks
06/13/2009 23:43 grayfox1#5
Quote:
Originally Posted by Zeroxelli View Post
With my [Only registered and activated users can see links. Click Here To Register...], I figured I should add functionality for moneybags; So here it is.

Screenshot: [Only registered and activated users can see links. Click Here To Register...]

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 Zeroxelli#6
Handlers/UseItem.cs
06/14/2009 01:51 Zanzibar#7
Are you like, extremely bored?
06/14/2009 01:54 Zeroxelli#8
Me? When am I not.
06/21/2009 18:19 ~*|Limbo|*~#9
Thanks, another helpful release.
06/25/2009 17:45 trakaiii#10
Hi how could i use it plz write
06/25/2009 18:42 PeTe Ninja#11
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 Jay1029#12
Quote:
Originally Posted by Zeroxelli View Post
With my [Only registered and activated users can see links. Click Here To Register...], I figured I should add functionality for moneybags; So here it is.

Screenshot: [Only registered and activated users can see links. Click Here To Register...]

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 _tao4229_#13
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 :p
07/05/2009 22:43 Zeroxelli#14
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 pissed and delete it all.
07/06/2009 03:45 PeTe Ninja#15
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 :p
=]

you can minimize classes too! and whole bunch of others!yay