Jump to content
  • 0

Guilds System


kurosaki

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  05/03/14
  • Last Seen:  

Well, I was thinking of a NPC.   /ic

An NPC that when clicking it, enter for a Guild.

More, Has a Problem.   /x

It is not a normal system ... 

Sign up for the "Guild" This "Guild" Tera only one Map it 

ie: there were only three "Guilds" 

More when the Player Ex: Guild - Guild & 1 - 2 

If the Player's Guild 2 Enter the map of the Guild 1 

Announces: The Player (Player's Name) invaded (name MAP) 

and activates the PVP 

Knowing how I would do this? 

Can you send me the script?

 

Thanks ^^   /no1

Edited by kurosaki
Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

setarray .map$[0],"Guild Map 1","Guild Map 2","Guild Map 3"; //Replace with the name of the maps each guild owns
setarray .guild[0],1,2,3; //Replace with the guild ids that belong to the corresponding guild maps.

You should know all of this information already if your requesting this script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  05/03/14
  • Last Seen:  

help-me  /??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  05/03/14
  • Last Seen:  

Posted · Hidden by Emistry, August 25, 2014 - Merged + Hidden duplicated contents.
Hidden by Emistry, August 25, 2014 - Merged + Hidden duplicated contents.
Well, I was thinking of a NPC.    /ic

An NPC that when clicking it, enter for a Guild.

More, Has a Problem.    /x

It is not a normal system ... 

Sign up for the "Guild" This "Guild" Tera only one Map it 

ie: there were only three "Guilds" 

More when the Player Ex: Guild - Guild & 1 - 2 

If the Player's Guild 2 Enter the map of the Guild 1 

Announces: The Player (Player's Name) invaded (name MAP) 

and activates the PVP 

Knowing how I would do this? 

Can you send me the script?

 

Thanks ^^    /no1

Link to comment

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2347
  • Joined:  10/28/11
  • Last Seen:  

instead of PVP .... just simply add the GVG mapflag to all these map.

 

the "PVP" will auto activated when other guild come.. 

 

you just need a NPC to help you announce which guild member from other guild have invaded your town 

as well as add town ownership.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Try this:

-	script	GuildInvasion	-1,{
OnInit:
setarray .map$[0],"Guild Map 1","Guild Map 2","Guild Map 3";
setarray .guild[0],1,2,3;
OnPCLoadMapEvent:
//Guild Map 1
if( strcharinfo(3) == .map$[0] && getcharid(2) == .guild[0] ){end;}
	else { mapannounce .map$[0],strcharinfo(0) +" from ["+getguildname(getcharid(2))+"] has invaded your home town!",bc_blue|bc_map; end; }
//Guild Map 2
if(	strcharinfo(3) == .map$[0] && getcharid(2) == .guild[0] ){end;}
	else { mapannounce .map$[0],strcharinfo(0) +" from ["+getguildname(getcharid(2))+"] has invaded your home town!",bc_blue|bc_map; end; }
// Guild Map 3
if(	strcharinfo(3) == .map$[0] && getcharid(2) == .guild[0] ){end;}
	else { mapannounce .map$[0],strcharinfo(0) +" from ["+getguildname(getcharid(2))+"] has invaded your home town!",bc_blue|bc_map; end; }

//Add more as needed.

// End since, they are not on any of the maps.
end;
}

guild_map_1	mapflag	gvg
guild_map_2	mapflag	gvg
guild_map_3	mapflag	gvg

guild_map_1	mapflag	loadevent
guild_map_2	mapflag	loadevent
guild_map_3	mapflag	loadevent

guild_map_1	mapflag	noteleport
guild_map_2	mapflag	noteleport
guild_map_3	mapflag	noteleport

It detects if a player warps onto 1 of the guild maps. If they do, it then checks to see if they are in the same guild as the map owners. If they are, nothing happens. If they are NOT, then it announces that they invaded the map.

 

As Emistry suggested, GVG is enabled, so PVP will always be on if it's to fight enemy guilds. You won't be able to hurt your guild members.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  05/03/14
  • Last Seen:  

Try this:

-	script	GuildInvasion	-1,{
OnInit:
setarray .map$[0],"Guild Map 1","Guild Map 2","Guild Map 3";
setarray .guild[0],1,2,3;
OnPCLoadMapEvent:
//Guild Map 1
if( strcharinfo(3) == .map$[0] && getcharid(2) == .guild[0] ){end;}
	else { mapannounce .map$[0],strcharinfo(0) +" from ["+getguildname(getcharid(2))+"] has invaded your home town!",bc_blue|bc_map; end; }
//Guild Map 2
if(	strcharinfo(3) == .map$[0] && getcharid(2) == .guild[0] ){end;}
	else { mapannounce .map$[0],strcharinfo(0) +" from ["+getguildname(getcharid(2))+"] has invaded your home town!",bc_blue|bc_map; end; }
// Guild Map 3
if(	strcharinfo(3) == .map$[0] && getcharid(2) == .guild[0] ){end;}
	else { mapannounce .map$[0],strcharinfo(0) +" from ["+getguildname(getcharid(2))+"] has invaded your home town!",bc_blue|bc_map; end; }

//Add more as needed.

// End since, they are not on any of the maps.
end;
}

guild_map_1	mapflag	gvg
guild_map_2	mapflag	gvg
guild_map_3	mapflag	gvg

guild_map_1	mapflag	loadevent
guild_map_2	mapflag	loadevent
guild_map_3	mapflag	loadevent

guild_map_1	mapflag	noteleport
guild_map_2	mapflag	noteleport
guild_map_3	mapflag	noteleport

It detects if a player warps onto 1 of the guild maps. If they do, it then checks to see if they are in the same guild as the map owners. If they are, nothing happens. If they are NOT, then it announces that they invaded the map.

 

As Emistry suggested, GVG is enabled, so PVP will always be on if it's to fight enemy guilds. You won't be able to hurt your guild members.

Thanks, Thanks, but that it'll work the same guy? * - * 
Like ... If I make an NPC to teleport players to the Guild of Tal map of this Guild Enemy "Go System work?" 
When the Player or the Guild Enemy EnterWarp Guild Of Enemy?

Try this:

-	script	GuildInvasion	-1,{
OnInit:
setarray .map$[0],"Guild Map 1","Guild Map 2","Guild Map 3";
setarray .guild[0],1,2,3;
OnPCLoadMapEvent:
//Guild Map 1
if( strcharinfo(3) == .map$[0] && getcharid(2) == .guild[0] ){end;}
	else { mapannounce .map$[0],strcharinfo(0) +" from ["+getguildname(getcharid(2))+"] has invaded your home town!",bc_blue|bc_map; end; }
//Guild Map 2
if(	strcharinfo(3) == .map$[0] && getcharid(2) == .guild[0] ){end;}
	else { mapannounce .map$[0],strcharinfo(0) +" from ["+getguildname(getcharid(2))+"] has invaded your home town!",bc_blue|bc_map; end; }
// Guild Map 3
if(	strcharinfo(3) == .map$[0] && getcharid(2) == .guild[0] ){end;}
	else { mapannounce .map$[0],strcharinfo(0) +" from ["+getguildname(getcharid(2))+"] has invaded your home town!",bc_blue|bc_map; end; }

//Add more as needed.

// End since, they are not on any of the maps.
end;
}

guild_map_1	mapflag	gvg
guild_map_2	mapflag	gvg
guild_map_3	mapflag	gvg

guild_map_1	mapflag	loadevent
guild_map_2	mapflag	loadevent
guild_map_3	mapflag	loadevent

guild_map_1	mapflag	noteleport
guild_map_2	mapflag	noteleport
guild_map_3	mapflag	noteleport

It detects if a player warps onto 1 of the guild maps. If they do, it then checks to see if they are in the same guild as the map owners. If they are, nothing happens. If they are NOT, then it announces that they invaded the map.

 

As Emistry suggested, GVG is enabled, so PVP will always be on if it's to fight enemy guilds. You won't be able to hurt your guild members.

to sum up:
A and was the same GVG ^^ 
more ... now I just want to know if when Using a Player @Warp
The System Will Work
And like me I set the Script?
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Okay so let me try to get this straight.

1. This script works just fine.

2. You want to know if it'll work when a player uses @warp to one of the guild maps?

 

If this is so, then the answer to #2 is Yes. When a player uses @warp to the map, it should trigger the OnPCLoadMapEvent: which will make the script run.

 

If what you're trying to do is remove the ability to use @warp to the map, then a mapflag needs to be added.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  05/03/14
  • Last Seen:  

Okay so let me try to get this straight.

1. This script works just fine.

2. You want to know if it'll work when a player uses @warp to one of the guild maps?

 

If this is so, then the answer to #2 is Yes. When a player uses @warp to the map, it should trigger the OnPCLoadMapEvent: which will make the script run.

 

If what you're trying to do is remove the ability to use @warp to the map, then a mapflag needs to be added.

How do I configure this Script?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   1
  • Joined:  09/07/12
  • Last Seen:  

Can someone tell me how this script works? o.o I can't understand the description Q_Q

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

It works like this.

1. give each guild you add to the list a guild map of their own.

2. Then, when ever a player of a different guild enters a guild map that doesn't belong to them, it will announce it.

3. It currently only supports 128 guilds.

 

ex:

Guild A has it's own map.

Guild B has it's own map.

If a member of Guild A enters Guild B's map, then the server will announce that Guild B's map has been invaded by a member of Guild A.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  109
  • Reputation:   1
  • Joined:  09/07/12
  • Last Seen:  

oooh, thank you!

Link to comment
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.

×
×
  • Create New...