diff options
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r-- | src/emap/script_buildins.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 97f6a29..0f56ee4 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -2990,6 +2990,20 @@ BUILDIN(homstatus) /*========================================== + * Returns homunculus GID + *------------------------------------------*/ +BUILDIN(gethomunid) +{ + struct map_session_data *sd = script->rid2sd(st); + if (sd == NULL || sd->hd == NULL) + return true; + + script_pushint(st,sd->hd->bl.id); + return true; +} + + +/*========================================== * return the updated stats of sd (use bonus constants) * Supported values: bStr~bLuk, bMaxHP, bMaxSP, bDef, bMdef, bAtk *------------------------------------------*/ |