Jump to content
  • 0

Question about @inventorylist_card[].


Question

Posted (edited)

Hi,

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

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

            }
           if (@inventorylist_card2[.@i] == 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

2 answers to this question

Recommended Posts

  • 0
Posted

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.

 

  • 0
Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...