wisekreker Posted February 21, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 44 Reputation: 1 Joined: 01/01/12 Last Seen: March 8, 2012 Share Posted February 21, 2012 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. Quote Link to comment Share on other sites More sharing options...
brianj070707 Posted February 21, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 48 Reputation: 0 Joined: 01/21/12 Last Seen: July 27, 2012 Share Posted February 21, 2012 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 }, Quote Link to comment Share on other sites More sharing options...
wisekreker Posted February 22, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 44 Reputation: 1 Joined: 01/01/12 Last Seen: March 8, 2012 Author Share Posted February 22, 2012 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 Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 22, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 17 hours ago Share Posted February 22, 2012 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 Quote Link to comment Share on other sites More sharing options...
wisekreker Posted February 23, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 44 Reputation: 1 Joined: 01/01/12 Last Seen: March 8, 2012 Author Share Posted February 23, 2012 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. Quote Link to comment Share on other sites More sharing options...
Question
wisekreker
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.