• 0
Sign in to follow this  
admagnus

How can i active the PK mode betwen two group's?

Question

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;
}

 

Edited by Emistry
codebox
  • Upvote 1

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 1

since its just 2 team, create a battleground instead.

  • Love 1

Share this post


Link to post
Share on other sites
  • 0
On 12/17/2019 at 7:45 AM, Emistry said:

since its just 2 team, create a battleground instead.

Apreciate your help Emistry.

I was thinking the same, but that's not what i want ... i want to divide the server into two pvp groups that can fight eachother wherever and whenever they encounter. I don't know if i'm being clear enough, what i need is a  pvp battleground wihout respawn, map attachment/restriction, time restriction and team size restriction (A permanent global pvp that never ends between two groups, basicaly).
I was researching and found the source code of the battlegrounds hoping to copyng the code and editing it to my needs, but i barely understand the lenguage to do so.

If anyone can help, you're welcome.

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.   Paste as plain text instead

  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