post your bug here lolhttp://rathena.org/board/topic/91838-rathena-pastebin-bug/#entry241426
hmmm lol, how come you can't see any paste ?
<deleted>
EDIT: wait I think this script has a bug, *countstr script command doesn't count the same string twice
yeah confirm
prontera,156,188,5 script kjdfhkshfs 100,{
.@a$ = "#1#1#1#";
dispbottom countstr( .@a$, "#1#" ); // return 2
end;
}EDIT2: use this
prontera,156,188,5 script kjdfhkshfs 100,{
getpartymember getcharid(1), 1;
getpartymember getcharid(1), 2;
.@origin = getcharid(3);
for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) {
attachrid $@partymemberaid[.@i];
.@online++;
.@compare_job$ = .@compare_job$ +"#"+ class +"#";
}
}
attachrid .@origin;
// dispbottom .@online + .@compare_job$;
if ( .@online < 5 )
mes "your party needs at least 5 party member online";
else if ( !compare( .@compare_job$, "#"+ Job_Paladin +"#" ) )
mes "your party needs a Paladin in your party";
else if ( !compare( .@compare_job$, "#"+ Job_High_Priest +"#" ) )
mes "your party needs a High Priest in your party";
else if ( countstr( .@compare_job$, "#"+ Job_High_Wizard +"#" ) + countstr( .@compare_job$, "#"+ Job_Assassin_Cross +"#" ) + countstr( .@compare_job$, "#"+ Job_Ninja +"#" ) + countstr( .@compare_job$, "#"+ Job_Sniper +"#" ) + countstr( .@compare_job$, "#"+ Job_Lord_Knight +"#" ) < 3 )
mes "your party needs to have at least 3 Damage Dealer classes in your party";
else
mes "you are free the go";
close;
}