/*==========================================
where it transfer cart items to inventory
==========================================*/
ACMD_FUNC(inventorycart)
{
int8 type = -1;
uint16 i, count = 0, count2 = 0;
struct item_data *item_data = NULL;
nullpo_retr(-1, sd);
if( message[0] ) {
type = atoi(message);
if( type != -1 && type != IT_HEALING && type != IT_USABLE && type != IT_ETC && type != IT_WEAPON &&
type != IT_ARMOR && type != IT_CARD && type != IT_PETEGG && type != IT_PETARMOR && type != IT_AMMO )
return -1;
}
if (pc_iscarton(sd) != 0) {
for( i = 0; i < MAX_CART; i++ ) {
if( sd->status.cart[i].amount ) {
if( (item_data = itemdb_exists(sd->status.cart[i].nameid)) == NULL ) {
ShowDebug("Non-existant item %d on inventoryall list (account_id: %d, char_id: %d)\n", sd->status.cart[i].nameid, sd->status.account_id, sd->status.char_id);
continue;
}
if( type == -1 || type == (uint8)item_data->type ) {
if(pc_getitemfromcart(sd, i, sd->status.cart[i].amount))
count += sd->status.cart[i].amount;
else count2 += sd->status.cart[i].amount;
}
}
}
}
return 0;
}
3>c:\users\my\desktop\ragnarok\rathena\src\map\pc.c(5162): warning C4033: 'pc_getitemfromcart' must return a value
3>c:\users\my\desktop\ragnarok\rathena\src\map\pc.c(5165): warning C4033: 'pc_getitemfromcart' must return a value
3>c:\users\my\desktop\ragnarok\rathena\src\map\pc.c(5170): warning C4033: 'pc_getitemfromcart' must return a value
3>c:\users\my\desktop\ragnarok\rathena\src\map\pc.c(5177): warning C4716: 'pc_getitemfromcart': must return a value