Sfoglia il codice sorgente

@autoloot and @autolootitem can now be used together for more precise looting (no idea why it was blocked...)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13023 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 anni fa
parent
commit
438367ae22
1 ha cambiato i file con 1 aggiunte e 12 eliminazioni
  1. 1 12
      src/map/atcommand.c

+ 1 - 12
src/map/atcommand.c

@@ -6038,14 +6038,9 @@ int atcommand_autoloot(const int fd, struct map_session_data* sd, const char* co
 	}else
 		clif_displaymessage(fd, "Autoloot is now off.");
 
-	if (sd->state.autoloot && sd->state.autolootid) {
-		// Autolootitem should be turned off
-		sd->state.autolootid = 0;
-		clif_displaymessage(fd, "Autolootitem is now off.");
-	}
-
 	return 0;
 }
+
 /*==========================================
  * @autolootitem
  *------------------------------------------*/
@@ -6078,12 +6073,6 @@ int atcommand_autolootitem(const int fd, struct map_session_data* sd, const char
 		item_data->name, item_data->jname, item_data->nameid);
 	clif_displaymessage(fd, atcmd_output);
 
-	if (sd->state.autolootid && sd->state.autoloot) {
-		// Autoloot should be turned off
-		sd->state.autoloot = 0;
-		clif_displaymessage(fd, "Autoloot is now off (cannot be actitaved together).");
-	}
-
 	return 0;
 }