diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-06-25 07:02:40 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-06-25 07:02:40 -0300 |
commit | a52528b62fa6bff578da06fd731dbbdfd422dab0 (patch) | |
tree | b4fd8061a99ada4f16bd8b70cc4507287f6c68c7 /src/emap/script_buildins.c | |
parent | 1e26226415177653e97e4ef492ed95b8550aa289 (diff) | |
download | evol-hercules-a52528b62fa6bff578da06fd731dbbdfd422dab0.tar.gz evol-hercules-a52528b62fa6bff578da06fd731dbbdfd422dab0.tar.bz2 evol-hercules-a52528b62fa6bff578da06fd731dbbdfd422dab0.tar.xz evol-hercules-a52528b62fa6bff578da06fd731dbbdfd422dab0.zip |
getskillname() - strictly required
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r-- | src/emap/script_buildins.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 314d01a..b76ba6a 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -26,9 +26,10 @@ #include "map/mob.h" #include "map/npc.h" #include "map/pc.h" +#include "map/quest.h" #include "map/refine.h" #include "map/script.h" -#include "map/quest.h" +#include "map/skill.h" #include "map/map.h" #include "emap/clif.h" @@ -3280,6 +3281,16 @@ BUILDIN(resetrng) return true; } +/*========================================== + * Get skill name + *------------------------------------------*/ +BUILDIN(getskillname) +{ + int skill_id = script_getnum(st, 2); + script_pushstr(st, skill->get_name(skill_id)); + return true; +} + ////////////////////////////////////////////////////////// /* switch (bl->type) { |