mina Posted September 21, 2017 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 27 Reputation: 2 Joined: 10/25/13 Last Seen: November 16, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 llchrisll Posted September 21, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 626 Reputation: 189 Joined: 11/19/11 Last Seen: March 25 Share 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 Link to comment Share on other sites More sharing options...
0 mina Posted September 21, 2017 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 27 Reputation: 2 Joined: 10/25/13 Last Seen: November 16, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
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 minaLink to comment
Share on other sites
2 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.