Actually it's pretty easy.
Open your atcommand.c, search for:
ACMD_DEF(speed),
Then add this in a new line:
ACMD_DEF(deleteall),
Then add this code:
/*==========================================
* @deleteall by [nanakiwurtz]
* Delete all of your inventory & storage items.
*==========================================*/
ACMD_FUNC(deleteall)
{
int i;
nullpo_retr(-1, sd);
if (sd->state.storage_flag != 1)
{
if( storage_storageopen(sd) == 1 ) {
clif_displaymessage(fd, "You can't open the storage currently.");
return -1;
}
}
for (i = 0; i < MAX_INVENTORY; i++) {
if (sd->status.inventory[i].amount) {
if(sd->status.inventory[i].equip != 0)
pc_unequipitem(sd, i, 3);
pc_delitem(sd, i, sd->status.inventory[i].amount, 0, 0, LOG_TYPE_OTHER);
}
}
for (i = 0; i < MAX_STORAGE; i++) {
if(sd->status.storage.items[i].amount)
storage_delitem(sd,i,sd->status.storage.items[i].amount);
}
storage_storageclose(sd);
return 0;
}
Recompile,and voila! Instant clean up of your inventory & kafra storage
(Please use with caution)