From 74b6c827062c839987050d226be838f9943e278f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 16 Apr 2019 23:27:32 -0300 Subject: Rewrite @toevent + hotfixes --- npc/001-4/lilica.txt | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'npc/001-4/lilica.txt') diff --git a/npc/001-4/lilica.txt b/npc/001-4/lilica.txt index 440cba68a..6e5cc1457 100644 --- a/npc/001-4/lilica.txt +++ b/npc/001-4/lilica.txt @@ -44,22 +44,22 @@ L_Leader: close; L_Quest: - setarray .@Seasonal, EggshellHat, EggshellHat, GreenEggshellHat, OrangeEggshellHat, DarkEggshellHat, EggshellHat; + setarray .@Seasonal, EggshellHat, EggshellHat, GreenEggshellHat, OrangeEggshellHat, EggshellHat, EggshellHat; .@Hat=.@Seasonal[gettime(7)%6]; // Magically choose the hat from the array mesn; mesq l("Good choice! This year we're having a @@!", getitemlink(.@Hat)); next; mesn; - mesq l("As usual, you can get only one hat yearly, for the symbolic amount of 30 @@ and 10 @@!", getitemlink(GoldenEasteregg), getitemlink(SilverEasteregg)); + mesq l("As usual, you can get only one hat yearly, for the symbolic amount of 40 @@ and 10 @@!", getitemlink(GoldenEasteregg), getitemlink(SilverEasteregg)); next; menu l("Maybe later."), -, - rif(countitem(GoldenEasteregg) >= 30 && countitem(SilverEasteregg) >= 10, l("Deal.")), L_QuestDone; + rif(countitem(GoldenEasteregg) >= 40 && countitem(SilverEasteregg) >= 10, l("Deal.")), L_QuestDone; close; L_QuestDone: inventoryplace .@Hat, 1; - delitem GoldenEasteregg, 30; + delitem GoldenEasteregg, 40; delitem SilverEasteregg, 10; if (rand(0, 10000) < 1000) goto L_Unlucky; EASTER_EVENT=gettime(7); @@ -81,6 +81,7 @@ L_Unlucky: close; OnClock0100: +OnClock1300: if ($EVENT$ == "Easter") .@nb = query_sql("SELECT c.name, i.amount FROM `inventory` AS i, `char` AS c WHERE i.nameid=834 AND i.char_id=c.char_id ORDER BY i.amount DESC LIMIT 10", $@easter_name$, $@easter_value); end; @@ -98,9 +99,9 @@ OnInit: OnInit: tradertype(NST_CUSTOM); + sellitem ChocolateMouboo,100; + sellitem StrangeCoin,50; sellitem GoldenEasteregg,25; - sellitem StrangeCoin,20; - //sellitem ChocolateMouboo,6; sellitem EasterEgg,5; end; @@ -123,20 +124,18 @@ OnInit: tradertype(NST_CUSTOM); setarray .@Seasonal, EggshellHat, EggshellHat, GreenEggshellHat, OrangeEggshellHat, EggshellHat, EggshellHat; .Hat=.@Seasonal[(gettime(7)+1)%6]; // Magically choose the hat from the array - .PrevHat=.@Seasonal[(gettime(7))%6]; // Magically choose the hat from the array - .NextHat=.@Seasonal[(gettime(7)+2)%6]; // Magically choose the hat from the array + .PrevHat=.@Seasonal[(gettime(7)-1)%6]; // Magically choose the hat from the array // Seasonal item sellitem .Hat,200; - sellitem .NextHat,1000; - sellitem .PrevHat,1000; + sellitem .PrevHat,500; // Rare and not-so-rare Items sellitem MercBoxA,500; + sellitem Boots,450; sellitem BronzeGift,100; sellitem BunnyEars,50; - //sellitem Boots,20; - sellitem StrangeCoin,2; + sellitem StrangeCoin,10; sellitem SilverEasteregg,1; end; -- cgit v1.2.3-60-g2f50