Re: Vaffel - A cross platform ROSE server emulator
Posted:
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
Posted:
Tue Nov 30, 2010 7:58 pm
by -DefaulT
Working with packet 716
- // Send Inventory Information
- void CWorldServer::pakInventory( CPlayer *thisclient )
- {
- BEGINPACKET( pak, 0x716 );
- ADDQWORD( pak, thisclient->CharInfo->Zulies );
- //ADDWORD( pak, 0 );
- for(unsigned j=0; j<140; j++)
- {
- ADDDWORD( pak, BuildItemHead( thisclient->items[j] ) );
- ADDDWORD( pak, BuildItemData( thisclient->items[j] ) );
- ADDDWORD( pak, 0x00000000 );
- ADDWORD ( pak, 0x0000 );
- }
-
- thisclient->client->SendPacket( &pak );
-
-
- return;
- }
Im curious as to what bulditemhead & data is, any in site would be helpful.
Re: Vaffel - A cross platform ROSE server emulator
Posted:
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
Posted:
Wed Dec 01, 2010 6:59 pm
by -DefaulT
thanks purple, this was keeping me from making inventory, storage, and drops etc.