Jump to content
  • 0

Request - @gstorage and @autovend


wisekreker

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   1
  • Joined:  01/01/12
  • Last Seen:  

Can anyone point me to where I can get or read about this command please.. or if they don't exist it will really be lovely if you can help to have @autovend and @gstorage for my server. Take care all.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   0
  • Joined:  01/21/12
  • Last Seen:  

Auto Vend:


/*==========================================
* @autotrade by durf [Lupus] [Paradox924X]
* Turns on/off Autotrade for a specific player
*------------------------------------------*/
ACMD_FUNC(autotrade)
{
nullpo_retr(-1, sd);

if( map[sd->bl.m].flag.autotrade != battle_config.autotrade_mapflag ) {
clif_displaymessage(fd, "Autotrade is not allowed on this map.");
return -1;
}

if( pc_isdead(sd) ) {
clif_displaymessage(fd, "Cannot Autotrade if you are dead.");
return -1;
}

if( !sd->state.vending && !sd->state.buyingstore ) { //check if player is vending or buying
clif_displaymessage(fd, msg_txt(549)); // "You should have a shop open to use @autotrade."
return -1;
}

sd->state.autotrade = 1;
if( battle_config.at_timeout )
{
int timeout = atoi(message);
status_change_start(&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, 0);
}
clif_authfail_fd(fd, 15);

return 0;
}

{ "autotrade",         10,10,     atcommand_autotrade },

GStorage


/*==========================================
*
*------------------------------------------*/
ACMD_FUNC(guildstorage)
{
nullpo_retr(-1, sd);

if (!sd->status.guild_id) {
clif_displaymessage(fd, msg_txt(252));
return -1;
}

if (sd->npc_id || sd->state.vending || sd->state.buyingstore || sd->state.trading)
return -1;

if (sd->state.storage_flag == 1) {
clif_displaymessage(fd, msg_txt(250));
return -1;
}

if (sd->state.storage_flag == 2) {
clif_displaymessage(fd, msg_txt(251));
return -1;
}

storage_guild_storageopen(sd);
clif_displaymessage(fd, "Guild storage opened.");
return 0;
}

{ "gstorage",          50,50,     atcommand_guildstorage },

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   1
  • Joined:  01/01/12
  • Last Seen:  

Thank you Brian.

I'm not sure where to put these: :)

{ "autotrade", 10,10, atcommand_autotrade },
{ "gstorage", 50,50, atcommand_guildstorage },

Anyone teach me? ^^ Wiki does not instructions too.

Thank you

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

below this line....

AtCommandInfo atcommand_info[] = {

but you wont be able to use this way in rAthena SVN..because rAthena has changed...

so this only work in eAthena / 3Ceam

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   1
  • Joined:  01/01/12
  • Last Seen:  

below this line....
AtCommandInfo atcommand_info[] = {

but you wont be able to use this way in rAthena SVN..because rAthena has changed... so this only work in eAthena / 3Ceam

Emistry, I should be fine. I am using eAthena still. Thank you.

By the way, how do I make the @autotrade available to players? It only works with a GM account as off the moment.

i tried;

/trunk/conf/atcommand_athena.conf

autotrade: 0,0

gstorage: 0,0

but only @gstorage works for players.

Thank you.

This is resolved. I found the problem. Thanks for all your help.

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...