I want to make a small script that checks all my potions and malls them if they are worth a cerain amount, but it seems that item_type() dosn't support potion for some reason. Any other way to check if an item is a potion?
EDIT: I used the work around from this thread:
EDIT: I used the work around from this thread:
Code:
foreach it in $items[] if (it.usable && !it.reusable && it.effect_modifier("Effect") != $effect[none]) print(it);:
Last edited: