test adorn.JPG
heres the code i used, but it only adds the footer set name the the count of items
Code: Select all
packet->setDataByName("item_types",adornment_info->item_types);
packet->setDataByName("duration", adornment_info->duration); // need to calcualte for remaining duration
packet->setDataByName("slot_type", adornment_info->slot_type);
packet->setDataByName("footer_set_name", "test footer set name");
packet->setArrayLengthByName("footer_set_bonus_list_count", 1);// list of the bonus items
packet->setArrayDataByName("footer_set_bonus_items_needed", 2, 0); //this is nember of items needed for granteing that stat //name,value,array
packet->setSubArrayLengthByName("footer_set_bonus_stats_count", 2, 0);//name,value,array,subarray
packet->setSubArrayDataByName("set_stat_type", 5, 0,0);
packet->setSubArrayDataByName("set_stat_subtype", 1, 0, 0);
packet->setSubArrayDataByName("set_value", 25000, 0, 0);
as you can see from the packet snip below where i highlighted in red the 01 is getting the foote_set_bouns_list_count but nothing else is in the packet
416: FF FF FF FF FF FF 00 14 - 74 65 73 74 20 66 6F 6F | ........test foo
432: 74 65 72 20 73 65 74 20 -
6E 61 6D 65 01 00 00 00 | ter set name....
448: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 | ................
464: 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 | ................
480: 00 00 00 00 00 00 00 00 - 21 46 6C 69 63 6B 65 72 | ........!Flicker
496: 69 6E 67 20 41 72 63 74 - 69 63 20 50 6F 6C 69 73 | ing Arctic Polis
512: 68 69 6E 67 20 53 74 6F - 6E 65 00 00 00 | hing Stone...
You do not have the required permissions to view the files attached to this post.