switch(ActionNum)
{
case 0: //Give
// The code for Give
break;
case 1: //Pickup
// Probably nothing, as this is clicking in the inventory, meaning you already picked it up
break;
case 2: //Use
switch(itemtype[ofst(a,0])
{
case 0: //Item type 0
// Your event for item type 0
break;
// make a case for each itemtype
}
break;
// make a case for each ActionNum
}
Users browsing this forum: No registered users and 1 guest