diff options
author | gumi <git@gumi.ca> | 2018-01-09 15:08:32 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-01-09 15:08:32 -0500 |
commit | b8c74de0e41c4181779e16e4e4bd843f053b2ebe (patch) | |
tree | 1c58c246d8cc75fc2177184caf23dc90198ab171 | |
parent | 97e51fd48089abf9df269d0788f39e76535afb09 (diff) | |
download | serverdata-b8c74de0e41c4181779e16e4e4bd843f053b2ebe.tar.gz serverdata-b8c74de0e41c4181779e16e4e4bd843f053b2ebe.tar.bz2 serverdata-b8c74de0e41c4181779e16e4e4bd843f053b2ebe.tar.xz serverdata-b8c74de0e41c4181779e16e4e4bd843f053b2ebe.zip |
make yerrnk offer to make AntlerHat
-rw-r--r-- | world/map/npc/033-1/yerrnk.txt | 27 |
1 files changed, 26 insertions, 1 deletions
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; |