From 356d9693d69c43f2a66f7e60aa10483803b50951 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 11 Apr 2021 15:11:22 -0300 Subject: Add several changes from 2018 which had been excluded by accident =/ --- npc/033-1/yerrnk.txt | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'npc/033-1/yerrnk.txt') diff --git a/npc/033-1/yerrnk.txt b/npc/033-1/yerrnk.txt index 0e83a759..a4f6f5e2 100644 --- a/npc/033-1/yerrnk.txt +++ b/npc/033-1/yerrnk.txt @@ -3,7 +3,7 @@ @yeti_level = 70; - if (@state == 9) goto L_Done; + if (@state >= 9) goto L_Done; if (@state == 8) goto L_Yeti_Success; if (@state == 7) goto L_Hunt_Yeti; if (@state == 6) goto L_Warrior; @@ -159,6 +159,7 @@ L_Yeti_Success: goto L_close; L_Done: + if (countitem("Antlers") > 0 && @state < 10) goto L_AntlerHat; mes "Yerrnk smiles at you."; mes "[Yerrnk]"; mes "\"Welcome back, great warrior.\""; @@ -167,6 +168,30 @@ L_Done: "Can you explain the raging ability to me?",L_Skill, "(Leave)",L_close; +L_AntlerHat: + mes "Yerrnk grins."; + next; + mes "[Yerrnk]"; + mes "\"Welcome back, great warrior.\""; + next; + mes "\"I could turn your " + getitemlink("Antlers") + " into a " + getitemlink("AntlerHat") + " for the modest price of 5,000,000 GP.\""; + if (Zeny >= 5000000) + menu + "Please do!", L_AntlerHat_Proceed; + menu + "Sorry, I'm broke", L_close; + +L_AntlerHat_Proceed: + mes "[Yerrnk]"; + mes "\"There you go.\""; + @state = 10; + callsub S_Update_Mask; + delitem "Antlers", 1; + if (Zeny < 5000000) goto L_close; + Zeny = Zeny - 5000000; + getitem "AntlerHat", 1; + goto L_close; + L_close: @state = 0; @yeti_level = 0; -- cgit v1.2.3-60-g2f50