Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 31.03.2006, 09:05   #4
barabashka
Архивный участник
 
Join Date: Jan 2006
Posts: 55
Default Re: Is it possible to teleport players away from territory a

Quote:
Originally Posted by nitromaxboi
is it possible to teleport players away from territory after some time to another area? or after a mob dies etc like after castle siege ends OR when someone logout, it will teleport the players from that territory to town.
Maybe this help you.

When NPC see you - result: teleport player to x,y,z.
Code:
EventHandler SEE_CREATURE(creature)
	{
		if (InMyTerritory(creature))
		{
		      	InstantTeleport(creature, x, y, z);
		}	
	}
When NPC dye - the same result
Code:
EventHandler MY_DYING(c1) 
{ 
  c1 = GetLastAttacker(); 
  InstantTeleport(c1, x, y, z);
}
When Castle Siege is end - teleport to town
Code:
EventHandler SEE_CREATURE(creature)
	{
	    if(Castle_IsUnderSiege()) 
           {
                AddDoNothingDesire(-1, 9999);
           }	
           else     Castle_BanishOthers();
	}
Or PM me for detail information
barabashka is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:11.