summaryrefslogtreecommitdiff
path: root/npc/functions/petsales.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-17 18:13:29 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-17 18:13:29 -0300
commitecbfca6ed76452e9f034370fcb1f0a3a7212132e (patch)
treec1ede307908812399fe46daaeed3c6247e246310 /npc/functions/petsales.txt
parentd76220d21056da90f8eceb275552999f5fb13b6b (diff)
downloadserverdata-ecbfca6ed76452e9f034370fcb1f0a3a7212132e.tar.gz
serverdata-ecbfca6ed76452e9f034370fcb1f0a3a7212132e.tar.bz2
serverdata-ecbfca6ed76452e9f034370fcb1f0a3a7212132e.tar.xz
serverdata-ecbfca6ed76452e9f034370fcb1f0a3a7212132e.zip
Rewrite Pet Detective even further to make it easier to read
Diffstat (limited to 'npc/functions/petsales.txt')
-rw-r--r--npc/functions/petsales.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/npc/functions/petsales.txt b/npc/functions/petsales.txt
index 8e3715eae..b98634670 100644
--- a/npc/functions/petsales.txt
+++ b/npc/functions/petsales.txt
@@ -33,3 +33,11 @@ function script PDQ_InnerSwitch {
}
return 0;
}
+
+// Returns GHMEMO[GHQ_GetQuestIDByMonsterID(PetName)]
+// Arguments: PetName (eg. Maggot)
+function script PDQ_CheckGHQ {
+ .@mid=GHQ_GetQuestIDByMonsterID(getarg(0));
+ return GHMEMO[.@mid];
+}
+