I want to divide my server into two global group's that can figth each other, i just did an NPC to register and divide them into two group's, but I need the source code so that players cannot hit players who are in the same group. Can anyone give me an example or something?. Thanks in advance.
Here is the example of the Register NPC, so you can make an idea of what i want.
mes "Select a group please";
menu "Group 1",gr1,"Group 2",gr2;
gr1:
set group,1;
mes "Allright, you are in Group 1 now.";
close;
gr2:
set group,2;
mes "Allright, you are in Group 2 now.";
close;
}
Question
admagnus
Hi, veterans!.
I want to divide my server into two global group's that can figth each other, i just did an NPC to register and divide them into two group's, but I need the source code so that players cannot hit players who are in the same group. Can anyone give me an example or something?. Thanks in advance.
Here is the example of the Register NPC, so you can make an idea of what i want.
mes "Select a group please"; menu "Group 1",gr1,"Group 2",gr2; gr1: set group,1; mes "Allright, you are in Group 1 now."; close; gr2: set group,2; mes "Allright, you are in Group 2 now."; close; }
codebox
Link to comment
Share on other sites
2 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.