Jump to content
  • 0

About 'getequipcardid'


Question

Posted (edited)

I was reading the rAthena\doc\script_commands.txt

and i found this:


*getequipcardid(<equipment slot>,<card slot>)

Returns value from equipped item slot in the indicated slot:

getequipcardid(num,slot)

where:
num = equip position slot
slot = 0,1,2,3 (Card Slot N)

I was trying the command, but i can't turn on my server right now, i wrote this:

if(getiteminfo((getequipcardid(.@itemid,4),2)== 4

Using getinventorylist, i select an equipment and store it. Then i used

.@itemid to refer this equipment. (That's in my inventory)

My question is:

- I can use this command in an equipment in my inventory?

Edited by MojoMojo

2 answers to this question

Recommended Posts

Posted

No, the getequip* commands will only work for equipped items. However, getinventorylist already creates card arrays which you can use directly:

@inventorylist_card1[]	 - These four arrays contain card data for the items.
@inventorylist_card2[]	   These data slots are also used to store names
@inventorylist_card3[]	   inscribed on the items, so you can explicitly check
@inventorylist_card4[]	   if the character owns an item made by a specific
						 craftsman.

  • Upvote 1

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