You are only checking the first element of the array.
The correct script should be:
{ setarray
[email protected]$[0], "prt_fild08", "06guild_01", "06guild_02", "06guild_03", "06guild_04", "06guild_05", "06guild_06", "06guild_07", "06guild_08"; set
[email protected],0; for(
[email protected] = 0;
[email protected] < getarraysize(
[email protected]$);
[email protected]++ ) { if(strcharinfo(3) ==
[email protected]$[
[email protected]]) { set
[email protected],1; } } if (
[email protected] == 1) { delitem 604,1; monster "this",-1,-1,"--ja--",-1,1,""; } else dispbottom "This item can't be used on your current map."; }
(Not tested, but it should work)