Page 3 of 3

Re: Vaffel - A cross platform ROSE server emulator

PostPosted: Mon Nov 22, 2010 10:37 pm
by Jckf
Could anyone have a look at this post? http://www.vaffel.net/forum/post/20/

Re: Vaffel - A cross platform ROSE server emulator

PostPosted: Tue Nov 30, 2010 7:58 pm
by -DefaulT
Working with packet 716
  1. // Send Inventory Information
  2. void CWorldServer::pakInventory( CPlayer *thisclient )
  3. {
  4.     BEGINPACKET( pak, 0x716 );
  5.     ADDQWORD( pak, thisclient->CharInfo->Zulies );
  6.     //ADDWORD( pak, 0 );
  7.     for(unsigned j=0; j<140; j++)
  8.     {
  9.         ADDDWORD( pak, BuildItemHead( thisclient->items[j] ) );
  10.         ADDDWORD( pak, BuildItemData( thisclient->items[j] ) );
  11.         ADDDWORD( pak, 0x00000000 );
  12.         ADDWORD ( pak, 0x0000 );
  13.     }
  14.  
  15.     thisclient->client->SendPacket( &pak );
  16.  
  17.  
  18.     return;
  19. }


Im curious as to what bulditemhead & data is, any in site would be helpful.

Re: Vaffel - A cross platform ROSE server emulator

PostPosted: Wed Dec 01, 2010 2:54 pm
by PurpleYouko
Builditemhead calculates the item type (1 through 14) and the item id then adds them to pak
Builditemdata adds the rest of the item data like count, stats, durability and so on.

Re: Vaffel - A cross platform ROSE server emulator

PostPosted: Wed Dec 01, 2010 6:59 pm
by -DefaulT
thanks purple, this was keeping me from making inventory, storage, and drops etc.