mina Posted September 21, 2017 Posted September 21, 2017 (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 September 21, 2017 by mina Quote
0 llchrisll Posted September 21, 2017 Posted September 21, 2017 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. Quote
0 mina Posted September 21, 2017 Author Posted September 21, 2017 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~ Quote
Question
mina
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 mina2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.