summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
author(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-01 02:14:43 +0000
committer(no author) <(no author)@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-01 02:14:43 +0000
commitdaf78c92543e34b9a2db242fab207f4ea0c0f7d1 (patch)
tree9253fb1c0d66d51e72762a80a1835771235663a3 /src/map/atcommand.c
parentc4e075762fce45aa1c4f41d8e65262bb0235c828 (diff)
downloadhercules-daf78c92543e34b9a2db242fab207f4ea0c0f7d1.tar.gz
hercules-daf78c92543e34b9a2db242fab207f4ea0c0f7d1.tar.bz2
hercules-daf78c92543e34b9a2db242fab207f4ea0c0f7d1.tar.xz
hercules-daf78c92543e34b9a2db242fab207f4ea0c0f7d1.zip
Edit for Upa
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1016 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index a91fe061b..4e6d5c456 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -210,6 +210,7 @@ ACMD_FUNC(gmotd); // Added by MC Cameri, created by davidsiaw
ACMD_FUNC(misceffect); // by MC Cameri
ACMD_FUNC(mobsearch);
ACMD_FUNC(cleanmap);
+ACMD_FUNC(autoloot); // by Upa-Kun
#ifndef TXT_ONLY
ACMD_FUNC(checkmail); // [Valaris]
@@ -526,6 +527,7 @@ static AtCommandInfo atcommand_info[] = {
{ AtCommand_UndisguiseAll, "@undisguiseall", 99, atcommand_undisguiseall },
{ AtCommand_DisguiseAll, "@disguiseall", 99, atcommand_disguiseall },
{ AtCommand_ChangeLook, "@changelook", 99, atcommand_changelook },
+ { AtCommand_AutoLoot, "@autoloot", 10, atcommand_autoloot }, // Upa-Kun
// add new commands before this line
{ AtCommand_Unknown, NULL, 1, NULL }
@@ -7535,6 +7537,31 @@ atcommand_changelook(const int fd, struct map_session_data* sd,
}
/*==========================================
+ *Turns on/off AutoLoot for a specific player
+ *------------------------------------------
+ *by Upa-Kun
+ */
+int
+atcommand_autoloot(
+ const int fd, struct map_session_data* sd,
+ const char* command, const char* message)
+{
+ nullpo_retr(-1, sd);
+ if (sd->autoloot)
+ {
+ sd->autoloot = 0;
+ clif_displaymessage(fd, "Autoloot is now off.");
+ }
+ else
+ {
+ sd->autoloot = 1;
+ clif_displaymessage(fd, "Autoloot is now on.");
+ }
+ return 0;
+}
+
+
+/*==========================================
* It is made to rain.
*------------------------------------------
*/