From b8c74de0e41c4181779e16e4e4bd843f053b2ebe Mon Sep 17 00:00:00 2001 From: gumi Date: Tue, 9 Jan 2018 15:08:32 -0500 Subject: make yerrnk offer to make AntlerHat --- world/map/npc/033-1/yerrnk.txt | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'world/map/npc') diff --git a/world/map/npc/033-1/yerrnk.txt b/world/map/npc/033-1/yerrnk.txt index f64fccc8..16ada95b 100644 --- a/world/map/npc/033-1/yerrnk.txt +++ b/world/map/npc/033-1/yerrnk.txt @@ -4,7 +4,7 @@ set @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; @@ -160,6 +160,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.\""; @@ -168,6 +169,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.\""; + set @state, 10; + callsub S_Update_Mask; + delitem "Antlers", 1; + if (Zeny < 5000000) goto L_Close; + set Zeny, Zeny - 5000000; + getitem "AntlerHat", 1; + goto L_Close; + L_Close: set @state, 0; set @yeti_level, 0; -- cgit v1.2.3-60-g2f50