summaryrefslogtreecommitdiff
path: root/npc/003-1-3/thief.txt
blob: bdcfc225377b870776d39c56ee943cef350c728f (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// TMW2 Scripts.
// Author:
//  Jesusalva
// Description:
//  Temporary NPC to block path to Halinarzo, later a controlled warp. May be removed soon.

003-1-3,45,35,0	script	Thief#temp003	NPC_PLAYER,0,0,{

    mesn;
    mesq l("I am from the Thief's Guild of Hurnscald.");
    next;
    mesq l("At the moment no one is being allowed past this point.");
    next;
    mesq l("Call the High Council, if you may. I won't free this path any time soon!");
    close;

OnTouch:
    if (is_admin()) goto L_Warp; // if (BaseLevel >= 15) and this NPC must be invisible
    warp "003-1-3", 45, 36;
    percentheal -10,0;
    mesn;
    mesq l("Stop there! No one is allowed past this point! Stand back!!");
    mes "";
    mes col("The thief pushes you with so much strength, that you get hurt.",9);
    close;

L_Warp:
    warp "009-2", 70, 179;
    close;

OnInit:
    .@npcId = getnpcid(0, .name$);
    setunitdata(.@npcId, UDT_HEADTOP, ForestArmor); // Dress
    setunitdata(.@npcId, UDT_HEADMIDDLE, JeansChaps); // 2214 FIXME
    setunitdata(.@npcId, UDT_HEADBOTTOM, LousyMoccasins); // Shoes
    setunitdata(.@npcId, UDT_WEAPON, 3501); // We should use a hood instead
    setunitdata(.@npcId, UDT_HAIRSTYLE, 8);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 5);

    .sex = G_MALE;
    .distance = 4;
    end;

}