From 60ca1430f6546dc596d41922501a56ac4e4961c1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 29 Aug 2018 11:22:28 -0300 Subject: Finish Celestia Tea Quest. You can heal full MP every 3 minutes or get 1~3 Tea every 2 hours. --- npc/012-7/celestia.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'npc/012-7/celestia.txt') diff --git a/npc/012-7/celestia.txt b/npc/012-7/celestia.txt index 9d96b4a31..91bdf43f8 100644 --- a/npc/012-7/celestia.txt +++ b/npc/012-7/celestia.txt @@ -169,7 +169,7 @@ L_TeaCheck: getexp rand(13500, 14500), 0; // level exp cap: 15,775 getitem CelestiaTea, 3; - setq HurnscaldQuest_TeaParty, 2; + setq HurnscaldQuest_TeaParty, 2, gettimetick(2); mes ""; mesn; @@ -188,6 +188,7 @@ L_Lying: // begin: Gumi Script L_TeaParty: + .@q2=getq2(HurnscaldQuest_TeaParty); mes ""; mesn; mesq l("Wonderful, I am happy to have you over. Lets get things started with some puerh tea."); @@ -202,10 +203,9 @@ L_TeaParty: l("(Drink the tea, hoping for the best)"), L_DrinkTea; L_DrinkTea: - // This is easily exploitable on purpose: It's mostly to protect against flood. - if (@tmp_teatime < gettimetick(2)) { - percentheal 0, 15; - @tmp_teatime=gettimetick(2)+140; + if (.@q2 < gettimetick(2)) { + percentheal 0, 100; + setq2 HurnscaldQuest_TeaParty, gettimetick(2)+180; } mesc l("To your pleasant surprise the tea is actually quite good."); next; @@ -219,6 +219,10 @@ L_QuestionTea: mes l("##a(it would be way too messy anyway)##0"); next; mesc l("Celestia then picks up the cup of tea and drinks it in front of you to demonstrate that it is not only harmless but also quite delectable."); + if (.@q2 < gettimetick(2)) { + getitem CelestiaTea, rand(1,3); + setq2 HurnscaldQuest_TeaParty, gettimetick(2)+(60*60*2); + } close; // end: Gumi Script -- cgit v1.2.3-70-g09d2