Atheia Posted July 6, 2015 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 19 Reputation: 0 Joined: 01/26/15 Last Seen: March 15, 2017 Share 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 Link to comment Share on other sites More sharing options...
Stolao Posted July 6, 2015 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share 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 Link to comment Share on other sites More sharing options...
Atheia Posted July 7, 2015 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 19 Reputation: 0 Joined: 01/26/15 Last Seen: March 15, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Elsa Mist Posted July 7, 2015 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 387 Reputation: 60 Joined: 10/08/13 Last Seen: July 14, 2022 Share Posted July 7, 2015 Did u mean u want to mod the source? I think better using like Stolao said in post#2 Quote Link to comment Share on other sites More sharing options...
Atheia Posted July 8, 2015 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 19 Reputation: 0 Joined: 01/26/15 Last Seen: March 15, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.