Hi! Scripters,
Please help me on this, I want to disable or blacklist the mini boss card and boss card on this card trader script.
TIA and Keep Safe!
Script Below:
prontera,151,163,6 script Sample 100,{
getinventorylist;
for (.@i = 0; .@i < @inventorylist_count; .@i++) {
if (getiteminfo(@inventorylist_id[.@i], 2) == 6) {
.@menu$ = .@menu$ + getitemname(@inventorylist_id[.@i]) + ":";
.@cards[getarraysize(.@cards)] = @inventorylist_id[.@i];
.@qt[getarraysize(.@qt)] = @inventorylist_amount[.@i];
}
}
.@i = 0;
mes "Please select 3 cards...";
while (.@i < 3) {
if (getarraysize(.@c)) {
mes "> 1x " + getitemname(.@c[.@j]);
.@j++;
}
.@s = select(.@menu$) - 1;
.@c[getarraysize(.@c)] = .@cards[.@s];
cleararray .@qt[.@s], (.@qt[.@s] < 1 ? 0 : (.@qt[.@s]-1)), 1;
if (!.@qt[.@s])
.@menu$ = replacestr(.@menu$, getitemname(.@cards[.@s]), "");
.@i++;
}
.@size = getarraysize(.@c);
mes "> 1x " + getitemname(.@c[.@j]);
next;
mes "Are you sure you want to trade these cards?";
if (select("~ Yes:~ No") & 2) end;
for (.@i = 0; .@i < .@size; .@i++)
delitem .@c[.@i], 1;
getitem rand(4001,4407), 1;
close;
}