summaryrefslogblamecommitdiff
path: root/npc/items/cooking.txt
blob: 70de9a8e07bf076738cf3feb621cf635942d76e8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                    
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Cooking inner functions

// item_consumption(item_id) - consumes the item after it is removed
function	script	item_consumption	{
    sleep2(15); // To avoid crashes, but too quick for user reaction
    .@it=getarg(0);
    if (countitem(.@it))
        delitem .@it, 1;
    return;
}