@@ -15874,7 +15874,17 @@ void clif_mail_removeitem( struct map_session_data* sd, bool success, int index,
|
||||
WFIFOB(fd, 2) = success;
|
||||
WFIFOW(fd, 3) = index;
|
||||
WFIFOW(fd, 5) = amount;
|
||||
WFIFOW(fd, 7) = 0; // TODO: which weight? item weight? removed weight? remaining weight?
|
||||
|
||||
int total = 0;
|
||||
for( int i = 0; i < MAIL_MAX_ITEM; i++ ){
|
||||
if( sd->mail.item[i].nameid == 0 ){
|
||||
break;
|
||||
}
|
||||
|
||||
total += sd->mail.item[i].amount * ( sd->inventory_data[sd->mail.item[i].index]->weight / 10 );
|
||||
}
|
||||
|
||||
WFIFOW(fd, 7) = total;
|
||||
WFIFOSET(fd, 9);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user