Jump to content
  • 0

@alootid autoloots multiple items


Atheia

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  01/26/15
  • Last Seen:  

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


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  01/26/15
  • Last Seen:  

@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 by Emistry
codebox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  387
  • Reputation:   60
  • Joined:  10/08/13
  • Last Seen:  

Did u mean u want to mod the source?

 

I think better using like Stolao said in post#2

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  01/26/15
  • Last Seen:  

 

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 by Emistry
codebox
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...