diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-26 04:32:50 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-26 04:32:50 +0000 |
commit | 3cbf69c92317d1bd3563db6737527871dc146db7 (patch) | |
tree | 6e27a124ba4619c76e4ac5134f33022697f12f10 | |
parent | 55807da3deb5167dfd2bcbee96c677122f00505c (diff) | |
download | hercules-3cbf69c92317d1bd3563db6737527871dc146db7.tar.gz hercules-3cbf69c92317d1bd3563db6737527871dc146db7.tar.bz2 hercules-3cbf69c92317d1bd3563db6737527871dc146db7.tar.xz hercules-3cbf69c92317d1bd3563db6737527871dc146db7.zip |
* [Added]:
- buildin_unitkill just for kicks.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7338 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 4 | ||||
-rw-r--r-- | src/map/script.c | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index c3e1b4c2c..52fc99590 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,10 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2006/06/26
+ * [Added]:
+ - buildin_unitkill just for kicks. [Lance]
+
2006/06/23
* [Optimized]:
- Setting of variables with defined scope in some frequently executed script
diff --git a/src/map/script.c b/src/map/script.c index 59fb02dc9..02acd4ee5 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -424,6 +424,7 @@ int buildin_setmobdata(struct script_state *st); int buildin_mobassist(struct script_state *st); int buildin_mobattach(struct script_state *st); int buildin_unitwalk(struct script_state *st); +int buildin_unitkill(struct script_state *st); int buildin_unitwarp(struct script_state *st); int buildin_unitattack(struct script_state *st); int buildin_unitstop(struct script_state *st); @@ -764,6 +765,7 @@ struct { {buildin_mobassist,"mobassist","i*"}, {buildin_mobattach,"mobattach","i*"}, {buildin_unitwalk,"unitwalk","i*"}, + {buildin_unitkill,"unitkill","i"}, {buildin_unitwarp,"unitwarp","isii"}, {buildin_unitattack,"unitattack","i*"}, {buildin_unitstop,"unitstop","i"}, @@ -10679,6 +10681,14 @@ int buildin_unitwalk(struct script_state *st){ return 0; } +int buildin_unitkill(struct script_state *st){ + struct block_list *bl = map_id2bl(conv_num(st, & (st->stack->stack_data[st->start+2]))); + if(bl) + status_kill(bl); + + return 0; +} + int buildin_unitwarp(struct script_state *st){ int id,x,y,m = 0; char *map; |