Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 30.03.2006, 17:56   #1
nitromaxboi
Архивный участник
 
Join Date: Feb 2005
Posts: 62
Default Is it possible to teleport players away from territory aft

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.
nitromaxboi is offline  
Old 31.03.2006, 06:13   #2
nitromaxboi
Архивный участник
 
Join Date: Feb 2005
Posts: 62
Default

help pls
nitromaxboi is offline  
Old 31.03.2006, 06:38   #3
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

//recall ?
-about mobs i guess it could be done with AI
m4rk is offline  
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  
Old 31.03.2006, 09:34   #5
nitromaxboi
Архивный участник
 
Join Date: Feb 2005
Posts: 62
Default

hmm yes but players can just log out and wont get teleported. Ok can you also please tell me how do i party the mobs together because there is a handler that is party_died
nitromaxboi is offline  
Old 31.03.2006, 10:21   #6
barabashka
Архивный участник
 
Join Date: Jan 2006
Posts: 55
Default

Something I shall not understand what exactly you want to make. Explain to me what exactly you wishes to realize, and I shall help you as.
Sorry for my bad english
barabashka is offline  
Old 31.03.2006, 10:38   #7
nitromaxboi
Архивный участник
 
Join Date: Feb 2005
Posts: 62
Default

ok i wan to make like when a particular mob dies or despawn , the other mob will despawn too so i thought of using party_died in AI but i do not know how to party both mobs together
nitromaxboi is offline  
Old 31.03.2006, 10:57   #8
barabashka
Архивный участник
 
Join Date: Jan 2006
Posts: 55
Default

Quote:
Originally Posted by nitromaxboi
ok i wan to make like when a particular mob dies or despawn , the other mob will despawn too so i thought of using party_died in AI but i do not know how to party both mobs together
OK. Look at this:
Example:
When Raid boss die, all his pets are die too:

class raid_boss : party_leader
{
parameter:
string Privates = "raid_petarty_private:1:10sec";
handler:
EventHandler CREATED()
{
myself.sm.weight_point = 10;
CreatePrivates(Privates);
super;
}


}

class raid_pet : party_private
{
parameter:
string Privates = "raid_bossarty_private:1:10000000sec";
handler:
EventHandler PARTY_DIED(private)
{
if(private != myself.sm)
Despawn();
}
}


And this another example: when raid pet die, raid boss die too


class raid_boss : party_leader
{
parameter:
string Privates = "raid_petarty_private:1:10sec";
handler:
EventHandlerPARTY_DIED(private)
{
if(private != myself.sm)
Despawn();
}


}
barabashka is offline  
Old 31.03.2006, 11:12   #9
nitromaxboi
Архивный участник
 
Join Date: Feb 2005
Posts: 62
Default

but the thing is i want the other mob that spawn on npcpos on that location to despawn when this particular mob is killed. This only works if the raid boss spawns a npc as its private and you can't state location to spawn the privates.
nitromaxboi is offline  
Old 31.03.2006, 11:25   #10
nitromaxboi
Архивный участник
 
Join Date: Feb 2005
Posts: 62
Default

or is it even possible to use the user_connected handler 52 to check if user is within the territory when connected and if user is within the territory , teleport user to an specify area. if this is possible can you tell me how can i do it
nitromaxboi is offline  
Old 31.03.2006, 11:36   #11
barabashka
Архивный участник
 
Join Date: Jan 2006
Posts: 55
Default

Try this to spawn a privates without editing npcpos:
EventHandler ATTACKED(attacker, damage)
{
CreatePrivates(Privates);
super;

}

or
try
if (DistFromMe(c1) < X) InstantTeleport(c1, x,y,z);
c1=attacker or c1=creature and so on



Maybe I can't understand what you want to do
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 20:08.