Jump to content
  • 0

getinventorylist command's question


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted
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~

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