rans
New member
Can i request for @item restriction for example you cannot @item certain items.
I have written a script that will return true/false but it doesnt work if the user input item Constant.
https://pastebin.com/bvYqDXhB
I have written a script that will return true/false but it doesnt work if the user input item Constant.
https://pastebin.com/bvYqDXhB
Code:
function script NoItemProduce {
.input = atoi(getarg(0));
setarray(.disabledItems,501,512,503);
if(array_exists(.disabledItems,.input) ){
dispbottom("This item is not available for item producing",C_RED);
return true;
}
return false;
}