diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-19 11:11:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-19 11:11:46 -0300 |
commit | 4d2ea00dd3060177667a246cc5e6ba02b67960b9 (patch) | |
tree | 64813105d796a8e616eb89fcb4280fac4cdd45b0 /npc/012-4 | |
parent | c4c82c1903fe6537ab86f36dfe7c5044c5072229 (diff) | |
download | serverdata-4d2ea00dd3060177667a246cc5e6ba02b67960b9.tar.gz serverdata-4d2ea00dd3060177667a246cc5e6ba02b67960b9.tar.bz2 serverdata-4d2ea00dd3060177667a246cc5e6ba02b67960b9.tar.xz serverdata-4d2ea00dd3060177667a246cc5e6ba02b67960b9.zip |
Wyara now sells Piberries Infusions, if Arkim released that knowledge.
Diffstat (limited to 'npc/012-4')
-rw-r--r-- | npc/012-4/wyara.txt | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/npc/012-4/wyara.txt b/npc/012-4/wyara.txt index c64df4e6d..24a477c86 100644 --- a/npc/012-4/wyara.txt +++ b/npc/012-4/wyara.txt @@ -19,12 +19,16 @@ L_Menu: select l("Can you reset my stats please?"), + rif($ARKIM_ST >= 1200,l("I want Piberries Infusion!")), lg("You are weird, I have to go sorry."); + mes ""; switch (@menu) { case 1: goto L_ResetStats; case 2: + goto L_Piberries; + case 3: goto L_Quit; } @@ -47,8 +51,7 @@ L_ConfirmReset: rif(Zeny == 0, l("Oh no, I don't have any money on me right now.")), l("I have to go, sorry."); - if (@menu > 1) - { + if (@menu > 1) { goto L_Quit; } @@ -61,8 +64,7 @@ L_ConfirmReset: .@wasSP = StatusPoint; resetstatus; - if (StatusPoint == .@wasSP) - { + if (StatusPoint == .@wasSP) { speech S_LAST_NEXT, l("It seems that you have no status points to reset!"), l("But the money you brought was really awesome you know."), @@ -82,9 +84,27 @@ L_ConfirmReset: } -L_Quit: +L_Piberries: + mesn; + mesq l("For (another) one @@, I'll need 4 @@ and 50 GP.", getitemlink(PiberriesInfusion), getitemlink(Piberries)); + next; + select + rif(Zeny >= 50 && countitem(Piberries) >= 4, l("Do it!"), + l("Not now, sorry."); + if (@menu == 2) + goto L_Quit; + mes ""; + inventoryplace PiberriesInfusion, 1; + + Zeny=Zeny-50; + delitem Piberries, 4; + getitem PiberriesInfusion, 1; + goto L_Piberries; + +L_Quit: goodbye; + close; OnInit: .@npcId = getnpcid(0, .name$); |