Jump to content
  • 0

About 'getequipcardid'


MojoMojo

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

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

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

Thank you! problem solved!

@EDIT

Can you write an example please?

Edited by MojoMojo
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...