Vaffel - A cross platform ROSE server emulator

Here you can talk about anything you want ;)

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators


Re: Vaffel - A cross platform ROSE server emulator

Postby -DefaulT on Tue Nov 30, 2010 7:58 pm

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.
Image
User avatar
-DefaulT
Smoulie
Smoulie
 
Posts: 44
Joined: Wed Sep 12, 2007 5:16 am

Re: Vaffel - A cross platform ROSE server emulator

Postby PurpleYouko on Wed Dec 01, 2010 2:54 pm

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.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: Vaffel - A cross platform ROSE server emulator

Postby -DefaulT on Wed Dec 01, 2010 6:59 pm

thanks purple, this was keeping me from making inventory, storage, and drops etc.
Image
User avatar
-DefaulT
Smoulie
Smoulie
 
Posts: 44
Joined: Wed Sep 12, 2007 5:16 am

Previous

Return to Welcome to the bar

Who is online

Users browsing this forum: No registered users and 9 guests

cron