- 0
Party vs party. Both leaders must click NPC before it starts?
Asked by
Helena
-
Recently Browsing 0 members
No registered users viewing this page.
Asked by
Helena
No registered users viewing this page.
By using this site, you agree to our Terms of Use.
Hi Herc!
I'm using a party vs party script which both work perfectly aside one small issue.
What i want is that both party leaders must give their "ok" before the event starts. I thought this was possible through a simple set ready_red,1; and set ready_blue,1; but apparently this label checks if the character that clicks the NPC has both sets (while obviously team red characters wont have a ready_blue == 1 label).
How can i make this happen? Party leader both should say "we're ready!" before the script works?
Here's the part that I'll need support with:
menu "- We're good to go!",-; if($@DAstart == 2 || $@DAstart == 1){ mes "[Faction Controller]"; mes "There is currently a match in progress. I will be able to assist you once this match is over."; close; } if(getareausers("izlude_da",90,235,120,270) < 2 && getareausers("izlude_da",235,90,270,120) <= 2 || getareausers("izlude_da",90,235,120,270) <= 2 && getareausers("izlude_da",235,90,270,120) < 2) { mes "[Faction Controller]"; mes "We can't start yet, there need to be at least 2 players on each side."; close; } if (blue_ready == 1 || red_ready == 1){ enablenpc "Factionwar"; close2; set $@DAstart,0; set $@paxPoint,0; set $@rekPoint,0; set $@ATKstatus,0; set $@DEFstatus,0; set $@wallStatus,0; donpcevent "Factionwar::OnCheck"; } if(getfaction() == 2){ mes "[Faction Controller]"; mes "Great! Now we must wait until Red is ready as well."; set blue_ready,1; close; } if(getfaction() == 3){ mes "Great! Now we must wait until Blue is ready as well."; set red_ready,1; close; } if(blue_ready < 1 || red_ready < 1){ mes "[Faction Controller]"; mes "Hang on please. The other Faction isn't ready yet."; close2; if(getfaction() == 3){ set red_ready,1; } if(getfaction() == 2){ set blue_ready,1; } } L_Noty2: mes "[Faction Controller]"; mes "Please let me know if I can be of service!"; close; }Edited by HelenaShare this post
Link to post
Share on other sites