summaryrefslogtreecommitdiff
path: root/world/map/npc/items/love_potion.txt
blob: a0ecc1506dd091eab32a241b279b78e127c82707 (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
function|script|LovePotion
{
    goto L_CalcHair;

L_CalcHair:
    if (rand(80) < 40) goto L_DyeHair;
    goto L_CalcSwap;

L_CalcSwap:
    if (rand(80) < 20) goto L_GenderSwap;
    goto L_CalcPinkies;

L_CalcPinkies:
    if (rand(80) < 60) goto L_PinkieSwarm;
    goto L_CalcCupid;

L_CalcCupid:
    if (rand(80) < 35) goto L_CupidStomp;
    goto L_Finish;

L_Finish:
    message strcharinfo(0), "You suddenly feel a urge to stare at kytty. Weird potion.";
    return;

////
L_DyeHair:
    // 2 = Dark Red; 7 = Light Red; 11 = Pink
    setlook LOOK_HAIR_COLOR, (11 + (15 * (Class - 1)));
    message strcharinfo(0), "The power of love is so strong that your hair just got a lot more pink!";
    goto L_CalcSwap;

L_GenderSwap:
    set Sex, if_then_else(Sex == 3, rand(0, 1), if_then_else(rand(0,1), 3, !Sex));
    message strcharinfo(0), "Uh? I'm not feeling so well... Maybe I wasn't cute enough?";
    goto L_CalcPinkies;

L_PinkieSwarm:
    areamonster getmap(), getx()-10, gety()-10, getx()+10, gety()+10, "", 1018, 12;
    message strcharinfo(0), "Ooooh, pinkies, so lovely!";
    goto L_CalcCupid;

L_CupidStomp:
    set @python[0], BL_ID;
    misceffect 69, @python[0];
    addtimer 380, "python-foot::OnKill";
    message strcharinfo(0), "You are smelling so strongly like love, that Cupid decided to see what was wrong...";
    goto L_Finish;

}