From ecbfca6ed76452e9f034370fcb1f0a3a7212132e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 17 Jan 2020 18:13:29 -0300 Subject: Rewrite Pet Detective even further to make it easier to read --- npc/functions/petsales.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'npc/functions/petsales.txt') 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]; +} + -- cgit v1.2.3-60-g2f50