I have a char that can upgrade a custom item.
The higher upgrades have other requirements.
Is there a simple way to check in the script if the char can wear the item?
If you mean from the { script }, { OnEquip Script }, { UnEquip Script } part of an item, then currently no. Atleast not without the use of a custom command to return those as a string you can compare against. This also applies to whether or not your checking to see if a person can equip it based on Class or required level.
For the latter 2 you could just do something like:
Code:
if( equip(itemid) ) { unequip(itemid); do this; do that; end;} else { you can't wear this item. close;}