At first thanks for your response and yes it isnt hard to do like this,
but the problem with makeitem is, it can happen it drop twice. (1x normal and 1x from makeitem)
As example: Poring get killed and drop a knife and with some "luck" prog the makeitem, so he get 2 knifes.
I would have to switch off the normal drop completely and just let makeitem run.
Edit:
If i understand this correct, could this added here.
/*==========================================
* item drop with delay (timer function)
*------------------------------------------*/
static int mob_delay_item_drop(int tid, int64 tick, int id, intptr_t data)
{
struct item_drop_list *list;
struct item_drop *ditem;
list=(struct item_drop_list *)data;
ditem = list->item;
while (ditem) {
struct item_drop *ditem_prev;
map->addflooritem(NULL, &ditem->item_data,ditem->item_data.amount,
list->m,list->x,list->y,
list->first_charid,list->second_charid,list->third_charid,0,
ditem->showdropeffect);
ditem_prev = ditem;
ditem = ditem->next;
ers_free(item_drop_ers, ditem_prev);
}
ers_free(item_drop_list_ers, list);
return 0;
}