summaryrefslogtreecommitdiff
path: root/npc/009-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-11 13:35:08 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-11 13:35:08 -0300
commit7ec475c058c340dd95f49e9c599dcc62bd19fb16 (patch)
tree8c33fc5d33428b99e0df50088b4884b3aa9eafa9 /npc/009-1
parentf0b75fb23e0e6f9e7e99907f3dac6ee327c52528 (diff)
downloadserverdata-7ec475c058c340dd95f49e9c599dcc62bd19fb16.tar.gz
serverdata-7ec475c058c340dd95f49e9c599dcc62bd19fb16.tar.bz2
serverdata-7ec475c058c340dd95f49e9c599dcc62bd19fb16.tar.xz
serverdata-7ec475c058c340dd95f49e9c599dcc62bd19fb16.zip
Fix typos. Add the newer npcs: Ashley, Kytty and The Beheader
Diffstat (limited to 'npc/009-1')
-rw-r--r--npc/009-1/_import.txt1
-rw-r--r--npc/009-1/event.txt160
2 files changed, 161 insertions, 0 deletions
diff --git a/npc/009-1/_import.txt b/npc/009-1/_import.txt
index 207b090c..a414e690 100644
--- a/npc/009-1/_import.txt
+++ b/npc/009-1/_import.txt
@@ -3,6 +3,7 @@
"npc/009-1/_mobs.txt",
"npc/009-1/_warps.txt",
"npc/009-1/constable.txt",
+"npc/009-1/event.txt",
"npc/009-1/guide.txt",
"npc/009-1/jack.txt",
"npc/009-1/mapflags.txt",
diff --git a/npc/009-1/event.txt b/npc/009-1/event.txt
new file mode 100644
index 00000000..edd39f34
--- /dev/null
+++ b/npc/009-1/event.txt
@@ -0,0 +1,160 @@
+
+009-1,30,34,0 script Kytty NPC430,{
+ // Core Variable Switcher
+ if (gettime(5) >= 13 && gettime(5) <= 15) goto L_Quest;
+ if (gettime(5) > 15 && strcharinfo(0) == "kytty" && $VALENTINE) goto L_StopEvent;
+ if (gettime(5) > 15 && #VALENTINE) goto L_ClaimRewards;
+ if (gettime(5) > 15 && GM >= GM_DEV && $VALENTINE) goto L_ReadOnly;
+ mes "[Kytty]";
+ mes "\"Uh? Hello there. I am looking for my husband to stare at him, don't mind me.\"";
+ close;
+
+L_Quest:
+ if (#VALENTINE) goto L_Running;
+ // Core dialog
+ mes "[Kytty]";
+ mes "\"Hey, "+strcharinfo(0)+"! I have a problem and perhaps you can help me!\"";
+ next;
+ menu
+ "Sure, m'am... What should I do?", L_Continue,
+ "Who, me? Sorry, wrong person.", L_close;
+
+L_Continue:
+ mes "";
+ mes "[Kytty]";
+ mes "\"I feel like my husband is staring at other people, and that is ABSURD! He should only stare at kytty!\" %%e";
+ next;
+ mes "[Kytty]";
+ mes "\"So kytty came up with a great plan - kytty will brew some [@@5263|Love Potions@@] so hubby only stares at me!\"";
+ next;
+ mes "[Kytty]";
+ mes "\"I have most ingredients, but a few are still missing and I was hoping you could help me out:\"";
+ mes "- 20x Cherry";
+ mes "- 20x Chocolate Bar";
+ mes "- 1x Diamond";
+ mes "- 1x Chocolate Cake";
+ next;
+ mes "[Kytty]";
+ mes "\"Uh? Of course I won't put everything in the potion! Wyara will sell me some other ingredients for the diamond, and... Hey, stop making questions!\"";
+ next;
+ mes "[Kytty]";
+ mes "\"Do you have everything I've asked for?\"";
+ menu
+ "I do.", L_Check,
+ "I don't.", L_close;
+
+L_Check:
+ mes "";
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_Full;
+
+ if (countitem("ChocolateBar") < 20) goto L_NotEnough;
+ if (countitem("Cherry") < 20) goto L_NotEnough;
+ if (countitem("Diamond") < 1) goto L_NotEnough;
+ if (countitem("ChocolateCake") < 1) goto L_NotEnough;
+
+ delitem "ChocolateBar", 20;
+ delitem "Cherry", 20;
+ delitem "Diamond", 1;
+ delitem "ChocolateCake", 1;
+ getitem "LovePotion", 1;
+ getexp 50000, 0;
+ #VALENTINE = 1;
+ mes "[Kytty]";
+ mes "\"With this, he will totally stare only at me now! Thanks for the help. Here, you can have an extra, but you are not cute like him so don't blame me if it don't work or present... side effects.\"";
+ next;
+ mes "[Kytty]";
+ mes "\"Also, I love chocolate. I'll give you a spare potion every fifty [@@509|@@] you bring me.\"";
+ close;
+
+L_NotEnough:
+ mes "";
+ mes "[Kytty]";
+ mes "\"Don't try to troll me, I know you don't have everything.\"";
+ close;
+
+L_Full:
+ mes "[Kytty]";
+ mes "\"Free up some space in your inventory, please.\"";
+ close;
+
+L_Running:
+ getinventorylist;
+ if (@inventorylist_count == 100) goto L_Full;
+ mes "[Kytty]";
+ mes "\"Have you brought me more chocolate? I am starving with only "+$VALENTINE+" [@@509|@@]. You ##Bonly##b gave me "+(#VALENTINE-1)+" bar(s), after all!\"";
+ next;
+ menu
+ "Not yet, but I'll be back.", L_close,
+ "Sure thing miss, take all you want!", L_Collect;
+
+L_Collect:
+ mes "";
+ @choco = countitem("ChocolateBar");
+ @bonus = (#VALENTINE%50)+@choco;
+ @potio = @bonus/50;
+ //debugmes "Choco "+@choco+" Potio "+@potio+" Bonus "+@bonus+".";
+ @bonus = 0;
+ delitem "ChocolateBar", @choco;
+ #VALENTINE = #VALENTINE+@choco;
+ $VALENTINE = $VALENTINE+@choco;
+ getexp @choco*15, @choco*7;
+ if (@potio) goto L_BonusPots;
+ mes "[Kytty]";
+ mes "\"Yummy! Thanks for your support. Tell me if you have more chocolate!\"";
+ close;
+
+L_BonusPots:
+ getitem "LovePotion", @potio;
+ mes "[Kytty]";
+ mes "\"Here are some love potions for you. But as I said - I'm not sure if you are cute enough for them.\"";
+ close;
+
+L_StopEvent:
+ mes "[Kytty]";
+ mes "\"Hey other me! I still have "+$VALENTINE+" chocolate bars, but I'm a NPC and cannot eat them, so here they are!\"";
+ next;
+ @choco = min($VALENTINE, 30000);
+ getitem "ChocolateBar", @choco;
+ $VALENTINE = $VALENTINE-@choco;
+ mes "[Kytty]";
+ mes "\"Also: Jesusalva asked me to wish you a happy Valentine Day.\"";
+ close;
+
+L_ReadOnly:
+ mes "[Kytty]";
+ mes "\"I'm still holding on "+$VALENTINE+" chocolate bars, but I'll eat them soon!\"";
+ close;
+
+L_ClaimRewards:
+ if(!#VALENTINE) goto L_close;
+ getinventorylist;
+ if (@inventorylist_count > 95) goto L_Full;
+ setarray @oldstock$, "GrassFedTofu", "Honey", "VeganWater", "FairTradeSoil", "LactoseFreeAcorn", "RawAir", "FreeRangeMoss";
+ getitem @oldstock$[rand(getarraysize(@oldstock$))], 1;
+ cleararray @oldstock$, "", getarraysize(@oldstock$);
+ //getitem "BlueWolfHelmet", 1; // FIXME?
+ getitem "ShockSweet", rand(4, 7);
+ getitem "DarkConcentrationPotion", rand(2, 5);
+ getexp 1+(#VALENTINE*BaseLevel)/2, 0;
+ #VALENTINE = 0;
+ close;
+
+L_close:
+ close;
+
+L_Off:
+ disablenpc "Kytty";
+ end;
+
+L_On:
+ enablenpc "Kytty";
+ end;
+
+OnInit:
+ if (gettime(6) == 2) goto L_On; // NPC shows only in February
+ goto L_Off;
+
+OnClock0000:
+ goto OnInit;
+}