summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-23 02:33:29 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-23 02:33:29 +0000
commit7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133 (patch)
treef7902360af44bb52e484ce34a27a567ecc64c4e5 /src/map/atcommand.c
parent726dfead1497c0c01c9725ab0a83d1b339226498 (diff)
downloadhercules-7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133.tar.gz
hercules-7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133.tar.bz2
hercules-7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133.tar.xz
hercules-7788fa0b9a7615cfd69f2b8e0a8dc148e3ca2133.zip
add spawn
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@741 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index ea457ed47..e2ed33181 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -226,6 +226,7 @@ ACMD_FUNC(divorce); // by MouseJstr
ACMD_FUNC(rings); // by MouseJstr
ACMD_FUNC(grind); // by MouseJstr
+ACMD_FUNC(grind2); // by MouseJstr
ACMD_FUNC(jumptoid); // by Dino9021
ACMD_FUNC(jumptoid2); // by Dino9021
@@ -482,7 +483,8 @@ static AtCommandInfo atcommand_info[] = {
{ AtCommand_Marry, "@marry", 40, atcommand_marry }, // [MouseJstr]
{ AtCommand_Divorce, "@divorce", 40, atcommand_divorce }, // [MouseJstr]
{ AtCommand_Rings, "@rings", 40, atcommand_rings }, // [MouseJstr]
- { AtCommand_Grind, "@grind", 40, atcommand_grind }, // [MouseJstr]
+ { AtCommand_Grind, "@grind", 99, atcommand_grind }, // [MouseJstr]
+ { AtCommand_Grind2, "@grind2", 99, atcommand_grind2 }, // [MouseJstr]
{ AtCommand_JumpToId, "@jumptoid", 20, atcommand_jumptoid }, // [Dino9021]
{ AtCommand_JumpToId, "@warptoid", 20, atcommand_jumptoid }, // [Dino9021]
@@ -7317,6 +7319,26 @@ atcommand_grind(const int fd, struct map_session_data* sd,
}
/*==========================================
+ * @grind2 by [MouseJstr]
+ *------------------------------------------
+ */
+int
+atcommand_grind2(const int fd, struct map_session_data* sd,
+ const char* command, const char* message)
+{
+ int i, x, y, id;
+
+ for (i = 1000; i <2000; i++) {
+ x = sd->bl.x + (rand() % 10 - 5);
+ y = sd->bl.y + (rand() % 10 - 5);
+ id = mob_once_spawn(sd, "this", x, y, "--ja--", i, 1, "");
+ }
+
+ return 0;
+}
+
+
+/*==========================================
* It is made to rain.
*------------------------------------------
*/