![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2005
Posts: 62
|
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.
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Feb 2005
Posts: 62
|
help pls
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
//recall ?
-about mobs i guess it could be done with AI |
|
|
|
|
#4 | |
|
Архивный участник
Join Date: Jan 2006
Posts: 55
|
Quote:
When NPC see you - result: teleport player to x,y,z. Code:
EventHandler SEE_CREATURE(creature)
{
if (InMyTerritory(creature))
{
InstantTeleport(creature, x, y, z);
}
}
Code:
EventHandler MY_DYING(c1)
{
c1 = GetLastAttacker();
InstantTeleport(c1, x, y, z);
}
Code:
EventHandler SEE_CREATURE(creature)
{
if(Castle_IsUnderSiege())
{
AddDoNothingDesire(-1, 9999);
}
else Castle_BanishOthers();
}
|
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Feb 2005
Posts: 62
|
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
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jan 2006
Posts: 55
|
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 |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Feb 2005
Posts: 62
|
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
|
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Jan 2006
Posts: 55
|
Quote:
Example: When Raid boss die, all his pets are die too: class raid_boss : party_leader { parameter: string Privates = "raid_pet arty_private:1:10sec";handler: EventHandler CREATED() { myself.sm.weight_point = 10; CreatePrivates(Privates); super; } } class raid_pet : party_private { parameter: string Privates = "raid_boss arty_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_pet arty_private:1:10sec";handler: EventHandlerPARTY_DIED(private) { if(private != myself.sm) Despawn(); } } |
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Feb 2005
Posts: 62
|
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.
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Feb 2005
Posts: 62
|
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
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Jan 2006
Posts: 55
|
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
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|