Atheia Posted July 6, 2015 Posted July 6, 2015 Can someone help me regarding @alootid? I want a @alootid command that autoloots multiple itemsExample @alootid 607 608 609 ( 3 Specific Autoloots ) emulator 3ceam. Quote
Stolao Posted July 6, 2015 Posted July 6, 2015 Can someone help me regarding @alootid? I want a @alootid command that autoloots multiple items Example @alootid 607 608 609 ( 3 Specific Autoloots ) emulator 3ceam. open your /doc/atcommands.txt @alootid <+/- item name/ID> @alootid reset Starts or stops autolooting a specified item. Typing "reset" will clear the autoloot item list. By default, 10 items can be autolooted at one time. the emulator already supports that in the latest rev/git Quote
Atheia Posted July 7, 2015 Author Posted July 7, 2015 (edited) @Stolao Here's mine /*========================================== * @alootid *------------------------------------------*/ ACMD_FUNC(autolootitem) { struct item_data *item_data = NULL; if (!message || !*message) { if (sd->state.autolootid) { sd->state.autolootid = 0; clif_displaymessage(fd, "Autolootitem has been turned OFF."); } else clif_displaymessage(fd, "Please, enter item name or it's ID (usage: @alootid <item_name_or_ID>)."); return -1; } if ((item_data = itemdb_exists(atoi(message))) == NULL) item_data = itemdb_searchname(message); if (!item_data) { // No items founds in the DB with Id or Name clif_displaymessage(fd, "Item not found."); return -1; } sd->state.autolootid = item_data->nameid; // Autoloot Activated sprintf(atcmd_output, "Autolooting item: '%s'/'%s' (%d)", item_data->name, item_data->jname, item_data->nameid); clif_displaymessage(fd, atcmd_output); return 0; } Edited July 14, 2015 by Emistry codebox Quote
Elsa Mist Posted July 7, 2015 Posted July 7, 2015 Did u mean u want to mod the source? I think better using like Stolao said in post#2 Quote
Atheia Posted July 8, 2015 Author Posted July 8, 2015 (edited) Can someone help me regarding @alootid? I want a @alootid command that autoloots multiple items Example @alootid 607 608 609 ( 3 Specific Autoloots ) emulator 3ceam. open your /doc/atcommands.txt @alootid <+/- item name/ID> @alootid reset Starts or stops autolooting a specified item. Typing "reset" will clear the autoloot item list. By default, 10 items can be autolooted at one time. the emulator already supports that in the latest rev/git Here's mine @Stolao Here's mine /*========================================== * @alootid *------------------------------------------*/ ACMD_FUNC(autolootitem) { struct item_data *item_data = NULL; if (!message || !*message) { if (sd->state.autolootid) { sd->state.autolootid = 0; clif_displaymessage(fd, "Autolootitem has been turned OFF."); } else clif_displaymessage(fd, "Please, enter item name or it's ID (usage: @alootid <item_name_or_ID>)."); return -1; } if ((item_data = itemdb_exists(atoi(message))) == NULL) item_data = itemdb_searchname(message); if (!item_data) { // No items founds in the DB with Id or Name clif_displaymessage(fd, "Item not found."); return -1; } sd->state.autolootid = item_data->nameid; // Autoloot Activated sprintf(atcmd_output, "Autolooting item: '%s'/'%s' (%d)", item_data->name, item_data->jname, item_data->nameid); clif_displaymessage(fd, atcmd_output); return 0; } Edited July 14, 2015 by Emistry codebox Quote
Question
Atheia
Can someone help me regarding @alootid? I want a @alootid command that autoloots multiple items
Example @alootid 607 608 609 ( 3 Specific Autoloots ) emulator 3ceam.
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.