summaryrefslogtreecommitdiff
path: root/npc/000-2-1/knife.txt
blob: d531a8111b57705bc54d260746bd82ed1a9bcdcb (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
// Evol scripts.
// Authors:
//    Ablu 
//    Saulc
//    Qwerty Dragon
// Description:
//    Knife on the table.
// Variable:
//    ShipQuests_Knife
// Values:
//    0   Default, not taken.
//    1   Knife taken.

000-2-1,50,24,0	script	#knife-Org	NPC_KNIVES,{
    .@q = getq(ShipQuests_Knife);
    if (.@q) close;

    mesn "Narrator";
    mes col(l("There are some old rusty knives on the table. Would you like to take one?"), 9);
    next;

    menu
        l("Yeah !."), L_Give,
        l("Na."), -;
 
    closedialog;
    close;

L_Give:
    mes "";
    inventoryplace RustyKnife, 1;

    setq ShipQuests_Knife, 1;
    getitem RustyKnife, 1;

    mesn "Narrator";
    mes col(l("To open your inventory, use the F3 key or use your mouse to select it in the above menu in your client."), 9);
    next;
    mes col(l("When your inventory is open, you can equip an item by selecting it and clicking 'Equip'. You can do the same to unequip an item by clicking on 'Unequip'."), 9);
    next;
    mes col(l("Items have different effects. Some will heal you, some can be used as weapons or armor, and some can be sold for gold."), 9);

    close;

OnInit:
    .distance = 2;
    end;
}