diff options
Diffstat (limited to 'world/map/npc/items')
-rw-r--r-- | world/map/npc/items/love_potion.txt | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/world/map/npc/items/love_potion.txt b/world/map/npc/items/love_potion.txt new file mode 100644 index 00000000..a0ecc150 --- /dev/null +++ b/world/map/npc/items/love_potion.txt @@ -0,0 +1,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; + +} |