summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-14 23:59:59 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-14 23:59:59 -0300
commitfd5bfe1aaee2a55b1e4adcc72ea67cadeffffbd6 (patch)
tree3e3a857340b8aceb1548f591384806da5f30fb46
parent811e4ea002ff5ddd21a9088229a42ebdc7aefb84 (diff)
downloadserverdata-fd5bfe1aaee2a55b1e4adcc72ea67cadeffffbd6.tar.gz
serverdata-fd5bfe1aaee2a55b1e4adcc72ea67cadeffffbd6.tar.bz2
serverdata-fd5bfe1aaee2a55b1e4adcc72ea67cadeffffbd6.tar.xz
serverdata-fd5bfe1aaee2a55b1e4adcc72ea67cadeffffbd6.zip
Valentine
-rw-r--r--npc/commands/ucp.txt13
-rw-r--r--npc/items/valentine.txt22
2 files changed, 35 insertions, 0 deletions
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index 00e46af92..f96a919ee 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -175,6 +175,16 @@ function script UserCtrlPanel {
mes l("Lethal overdrinking: ") + col(l("Allowed"), 2);
+ if ($EVENT$ == "Valentine") {
+ // GSET_VALENTINE_EATONE
+ // Eat all Chocolate Boxes from Valentine Day event
+ if (GSET_VALENTINE_EATONE)
+ mes l("[Valentine] Eat all chocolate: ") + col(l("Not allowed"), 1);
+ else
+ mes l("[Valentine] Eat all chocolate: ") + col(l("Allowed"), 2);
+ }
+
+
if (strcharinfo(2) == "Monster King") {
// GSET_AUTORECEIVE_COINS
// Enables/Disable autoreceive strange coins
@@ -196,6 +206,7 @@ function script UserCtrlPanel {
l("Toggle Daily Reward screen"),
l("Text Wall Density"),
l("Lethal alcohol overdrinking"),
+ rif($EVENT$ == "Valentine", ("Valentine Eating")),
rif(strcharinfo(2) == "Monster King", ("Toggle Autoreceive Event Coins"));
mes "";
@@ -222,6 +233,8 @@ function script UserCtrlPanel {
case 5:
GSET_ALCOHOL_NOOVERDRINK=!GSET_ALCOHOL_NOOVERDRINK; break;
case 6:
+ GSET_VALENTINE_EATONE=!GSET_VALENTINE_EATONE; break;
+ case 7:
GSET_AUTORECEIVE_COINS=!GSET_AUTORECEIVE_COINS; break;
}
clear;
diff --git a/npc/items/valentine.txt b/npc/items/valentine.txt
new file mode 100644
index 000000000..259b4fcb3
--- /dev/null
+++ b/npc/items/valentine.txt
@@ -0,0 +1,22 @@
+// TMW-2 script.
+// Author:
+// Jesusalva
+// Description:
+// Valentine eating
+
+// Create a random card, with rares
+function script EatValentineChocolate {
+ if ($EVENT$ != "Valentine" || #VALENTINE_OPENED >= #VALENTINE_RECEIVED) {
+ dispbottom l("Past due date.");
+ } else {
+ // I know technically this is wrong grammar, but I want fixed width
+ #VALENTINE_OPENED=#VALENTINE_OPENED+1;
+ #VALENTINE_POINTS=#VALENTINE_POINTS+1;
+ if (rand(0,1))
+ dispbottom l("It's tasty ^.^");
+ else
+ dispbottom l("It's yummy ^.^");
+ }
+ return;
+}
+