diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-08-29 11:22:28 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-08-29 11:22:28 -0300 |
commit | 60ca1430f6546dc596d41922501a56ac4e4961c1 (patch) | |
tree | 4966a5b9fd9937bbb021a2c0578d31193822d31d /npc/012-7 | |
parent | 80e45eed30255e60ce4471a98ccfb4fd8ceb94c7 (diff) | |
download | serverdata-60ca1430f6546dc596d41922501a56ac4e4961c1.tar.gz serverdata-60ca1430f6546dc596d41922501a56ac4e4961c1.tar.bz2 serverdata-60ca1430f6546dc596d41922501a56ac4e4961c1.tar.xz serverdata-60ca1430f6546dc596d41922501a56ac4e4961c1.zip |
Finish Celestia Tea Quest.
You can heal full MP every 3 minutes or get 1~3 Tea every 2 hours.
Diffstat (limited to 'npc/012-7')
-rw-r--r-- | npc/012-7/celestia.txt | 14 |
1 files changed, 9 insertions, 5 deletions
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 |