Jump to content
  • 0
Sign in to follow this  
ragnazorg

Party Checker (Job)

Question

So I have to make a quest script which has this restriction

 

 

(to go further on with the quest, player must be partied with a wanderer or a minstrel)

 

 

I've checked the script commands but there is no explanation about how to check for specific class.

 

Anyone got inputs on this?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

This should work(in theory)

 

	getpartymember getcharid(1),0;	getpartymember getcharid(1),1;	getpartymember getcharid(1),2;	set .@count, $@partymembercount;	copyarray .@name$[0], $@partymembername$[0], $@partymembercount;		// list the party member names	for (set .@i,0; .@i < .@count; set .@i, .@i+1) {		if ((readparam(Class,.@name$[.@i]) == 4075 || readparam(Class,.@name$[.@i]) == 4076) && isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i])		//THE PARTY HAS A WANDERER/MINSTREL!				//THE PARTY HAS A WANDERER/MINSTREL!				//THE PARTY HAS A WANDERER/MINSTREL!	}	close;

 

 

Uses readparam script command.

 

The actual readparam usage is

 

 

 

readparam(<type>{,"<character name>"});

type can be

 

StatusPoint, BaseLevel, SkillPoint, Class, Upper, Zeny, Sex, Weight, MaxWeight,
JobLevel, BaseExp, JobExp, NextBaseExp, NextJobExp, Hp, MaxHp, Sp, MaxSp,
BaseJob, Karma, Manner, bVit, bDex, bAgi, bStr, bInt, bLuk

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.