summaryrefslogtreecommitdiff
path: root/npc/042-4/ctrl.txt
blob: a2b22dd7870aa7c4877770227a03755bec8c90e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// TMW 2 Script
// Author:
//  Jesusalva
//  Micksha
// Description:
//  Controls sewers.
//  This one is simple, it just sends a message about path splitting
//  And spawn several monsters when instance is initialized D:
//  Also handles their respawn.

// A simple random treasure chest - to be sure players were introduced to this
// awesome system. Same rules as any treasure box still applies.
042-4,94,47,0	script	#chest_0424	NPC_CHEST,{

	TreasureBox();
	specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing
	close;

OnInit:
	.distance = 2;
	end;
}