Jump to content
  • 0

Confused on "Getinventorylist;"


Lil Troll

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Hi rAthenian's, I really want to learn how to properly use getinventorylist command. I would like to do a script that store all of item information (Refine-rate, Cards, Item ID). Then retrieve and filtered using "getinventorylist" command. Then use the command, to create a group of arrays. Then would filter out which ones is need, by isequipped, or getequipid. I dont know how to start and do properly the script.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


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

you can refer getinventorylist...

	getinventorylist; 
	for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1){
		mes "Item : "+getitemname( @inventorylist_id[.@i] );
		mes "Refine : "+getitemname( @inventorylist_refine[.@i] );
		mes "Card 1: "+getitemname( @inventorylist_card1[.@i] );
		mes "Card 2: "+getitemname( @inventorylist_card2[.@i] );
		mes "Card 3: "+getitemname( @inventorylist_card3[.@i] );
		mes "Card 4: "+getitemname( @inventorylist_card4[.@i] );
		mes " ";
	}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Thanks sir Emistry! I owe you another one.  /ok  

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