View Single Post
Old 28.01.2006, 15:34   #1
hamidouch
Архивный участник
 
Join Date: Mar 2005
Posts: 475
Default [Sharin] SOE to towns (c4)

ok in c4 there's soe to towns and special places,
easy to do, just summon a npc then teleport master to spot, then despawn
here is the working ai

Code:
class summon_tp_talking : default_npc
{
parameter:
	int x = -83964;
	int y = 242680;
	int z = -3700;
		
handler:
	EventHandler CREATED()
	{
		SetTimerPeriodByTick(100);
		InstantTeleport(myself.master, x, y, z);
	}
	EventHandler TIMER_FIRED()
	{
		SetTimerPeriodByTick(0);
		Despawn();
	}
}

only thing is it doesn't despawn, im sure it's a simple syntax error,
can someone help me?
hamidouch is offline