Party Checker (Job)

ragnazorg

New member
Messages
3
Points
0
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?

 
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

 
Last edited by a moderator:
Back
Top