Jump to content
  • 0
Sign in to follow this  
Zerathul

Check if the character can wear the item

Question

Hi together,

 

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?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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:

if( equip(itemid) ) {    unequip(itemid);    do this;    do that;    end;} else {    you can't wear this item.    close;}

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.