summaryrefslogtreecommitdiff
path: root/world/map/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-12 16:29:31 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-12 16:29:31 -0300
commita96a11a53bcc0141f87d937dddbe25855549b76b (patch)
treeb6a827f82fb4b4384f56c9c59f0db8b27f512270 /world/map/npc/items
parent1e3358411fc5b13a2c83ef6e7a1ea7f0c69bd0a3 (diff)
downloadclassic-serverdata-a96a11a53bcc0141f87d937dddbe25855549b76b.tar.gz
classic-serverdata-a96a11a53bcc0141f87d937dddbe25855549b76b.tar.bz2
classic-serverdata-a96a11a53bcc0141f87d937dddbe25855549b76b.tar.xz
classic-serverdata-a96a11a53bcc0141f87d937dddbe25855549b76b.zip
Valentine Day 2021 - Express code (tested)
Diffstat (limited to 'world/map/npc/items')
-rw-r--r--world/map/npc/items/love_potion.txt49
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;
+
+}