I've coded warehouses, and I've got the correct packet structures, so they're working fine.
But once i add over 19 items into the warehouse, my client crashes (patch 5369)
I could be wrong but I'm fairly sure the client can only handle 20 items being displayed per page... So essentially you need to pull the first 20 items from the warehouse.. display them and then when they click the next tab you display the next 20 items in the warehouse... etc
I could be wrong but I THINK that's how it works.
I'd suggest checking out packets from official co to be sure.
I could be wrong but I'm fairly sure the client can only handle 20 items being displayed per page... So essentially you need to pull the first 20 items from the warehouse.. display them and then when they click the next tab you display the next 20 items in the warehouse... etc
I could be wrong but I THINK that's how it works.
I'd suggest checking out packets from official co to be sure.
I can't believe it, you even said yourself that once a client receives more than 1024 bytes it crashes.
To fix this problem you have to send like only 10 items per packet, it wont crash.
lol its an easy fix... the wh's packet don't send the page but you can save the last one sended into the entity class, and then, send it with the next 20 itens.... you can send 20 itens at once into the packet cuz it will be 1020 bytes ... each iten has 49 bytes in the latest version...
If you packet logged the official client a month or two ago they created 3 packets, 1012 bytes long containing multiple item information details, this was for the vip warehouse, im certain it would be the same for the others.
Impulse's source npc 03/06/2011 - CO2 Private Server - 0 Replies Can anyone tell me why this does not work?It's the same id as in the npcs.txt file(111110) but it still chooses the default in the "switch (client.ActiveNpc)" is there something wrong with the "(npcRequest.OptionID)" or?
public static void GetDialog(NpcRequest npcRequest, GameState client)
{
if (npcRequest == null || client == null || client.Entity == null)
return;
Dialogs dialog = new Dialogs();
[Help]Errors (Impulse's Source) 10/06/2010 - CO2 Private Server - 2 Replies http://s4.postimage.org/kGv8i.jpg
What does that errors means? Where should I look to fix them?
As title says, I'm using Impulse's source!
[Release] Breeder NPC (Impulse's source) 07/25/2010 - CO2 PServer Guides & Releases - 4 Replies Hello,
I am very very pleased and proud of myself that I managed to do this FIRST time trying to send a packet via npc so I'm happy :)
SPECIAL THANKS TO: .Arco's thread Breeder packet with NPC. That gave me the packet id's.
all it is, is this npc in dialog.cs
#region Breeder
case 13118: