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

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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