Jump to content
  • 0

Question

Posted (edited)
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

11 answers to this question

Recommended Posts

Posted
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.

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

Posted

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.

Posted

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.

Posted

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?
Posted

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.

Posted

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?

Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...