iraciz Posted April 7, 2020 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 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 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 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...
0 iraciz Posted April 7, 2020 Author Share Posted April 7, 2020 Solved Quote Link to comment Share on other sites More sharing options...
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