summaryrefslogtreecommitdiff
path: root/npc/001-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-09 18:46:48 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-09 18:46:48 -0300
commitbe2662202390c9070c311bfd0f4b1a93ccc3111c (patch)
tree135e778181d5e0ad1869de6bca4922297eefed35 /npc/001-4
parent3a94aa53c20ce5eff254678ffe4454534000c65f (diff)
downloadserverdata-be2662202390c9070c311bfd0f4b1a93ccc3111c.tar.gz
serverdata-be2662202390c9070c311bfd0f4b1a93ccc3111c.tar.bz2
serverdata-be2662202390c9070c311bfd0f4b1a93ccc3111c.tar.xz
serverdata-be2662202390c9070c311bfd0f4b1a93ccc3111c.zip
Fix typos, remove broken code, improve logic. Delete old variables.
Diffstat (limited to 'npc/001-4')
-rw-r--r--npc/001-4/lilica.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/npc/001-4/lilica.txt b/npc/001-4/lilica.txt
index ab0754127..5d7f152e5 100644
--- a/npc/001-4/lilica.txt
+++ b/npc/001-4/lilica.txt
@@ -62,12 +62,9 @@ L_QuestDone:
inventoryplace .@Hat, 1;
delitem GoldenEasteregg, 40;
delitem SilverEasteregg, 10;
- //if (rand(0, 10000) < 1000) goto L_Unlucky;
- setq SQuest_Easter, gettime(7), max(500, getq2(SQuest_Easter)+100);
+ if (rand2(10000) < 100) goto L_Unlucky;
+ setq SQuest_Easter, gettime(7), min(500, getq2(SQuest_Easter)+100);
npctalk3 l("Strange Coins stock on shops was restored!");
- //EASTER_EVENT=gettime(7);
- // The code below not allow hat to leave user account. A bad idea here so I left commented.
- //getitembound(.@Hat, 1, 1);
getnameditem(.@Hat, strcharinfo(0));
mesn;
mesq l("Here you go! Happy easter! Bhop bhop!");
@@ -80,7 +77,6 @@ L_Unlucky:
mes l("But in accordance to an old %s, you were unlucky.", b(l("Community Decision")));
mes l("This means ##BAll items were lost##b, and you need to collect EVERYTHING, again, to get the hat.");
mes l("But, hm hm hm! I have a %s for you! It won't have what you wanted, but maybe you're lucky, after all?", getitemlink(GoldenGift));
- //mes l("But hey, it is Easter and the poll is still open, so here are 15 @@ as a consolation prize.", getitemlink(StrangeCoin));
mes l("Better luck next time!\"");
close;