Jump to content
  • 0

Special Party Warper


Question

Posted
Hello again guys, i need this script, but i cant make job requirement for a party warper.

 

Warper Party 

 

5 users are needed to enter the party map

 

Job requirement in party: 1 tank (pala) 3 melee or casters (Hight Wizards, Assassin Cross, Ninjas, Sniper, Lk ... etc) and 1 Hight Priest.

4 answers to this question

Recommended Posts

Posted (edited)

Thx annie but i cant see this web: http://rathena.org/board/pastebin/4uoqzic2dsf4 :S

post your bug here lol

http://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;
}
Edited by AnnieRuru

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...