Jump to content
  • 0

Question about @inventorylist_card[].


kilow

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  41
  • Reputation:   0
  • Joined:  05/18/20
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  41
  • Reputation:   0
  • Joined:  05/18/20
  • Last Seen:  

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...