How to fix this , i want put party register like Private MVP by AnnieRuru ?
Like a -
- If leader party has be register , another leader party cannot inside the map.
- If the group they die, they can not return.
prontera,143,178,4 script MVP Room 122,{
mes "[ ^FF0000My-Intensity GateKeeper^000000 ]";
mes "Hi. I'm glad to be of service. I will open the PvP fight square for you!";
switch(select("I want kill Ifrit![ "+getmapusers("guild_vs3")+" Users ]")) {
Case 1:
if (getmapusers("guild_vs3") >=1) goto Lsorry;
// check if they are in a party
if (getcharid(1) == 0) {
next;
mes "[ ^FF0000My-Intensity GateKeeper^000000 ]";
mes "You need to be in a party to continue.";
close;
}
// check if they are party leader
if (getpartyleader(getcharid(1),2) != getcharid(0)) {
next;
mes "[ ^FF0000My-Intensity GateKeeper^000000 ]";
mes "Only your party leader can warp your party.";
close;
}
set .@AID, playerattached(); // save their AID (so we can reattach later)
getpartymember(getcharid(1),2); // get party info
set .@count, $@partymembercount; // copy to scope variables
copyarray .@members_aid[0], $@partymemberaid[0], .@count;
// check how many party members
if (.@count < 1 || countitem(19901) < 1) {
next;
mes "[ ^FF0000My-Intensity GateKeeper^000000 ]";
mes "You need at least 1 online party members to continue and 2 TGC Card.";
close;
}
for( set .@i,0; .@i < .@count; set .@i,.@i+1 ) {
if (attachrid(.@members_aid[.@i])) { // online check
if (BaseJob > 6) { // check Base Job
// check for mounted classes (peco)
if (BaseJob == Job_Knight2)
set .@job, Job_Knight;
else if (BaseJob == Job_Crusader2)
set .@job, Job_Crusader;
else
set .@job, BaseJob;
// check for duplicate classes in party
if (.@classes & pow(2,.@job)) {
attachrid(.@AID); // reattach to party leader
mes "There can only be one of each base class.";
close;
} else {
set .@classes, .@classes | pow(2,.@job);
}
} else {
attachrid(.@AID); // reattach to party leader
next;
mes "[ ^FF0000My-Intensity GateKeeper^000000 ]";
mes "Novice, Swordman, Mage, Archer, Acolyte, Merchant, Thief are not allowed";
close;
}
} else {
attachrid(.@AID); // reattach to party leader
next;
mes "[ ^FF0000My-Intensity GateKeeper^000000 ]";
mes "All party members must be online";
close;
}
}
warpparty "guild_vs3",105,125, getcharid(1);
close;
Lsorry:
next;
mes "[ ^FF0000My-Intensity GateKeeper^000000 ]";
mes "Please Wait";
close;
}
}
Question
MukkiesftKies
How to fix this , i want put party register like Private MVP by AnnieRuru ?
Like a -
- If leader party has be register , another leader party cannot inside the map.
- If the group they die, they can not return.
Edited by ToastOfDoomcodeboxed
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.