Winter1992 Posted March 31, 2017 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 60 Reputation: 0 Joined: 11/08/15 Last Seen: May 29, 2019 Share Posted March 31, 2017 here is the error see the image also here's the loop code for( set .@i,1; .@i <= 6; set .@i,.@i+1 ) { if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) { set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } } Quote Link to comment Share on other sites More sharing options...
0 Radian Posted April 1, 2017 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share Posted April 1, 2017 Try to post the whole script and someone might help you out and test the script. because if you just post something like that? for someone like me that want to help but i cant because my knowledge is very limited on scripting. so please attach the script that you are using. Quote Link to comment Share on other sites More sharing options...
0 Technoken Posted April 1, 2017 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 505 Reputation: 127 Joined: 04/04/16 Last Seen: May 14 Share Posted April 1, 2017 Try to add this for( set .@i,1; .@i <= 6; set .@i,.@i+1 ) { + if( !getequipisequiped(.@i) ) continue; if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) { set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } } The warning appears because getiteminfo is triggered even when there's nothing equipped. 7 hours ago, Winter1992 said: no one answer as usual lol !! nice rathena keep it up If you wanted your question to be answered ASAP. You can hire your own developer 1 Quote Link to comment Share on other sites More sharing options...
0 Winter1992 Posted April 1, 2017 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 60 Reputation: 0 Joined: 11/08/15 Last Seen: May 29, 2019 Author Share Posted April 1, 2017 On 4/1/2017 at 5:37 PM, Radian said: Try to post the whole script and someone might help you out and test the script. because if you just post something like that? for someone like me that want to help but i cant because my knowledge is very limited on scripting. so please attach the script that you are using. ok ok bro thanks On 4/1/2017 at 7:20 PM, Technoken said: Try to add this for( set .@i,1; .@i <= 6; set .@i,.@i+1 ) { + if( !getequipisequiped(.@i) ) continue; if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) { set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } } The warning appears because getiteminfo is triggered even when there's nothing equipped. If you wanted your question to be answered ASAP. You can hire your own developer ty for this i will try it On 4/1/2017 at 7:20 PM, Technoken said: Try to add this for( set .@i,1; .@i <= 6; set .@i,.@i+1 ) { + if( !getequipisequiped(.@i) ) continue; if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) { set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } } The warning appears because getiteminfo is triggered even when there's nothing equipped. If you wanted your question to be answered ASAP. You can hire your own developer On 4/1/2017 at 7:20 PM, Technoken said: Try to add this for( set .@i,1; .@i <= 6; set .@i,.@i+1 ) { + if( !getequipisequiped(.@i) ) continue; if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) { set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@arr[.@j], .@i; set .@j, .@j + 1; set .@menu$, .@menu$ + ":"; } } The warning appears because getiteminfo is triggered even when there's nothing equipped. If you wanted your question to be answered ASAP. You can hire your own developer thankyou for this my apology for my quote ehe thankyou Quote Link to comment Share on other sites More sharing options...
Question
Winter1992
here is the error see the image also here's the loop code
for( set .@i,1; .@i <= 6; set .@i,.@i+1 )
{
if ((.@i == 3) && (getiteminfo(getequipid(3),5) == 32) && (getequipisequiped(.@i))) { // Only catch shields
set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
set .@arr[.@j], .@i;
set .@j, .@j + 1;
set .@menu$, .@menu$ + ":";
}
if(getequipisequiped(.@i) && (.@i != 4) && (.@i != 3)) {
set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]";
set .@arr[.@j], .@i;
set .@j, .@j + 1;
set .@menu$, .@menu$ + ":";
}
}
Link to comment
Share on other sites
3 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.