Jump to content
  • 0

If compare to party.....


Question

Posted

how do you check a party's name using compare?

like if the leader's name is superman and 1 of his party member's name is shitty man... the npc would reject the party to go in the room because his member has a shit on his name......

I tried the if ( compare ( getcharid(1),"Shit" ) ){

but its not working..........

2 answers to this question

Recommended Posts

Posted
prontera,155,181,5	script	kjdfhskfhds	100,{
getpartymember getcharid(1), 0;
for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
	if ( compare( $@partymembername$[.@i], "ruru" ) ) {
		mes "sry, "+ $@partymembername$[.@i] +" is not allow to enter";
		close;
	}
}
mes "free to go";
close;
}

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...