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