hybrids sexai.
~discusion ended.
~discusion ended.
Me actually finding a good use of C#'s stack-allocQuote:
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.
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));
}
}
http://rinkworks.com/dialect/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. Click Here To Register...]
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. Click Here To Register...]
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. Click Here To Register...]
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. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
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..