From 7472e43e00318edc374e033d8d52a11a7c763bec Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 11 Aug 2019 21:57:41 -0300 Subject: Eistein: Double rewards - fix gift order and give Graduation Robe --- npc/003-2/eistein.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'npc/003-2/eistein.txt') diff --git a/npc/003-2/eistein.txt b/npc/003-2/eistein.txt index 2b88aa499..31dd985ab 100644 --- a/npc/003-2/eistein.txt +++ b/npc/003-2/eistein.txt @@ -7,13 +7,18 @@ 003-2,35,34,0 script Eistein NPC_UKAR,{ - // Level, Reward + // Level, Reward{, Reward2} function is_level { if (BaseLevel >= getarg(0)) { getitem getarg(1),1; + if (getarg(2, 0)) + getitem getarg(2),1; setq TulimsharQuest_Eistein, getq(TulimsharQuest_Eistein)+1; - speech S_FIRST_BLANK_LINE | S_LAST_NEXT, - l("Congrats you passed the level cap of @@! Here is a(n) @@, you deserve it.",getarg(0), getitemlink(getarg(1))); + mes ""; + mesn; + mesq l("Congrats you passed the level cap of @@! Here is a(n) @@, you deserve it.",getarg(0), getitemlink(getarg(1))); + if (getarg(2,0)) + mesc l("Item obtained: @@", getitemlink(getarg(2))); } else { speech S_FIRST_BLANK_LINE | S_LAST_NEXT, l("You are level @@/@@. Keep building levels, you need them!", BaseLevel, getarg(0)); @@ -27,11 +32,11 @@ case 0: is_level(25, BronzeGift); break; case 1: - is_level(50, GraduationCap); break; + is_level(50, SilverGift, GraduationCap); break; case 2: - is_level(75, SilverGift); break; + is_level(75, GoldenGift, GraduationRobe); break; case 3: - is_level(100, GoldenGift); break; + is_level(100, PrismGift); break; case 4: is_level(125, PrismGift); break; case 5: -- cgit v1.2.3-60-g2f50