Jump to content
  • 0
kilow

Question about @inventorylist_card[].

Question

Hi,

I understand that @inventorylist_card1[] can scans if an item has a card on first slot.

So i did this :
    set [email protected],0;
    getinventorylist getcharid(0);
    while ( [email protected] < @inventorylist_count ) {
        for( [email protected] = 0; [email protected] < @inventorylist_count; [email protected]++ ){
           if (@inventorylist_card1[[email protected]] == 46105){ 
                dispbottom "foudnd";

            }
           if (@inventorylist_card2[[email protected]] == 46105){
                dispbottom "item found";
            }
        }
    }

Is it possible to equip (with *equip <item id>{,<char_id>};  ) the item where the card is compounded? or delitem it? Or we can only scans if there is the card compounded on an equipment?

I don't know how to return the id of this equipment.

Thank you

EDIT : i didn't tried @inventorylist_id[], i believed that i did...
Question answered.

Edited by kilow
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

you can also use this to search for the card in a user inventory

*checkequipedcard(<card id>)

This function will return 1 if the card specified by its item ID number is
inserted into any equipment they have in their inventory, currently equipped or
not.

 

Link to comment
Share on other sites

  • 0

Thank's @Emistry.

Finally after checking i have a problem that even if card are setted not tradable, when they are compounded the item (equipment) is tradable so i didn't choose this way.

Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...

Important Information

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