summaryrefslogtreecommitdiff
path: root/npc/017-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-09-13 14:14:53 -0300
committerJesusaves <cpntb1@ymail.com>2018-09-13 14:14:53 -0300
commite4fb06529d6f26eef45930094607324504d8c836 (patch)
tree297fd005eb37613ead9ddedad7ae4ebacd9bf369 /npc/017-1
parentaceef3c0250ec65ca4d616500a8b202ca7a573dc (diff)
downloadserverdata-e4fb06529d6f26eef45930094607324504d8c836.tar.gz
serverdata-e4fb06529d6f26eef45930094607324504d8c836.tar.bz2
serverdata-e4fb06529d6f26eef45930094607324504d8c836.tar.xz
serverdata-e4fb06529d6f26eef45930094607324504d8c836.zip
This should simplify pet_detective logic
Diffstat (limited to 'npc/017-1')
-rw-r--r--npc/017-1/pet_detective.txt17
1 files changed, 2 insertions, 15 deletions
diff --git a/npc/017-1/pet_detective.txt b/npc/017-1/pet_detective.txt
index 2eb1d47e9..1a7c69e5b 100644
--- a/npc/017-1/pet_detective.txt
+++ b/npc/017-1/pet_detective.txt
@@ -49,21 +49,8 @@ L_Menu:
mes "";
switch (@menu) {
case 1:
- .@price=30**(PETMEMO[GHQ_GetQuestIDByMonsterID(ForestMushroom)]+1);
- mesn;
- mesq l("That'll cost you @@ @@.", .@price, getitemlink(MushroomSpores));
- next;
- if (askyesno() == ASK_YES) {
- if (countitem(MushroomSpores) >= .@price && .stock) {
- delitem MushroomSpores, .@price;
- makepet ForestMushroom;
- getexp .@price*100, 0;
- PETMEMO[GHQ_GetQuestIDByMonsterID(ForestMushroom)]+=1;
- .stock-=1;
- mesn;
- mesq l("There you go!");
- }
- }
+ if (PDQ_InnerSwitch(ForestMushroom, MushroomSpores, 30))
+ .stock-=1;
break;
default:
closedialog;