Jump to content
  • 0

getinventorylist command's question


mina

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  10/25/13
  • Last Seen:  

first, command description: @inventorylist_expire[]    - expire time (Unix time stamp). 0 means never expires.

but, It is invalid.

prontera,100,100,4	script	Test	73,{
setarray .@eq[1], EQI_HEAD_TOP,EQI_HEAD_MID,EQI_HEAD_LOW,EQI_ARMOR,EQI_HAND_L,EQI_HAND_R,EQI_GARMENT,EQI_SHOES,EQI_ACC_L,EQI_ACC_R;
getinventorylist;
for(set .@i,1; .@i<getarraysize(.@eq); set .@i,.@i+1){
if(getequipisequiped(.@eq[.@i]) && @inventorylist_expire[.@eq[.@i]] == 0){
mes " "+@inventorylist_expire[.@eq[.@i]]+" " + getequipname(.@eq[.@i]) + "";
}
}
close;
}

Does anyone have other ideas?

My English is not good enough. Sorry about that.

Edited by mina
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

You know that this command lists you're whole inventory? And that you're check won't work that way?

I'm currently at work so I can't really script any correction, but try to use the variable inventorylist_id for your checks instead of saving the equipment in an array, also there is the variable inventorylist_equip which is set based if the equipment is equipped or not.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  10/25/13
  • Last Seen:  

8 hours ago, llchrisll said:

You know that this command lists you're whole inventory? And that you're check won't work that way?

I'm currently at work so I can't really script any correction, but try to use the variable inventorylist_id for your checks instead of saving the equipment in an array, also there is the variable inventorylist_equip which is set based if the equipment is equipped or not.

thanks, i tring~

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