summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 504d5c6..2bc8d79 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -279,3 +279,15 @@ int epc_unequipitem_post(int retVal, struct map_session_data *sd,
equippost_effect(sd, *nPtr, retVal, false);
return retVal;
}
+
+int epc_check_job_name(const char *name)
+{
+ int val = -1;
+ if (script->get_constant(name, &val))
+ {
+ hookStop();
+ return val;
+ }
+ hookStop();
+ return -1;
+}