diff options
author | shennetsind <notind@gmail.com> | 2013-05-23 16:37:57 -0700 |
---|---|---|
committer | shennetsind <notind@gmail.com> | 2013-05-23 16:37:57 -0700 |
commit | ada0f138f3c9d1f3adac638924ac1275bff7522b (patch) | |
tree | e89d9ce3c75be57a63a208ab8471e23be3eb37f3 /src | |
parent | b0a65ecfe65415414b24c24a41e1a5199d0ed96b (diff) | |
parent | 97296dc5dc848ab6aec12de1d2e9bb32dc5dc7d4 (diff) | |
download | hercules-ada0f138f3c9d1f3adac638924ac1275bff7522b.tar.gz hercules-ada0f138f3c9d1f3adac638924ac1275bff7522b.tar.bz2 hercules-ada0f138f3c9d1f3adac638924ac1275bff7522b.tar.xz hercules-ada0f138f3c9d1f3adac638924ac1275bff7522b.zip |
Merge pull request #28 from jaBote/master
"little" script_commands.txt revision
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index 41f8e7472..9a123705b 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -8417,6 +8417,7 @@ BUILDIN(monster) const char* event = ""; unsigned int size = SZ_SMALL; unsigned int ai = AI_NONE; + int mob_id; struct map_session_data* sd; int16 m; @@ -8470,7 +8471,8 @@ BUILDIN(monster) } } - mob_once_spawn(sd, m, x, y, str, class_, amount, event, size, ai); + mob_id = mob_once_spawn(sd, m, x, y, str, class_, amount, event, size, ai); + script_pushint(st, mob_id); return true; } /*========================================== @@ -8524,6 +8526,7 @@ BUILDIN(areamonster) const char* event = ""; unsigned int size = SZ_SMALL; unsigned int ai = AI_NONE; + int mob_id; struct map_session_data* sd; int16 m; @@ -8571,7 +8574,9 @@ BUILDIN(areamonster) } } - mob_once_spawn_area(sd, m, x0, y0, x1, y1, str, class_, amount, event, size, ai); + mob_id = mob_once_spawn_area(sd, m, x0, y0, x1, y1, str, class_, amount, event, size, ai); + script_pushint(st, mob_id); + return true; } /*========================================== |