Not a member yet? Register for your free account!

 

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions

 

Ask yourself this before you start trying to make a server.

This is a discussion on Ask yourself this before you start trying to make a server. within the CO2 PServer - Discussions / Questions forum part of the Conquer Online 2 category; Originally Posted by XxArcherMasterxX thats true but why are you talling that? You only know how pr0 Hybrid really is, ...

Closed Thread
 
LinkBack Thread Tools
Old 10-24-2008, 01:31   #21
Banned
 
Join Date: Feb 2008
Posts: 1,618
Received Thanks: 149
Quote:
Originally Posted by XxArcherMasterxX View Post
thats true but why are you talling that?
You only know how pr0 Hybrid really is, 1) when you're good enough to write your own source; 2) When you've seen his serious stuff.

tao4229 is offline  
Old 10-24-2008, 01:35   #22
«««««««««««««»»»»»»»»»»»»
 
Join Date: Apr 2008
Posts: 473
Received Thanks: 255
Quote:
Originally Posted by tao4229 View Post
You only know how pr0 Hybrid really is, 1) when you're good enough to write your own source; 2) When you've seen his serious stuff.
sorry never saw his codes or that stuff but i know hes good

lol he was the owner of hybridco of course hes good!
XxArcherMasterxX is offline  
Old 10-24-2008, 01:37   #23
ぼくはJohnDreadをあいしていま す
 
InfamousNoone's Avatar
 
Join Date: Jan 2008
Posts: 1,029
Received Thanks: 1,140
Quote:
Originally Posted by tao4229 View Post
You only know how pr0 Hybrid really is, 1) when you're good enough to write your own source; 2) When you've seen his serious stuff.
Me actually finding a good use of C#'s stack-alloc

Code:
        public static void WithdrawWarehouseItem(GameClient Client, byte* Ptr)
        {
            if (Client.Inventory.Count < 40)
            {
                uint UID = *((uint*)(Ptr + 12));
                byte itemsLength = Warehouse.ItemCount(Client.ActiveNpc, Client.Username);
                WarehouseItem* items = stackalloc WarehouseItem[itemsLength];
                Warehouse.Items(Client.ActiveNpc, Client.Username, items, itemsLength);

                for (byte i = 0; i < itemsLength; i++)
                {
                    if (items[i].UID == UID)
                    {
                        ConquerItem real;
                        items[i].ToItem(out real);
                        Client.Inventory.Add(&real);

                        WarehouseItem* NewBuffer = stackalloc WarehouseItem[itemsLength - 1];
                        Native.memcpy(NewBuffer, items, (i * sizeof(WarehouseItem)));
                        Native.memcpy(NewBuffer + i, items + i + 1, ((itemsLength - i - 1) * sizeof(WarehouseItem)));
                        Warehouse.UpdateItems(Client.ActiveNpc, Client.Username, NewBuffer, (uint)(itemsLength - 1));

                        GetWarehouseItems(Client);

                        break;
                    }
                }
            }
            else
            {
                Client.Send(new MessagePacket("Your inventory is full.", 0x00FF0000, ChatType.TopLeft));
            }
        }
InfamousNoone is offline  
Old 11-05-2008, 20:39   #24
I and I
 
ElDeRnEcRo's Avatar
 
Join Date: Jul 2006
Posts: 883
Received Thanks: 104
What is stack-alloc anyways? (It`s 4 am if that saves me from flaming xD)
ElDeRnEcRo is offline  
Old 11-05-2008, 20:44   #25
ぼくはJohnDreadをあいしていま す
 
InfamousNoone's Avatar
 
Join Date: Jan 2008
Posts: 1,029
Received Thanks: 1,140
Allocates a block of memory on the stack rather than the heap, great for making temporary buffers.
InfamousNoone is offline  
Old 11-05-2008, 20:53   #26
I and I
 
ElDeRnEcRo's Avatar
 
Join Date: Jul 2006
Posts: 883
Received Thanks: 104
Thanks for that Although I had to google those expressions, that proves that I can learn something new even at this time lol
ElDeRnEcRo is offline  
Old 11-14-2008, 06:33   #27
Senior Member
 
kinshi88's Avatar
 
Join Date: Apr 2008
Posts: 2,273
Received Thanks: 838
I've noticed many are not following this guide, maybe they can't understand it?
Here, its translated so those not understanding it can understand:

Quote:
Can I speak English radeh webuhll 'n fluently, duh...uh...?
- Most programmigg is done in English 'n most IDE's use English words such as "pribate", "public", "static", "boid", "int(egeh)", "strigg" 'n do not support ucode charackehs.

Am I good at mad, duh...uh...?
- Cratigg a sehbeh rekires you t' come up wid sebehal madematical, f' instass doigg attack calculashuns, duuhhhh, m-attack calculashuns, duuhhhh, doje, uh uh uh, accuracy, 'n so on.

More specific kesshuns f' codigg a sehbeh in C#

Do I know what de basic types f' C# are, uh uh uh, 'n when/errrr, why t' use dem, duh...uh...? Do I undehstand de basic essenshuls of C#
[Only registered and activated users can see links. ]

Do I know duh, how t' use de (Syssem.Net.Sockets.)Socket class, duh...uh...?
- Dis is bital in makigg a sehbeh-socket f' odeh TCP basid clients t' conneck to.
[Only registered and activated users can see links. ]

Do I know what a dread is 'n how t' crate/abort one, duh...uh...? Do I know when t' use dem, 'n what t' use dem f', duh...uh...?
- Multi-dreadigg your sehbeh is behy crucial, or else de main dread will be extreme laggid up.
[Only registered and activated users can see links. ]

Do I undehstand dread-safe programmigg, duh...uh...?
- Alot of peoble don't undehstand dis, duuhhhh, dis is often de reason errrr, why client's close, uh uh uh, cuz the, ERRRR, sehbeh or applicashun is not dread-safe 'n a packet becomes corrupted.
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]

Be honest t' yourself, uh uh uh uh uh, 'n if you answebuhrid no t' any of dese; you real shudd go find out what dey are. Knowigg dese diggs are bital in makigg an efficient sehbeh, dgust dgumpigg in doesn't kite cut it, uh, you usual dgust end up askigg f' help 'n usual annoyigg peoble. Duh.A crucial rule I'be allays libid by is nebeh ask f' help, unless you honestly neid it. I usual try at de progglem f' a few days bef'e I gibe up..
http://rinkworks.com/dialect/
kinshi88 is offline  
Old 11-14-2008, 13:51   #28
I and I
 
ElDeRnEcRo's Avatar
 
Join Date: Jul 2006
Posts: 883
Received Thanks: 104
Lol, I guess a new language is coming
ElDeRnEcRo is offline  
Old 11-14-2008, 13:53   #29
I think therefore I am...
 
taguro's Avatar
 
Join Date: Jun 2007
Posts: 387
Received Thanks: 62
Blog Entries: 1
Quote:
Originally Posted by ElDeRnEcRo View Post
Lol, I guess a new language is coming
Yup, its called nubese, the language of the nubians.
taguro is offline  
Old 11-14-2008, 22:12   #30
Banned
 
Join Date: Feb 2008
Posts: 1,618
Received Thanks: 149
Quote:
Originally Posted by taguro View Post
Yup, its called nubese, the language of the nubians.
lmao Nubian civilization(in ancient Egypt, seriously ).
tao4229 is offline  
Closed Thread

Thread Tools




All times are GMT +2. The time now is 11:58.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0