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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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