summaryrefslogtreecommitdiff
path: root/npc/003-2-1/demure.txt
blob: 286281d67a8585278c375fb4f83ecf37eb25dac6 (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
// TMW2 Script
// Author:
//    Crazyfefe
//    Jesusalva

003-2-1,51,41,0	script	NotSoBot	NPC_FEMALE,{

    RegEasterEgg(EE_DEMURE, 5);

    if (countitem(ComplaintForm) > 100) {
        delitem ComplaintForm, 100;
        Zeny+=100*getiteminfo(ComplaintForm, ITEMINFO_SELLPRICE);
        dispbottom l("Due to a bug, all your complaint forms became money!");
        RegEasterEgg(EE_COMPLAINT, 15);
        FLAGS = FLAGS | FLAG_COMPLAINTFORM;
    }

    // Let's try without freeloop
    mesn any("NotSoBot", "Demure");
    if (rand2(1,5) <= 2)
        mes "Blame Saulc";

    .@mx=rand2(6,12);
	for (.@i = 0; .@i < .@mx; ++.@i) {
        mes "leave Complaints";
        if (rand2(1,5) == 3)
            mes "";
        if (.@i == 10) {
            next;
            mesn any("NotSoBot", "Demure");
            mes any("leave Complaints", "Blame Saulc");
        }
	}
    if (rand2(1,5) >= 4)
        mes "Blame Saulc";
    close;

OnHydra:
    areamonster "003-2-1", 20, 20, 65, 60, strmobinfo(1, ComplaintDragon), ComplaintDragon, any(1,1,2), "NotSoBot::OnHydra2";
    setq Q_DragonFarm, getq(Q_DragonFarm)+1;
    fix_mobkill(ComplaintDragon);
    if (getq(Q_DragonFarm) > 100) goto L_Kick;
    end;

OnHydra2:
    setq Q_DragonFarm, getq(Q_DragonFarm)+1;
    fix_mobkill(ComplaintDragon);
    if (getq(Q_DragonFarm) > 100) goto L_Kick;
    end;

L_Kick:
    .@t=900+min(2700, getq3(Q_DragonFarm)*60);
    setq Q_DragonFarm, 1, gettimetick(2)+.@t, getq3(Q_DragonFarm)+1;
    warp "003-2", 28, 41;
    end;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, Cap);
    setunitdata(.@npcId, UDT_HEADMIDDLE, RedStockings);
    setunitdata(.@npcId, UDT_HEADBOTTOM, BunnyEars);
    setunitdata(.@npcId, UDT_WEAPON, GMRobe);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 14);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 18);

    .sex = G_FEMALE;
    .distance = 5;
    end;
}