summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-10 23:35:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-10 23:35:23 +0300
commit293793b7027029efc87c8b657a0c45d26e0840c5 (patch)
treecb41a385a1bd6e3f01704a0ec07549c3d8157c39 /src/map/pc.c
parent48f6d35d2c293a17a863bb540e686b1c780b9005 (diff)
downloadevol-hercules-293793b7027029efc87c8b657a0c45d26e0840c5.tar.gz
evol-hercules-293793b7027029efc87c8b657a0c45d26e0840c5.tar.bz2
evol-hercules-293793b7027029efc87c8b657a0c45d26e0840c5.tar.xz
evol-hercules-293793b7027029efc87c8b657a0c45d26e0840c5.zip
map: add support for own job names.
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;
+}