iraciz Posted April 7, 2020 Group: Members Topic Count: 140 Topics Per Day: 0.03 Content Count: 562 Reputation: 111 Joined: 10/05/12 Last Seen: February 12, 2024 Share Posted April 7, 2020 Good day, my require is not working, the label is running ignoring the countitem (shoes) Require: if (readparam(bAgi)>=89) || (countitem(2403) < 1) goto resist; this is not working, how to check 2 conditions at once? agi stat and the item in inventory. the script is running without the shoes. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted April 7, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted April 7, 2020 prontera,155,185,6 script Orzuelo 550,{ if (readparam(bAgi) >= 89 && countitem(2403) > 0) { mes "Your AGI >= 89 AGI and you have a "+getitemname(2403); soundeffectall "wild_rose_die.wav",0; } else { mes "something is missing"; } close; } 1 Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted April 7, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted April 7, 2020 (edited) try if (readparam(bAgi) >= 89 && countitem(2403) < 1) goto resist; Edited April 7, 2020 by Emistry Quote Link to comment Share on other sites More sharing options...
0 iraciz Posted April 7, 2020 Group: Members Topic Count: 140 Topics Per Day: 0.03 Content Count: 562 Reputation: 111 Joined: 10/05/12 Last Seen: February 12, 2024 Author Share Posted April 7, 2020 (edited) I tried yout script, but it still ignoring the shoes prontera,155,185,6 script Orzuelo 550,{ if (readparam(bAgi) >= 89 && countitem(2403) < 1) goto resist; mes "You have both requires"; soundeffectall "wild_rose_die.wav",0; end; resist: mes "something is missing"; end; } If I have both requires, I mean the agi over 89 and the shoes it mus goto resist label If dont, it must continue below lines until end. is not working as intended Edited April 7, 2020 by iraciz Quote Link to comment Share on other sites More sharing options...
-1 iraciz Posted April 7, 2020 Group: Members Topic Count: 140 Topics Per Day: 0.03 Content Count: 562 Reputation: 111 Joined: 10/05/12 Last Seen: February 12, 2024 Author Share Posted April 7, 2020 Solved Quote Link to comment Share on other sites More sharing options...
Question
iraciz
Good day, my require is not working, the label is running ignoring the countitem (shoes)
Require:
if (readparam(bAgi)>=89) || (countitem(2403) < 1) goto resist;
this is not working, how to check 2 conditions at once? agi stat and the item in inventory. the script is running without the shoes.
Thanks in advance.
Link to comment
Share on other sites
4 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.