So you want to check items that in a inventory ?? or compounded inside the equipment ?? or both ??
all the solutions has been proposed and shown.
What is the current issue ??
this is a script support section, and you keep telling there exist issue, but you never shown your script or what you have done in your script so far ...
i already did the same solutions like the ones from the solutions above, and i know the basic script fuctions like counitem,is equipped.. etc... i'm not just waiting to have a spoonfeed emistry.
Mary Magdalene understand my issue, thats why he suggest that link to me..
but just like a said before i already did the same solutions like the ones from the solutions above.
and i got this solution for checking MVP cards from equipments while its not equipped(only in inventory): but it's still not working
while ( .@i < @inventorylist_count ) {
if (@inventorylist_card1[.@i] == 4305 || @inventorylist_card2[.@i] == 4305 || @inventorylist_card3[.@i] == 4305 || @inventorylist_card4[.@i] == 4305){
mes "Can't allow you to continue.";
close;
}
set .@i, .@i + 1;
}
// Once loop is finished, it will continue here.
mes "Thank you Evelynn (:";
close;
im not making a new post here emistry, im trying my best to make it more clearer. so that everybody can understand my issue and might get some help from all of you..from the start all i need is
i made this no mvp pvp script that will not allow players with boss cards. the bug of this script is when an equipment with mvp card in it is not equipped while entering the pvp arena, the players are able to bypass my npc... i tried countitem() but it only recognize card ids that isn't inserted in any equipments ( e.g ghostring card), what i need in my script is to detect any equipment with mvp cards in it from my inventory... with that no one will able to bypass the mvp card restrictions
in other words to make it more clearer
•.MvpCards compounded with a bow in my inventory = mes "MVP card is not allowed in this PVP"; (not equipped, just in the inventory)
oh boy, nevermind about this issue, im just going to fix this my self, thanks for the support section it helped a lot