summaryrefslogtreecommitdiff
path: root/npc/001-6/warp.txt
blob: ceb19c8d8d8e9f7249f046c5a772f8b07c086812 (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
// TMW2 Scripts
// Author:
//   Jesusalva
// Description:
//   TODO


001-6,159,157,0	script	Soren Village	NPC_SUMMONING_CIRC,0,0,{
    end;

OnTouch:
    if (@SorenWarpOnline == 1)
        end;
    dispbottom l("Loading warp, be at this spot in 15 seconds.");
    @SorenWarpOnline=1;
    addtimer 15000, "Soren Village::OnWarper";
    end;

OnWarper:
    @SorenWarpOnline=0;
    if (isin("001-6", 159, 157, 159, 157)) {
      if (!ispcdead())
        warp "soren", 179, 76;
    } else {
        dispbottom l("Failed to warp to Soren Village.");
    }
    end;

OnInit:
    .sex = G_OTHER;
    end;
}