![]() |
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.
|
help pls
|
//recall ?
-about mobs i guess it could be done with AI |
Re: Is it possible to teleport players away from territory a
Quote:
When NPC see you - result: teleport player to x,y,z. Code:
EventHandler SEE_CREATURE(creature)Code:
EventHandler MY_DYING(c1) Code:
EventHandler SEE_CREATURE(creature) |
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
|
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 |
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
|
Quote:
Example: When Raid boss die, all his pets are die too: class raid_boss : party_leader { parameter: string Privates = "raid_pet:party_private:1:10sec"; handler: EventHandler CREATED() { myself.sm.weight_point = 10; CreatePrivates(Privates); super; } } class raid_pet : party_private { parameter: string Privates = "raid_boss:party_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:party_private:1:10sec"; handler: EventHandlerPARTY_DIED(private) { if(private != myself.sm) Despawn(); } } |
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.
|
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
|
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:) |
| All times are GMT. The time now is 16:04. |