summaryrefslogtreecommitdiff
path: root/npc/002-5/main.txt
blob: 6677122700ef4c7da09d2517658dbe447957d527 (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
45
46
47
48
// TMW2 script
// Originals from TMW-BR
// TODO WARNING: File not yet modified. DO NOT USE.

002-5,28,27,0	script	#teleporterNavio	NPC_HIDDEN,117,29,{
    end;

OnEvent:
    if (PC_DEST == 1) goto L_Destino1;
    if (PC_DEST == 2) goto L_Destino2;
    if (PC_DEST == 3) goto L_Destino3;
    end;

L_Destino1:
    message strcharinfo(0), "" + strcharinfo(0) + " desembarcou na Ilha de Bhramir.";
    warp "007", 21, 94;
    PC_DEST = 0;
    @timer_navio_running = 0;
    end;

L_Destino2:
    message strcharinfo(0), "" + strcharinfo(0) + " desembarcou no Polo Norte.";
    warp "010", 178, 67;
    PC_DEST = 0;
    @timer_navio_running = 0;
    end;

L_Destino3:
    message strcharinfo(0), "" + strcharinfo(0) + " desembarcou nas Terras Desconhecidas.";
    warp "org016", 51, 102;
    PC_DEST = 0;
    @timer_navio_running = 0;
    end;
}

002-5,40,26,0	script	Elmo	NPC_ELMO,{
    set @porto, 0; // Em alto mar
    //callfunc "CapitaoMirc";
    hello;
    close2;
    if (PC_DEST != 0 && @timer_navio_running == 0) goto L_Timer;
    end;

L_Timer:
    addtimer 42000, "#teleporterNavio::OnEvent";
    @timer_navio_running = 1;
    end;
}