summaryrefslogtreecommitdiff
path: root/npc/001-3-2/smuggler.txt
blob: 377ce4d5239ef40a8c2d5e3d85d9698b7743d29f (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Evol scripts.
// Author:
//    Micksha, Toams, Jesusalva
// Description:
//    The rowboat, picking up the player on the fake pier and bringing them to
//    Argaes Westport.

001-3-2,71,85,6	script	Smuggler	NPC_ROWBOAT_STAND_WE,{
    function smugglerNotAuthorized;
    function smugglerBoarding;
    mesn;
    mesq l("Hey dude, we actually have a pretty cool pirate ship near Artis.");
    next;
    mesn;
    mesq l("This lake may look natural, but it is not quite so. We're at sea level.");
    next;
    .@q=getq(ThiefQuests_Artis);
    if (.@q < 3)
        smugglerNotAuthorized();
    mesn;
    mesq l("Cool, right?");
    next;
    select
        l("Yes."),
        l("So? Will you bring me to Argaes?");
    mes "";
    if (@menu == 2)
        smugglerBoarding();
    close;

function smugglerNotAuthorized {
    mesn;
    mesq l("We smuggle not only goods, but people too. If Henry gives me the word...");
    next;
    mesn;
    mesq l("Hehehe... I've heard Hurnscald is wonderful at this time of the year!");
    close;
    return;
}

function smugglerBoarding {
    mesn;
    mesq l("Sure! Hold tight.");
    next;
    while (.lock)
    {
        mesn;
        mesq l("Just let me finish this first...");
        next;
    }
    setcam (76*32), (85*32);
    closeclientdialog;
    .lock=true;
    setpcblock(PCBLOCK_MOVE, true);
    npcwalkto(76, 85);
    sleep2(1000);
    //setmount 1;
    //warp "001-1", 227, 62;

    PC_DEST$="Argaes";
    @timer_navio_running = 1;
    addtimer 210000, "#MarineShip::OnEvent"; // This route is 30s slower
    warp "marine-2", 40, 32;
    dispbottom l("You're smuggled aboard the Legion expedition. ACT NATURALLY!");

    detachrid();
    .dir = 2;
    npcwalkto(71, 85);
    sleep(1000);
    .dir = 6;
    .lock=false;
    end;
    return;
}

OnInit:
    .bodytype = BODYTYPE_3;
    .distance = 4;
    .speed = 175;
    .alwaysVisible = true;
    .lock = false;
    end;

}