CursorX Posted January 17, 2014 Posted January 17, 2014 hi rebel.. update for this source? seems is not working anymore while compiling in latest rA Quote
dungpt8782 Posted April 1, 2014 Posted April 1, 2014 How to make @afk can auto-login after restart server like @autotrade? Quote
BFPkiller Posted May 25, 2014 Posted May 25, 2014 Again !!atcommand.c: In function 'atcommand_basecommands':atcommand.c:9701: error: 'atcommand_reloadmsgconf' undeclared (first use in this function)atcommand.c:9701: error: (Each undeclared identifier is reported only onceatcommand.c:9701: error: for each function it appears in.)make[1]: Leaving directory `/home/trincli0267/trunk/src/map'make[1]: *** [obj_sql/atcommand.o] Error 1make: *** [map] Error 2 How to fix this ?? latest Rev. thnx Quote
Helly Posted June 12, 2014 Posted June 12, 2014 Again !! atcommand.c: In function 'atcommand_basecommands': atcommand.c:9701: error: 'atcommand_reloadmsgconf' undeclared (first use in this function) atcommand.c:9701: error: (Each undeclared identifier is reported only once atcommand.c:9701: error: for each function it appears in.) make[1]: Leaving directory `/home/trincli0267/trunk/src/map' make[1]: *** [obj_sql/atcommand.o] Error 1 make: *** [map] Error 2 How to fix this ?? latest Rev. thnx yeah have error Quote
Kariton Revolution Posted June 12, 2014 Posted June 12, 2014 im using rathena 17704 it is compatible? Quote
Elsa Mist Posted August 4, 2014 Posted August 4, 2014 (edited) this post dont have any support. Im using svn: r 17704. yes it not compatible with my SVN. all u need is try and error. i am beginner on scripting and src mod. just try and error and fix the error. the console will give u the error. the error will give u the detail where the problem. its not hard thought. Edited August 4, 2014 by Happy Mikura Quote
Lelouch vi Britannia Posted December 3, 2014 Posted December 3, 2014 (edited) Is it possible to change this to EQI_COSTUME_HEAD_TOP instead of LOOK_HEAD_TOP? Nevermind forget what i just said Edited December 4, 2014 by Lelouch vi Britannia Quote
Elsa Mist Posted November 25, 2015 Posted November 25, 2015 Try this, modified with remove changelook and afk timeout. atcommand.c #include "../custom/atcommand.inc" +/*========================================== +* @afk +*------------------------------------------*/ +ACMD_FUNC(afk) { + + nullpo_retr(-1, sd); + + if(sd->bl.m == map_mapname2mapid("prontera")) { + clif_displaymessage(fd, "@afk is not allowed on this map."); + return 0; + } + + if( pc_isdead(sd) ) { + clif_displaymessage(fd, "Cannot @afk if you are dead."); + return -1; + } + + if( map[sd->bl.m].flag.autotrade == battle_config.autotrade_mapflag ) + { + + if(map[sd->bl.m].flag.pvp || map[sd->bl.m].flag.gvg){ + clif_displaymessage(fd, "You may not use the @afk maps PVP or GVG."); + return -1;} + + sd->state.autotrade = 1; + sd->state.monster_ignore = 1; + pc_setsit(sd); + skill_sit(sd,1); + clif_sitting(&sd->bl); + clif_specialeffect(&sd->bl, 234,AREA); + clif_authfail_fd(fd, 15); + } else + clif_displaymessage(fd, "@afk is not allowed on this map."); + return 0; +} + ACMD_DEF(channel), ACMD_DEF(fontcolor), ACMD_DEF(langtype), + ACMD_DEF(afk), #ifdef VIP_ENABLE ACMD_DEF(vip), ACMD_DEF(showrate), Quote
NeoGenesis Posted March 17, 2016 Posted March 17, 2016 (edited) How want to switch hats to name example [AFK] Player Name ? Edited March 17, 2016 by NeoGenesis Quote
Dissidia Posted April 12, 2016 Posted April 12, 2016 set to 12 hours but when the player reach 12hours. they not disconnect from the server and still AFK.. Quote
Dejavu Posted June 11, 2016 Posted June 11, 2016 how to apply patch? please anyone here willing to give me step by step guide? thank you! <3 Quote
Eyhra Posted June 23, 2017 Posted June 23, 2017 atcommand.c: In function 'ACMD': atcommand.c:11702: error: 'src' undeclared (first use in this function) atcommand.c:11702: error: (Each undeclared identifier is reported only once atcommand.c:11702: error: for each function it appears in.) atcommand.c:11706: error: 'sd' undeclared (first use in this function) atcommand.c:11708: error: 'pc' undeclared (first use in this function) atcommand.c:11710: error: 'clif' undeclared (first use in this function) atcommand.c:11715: error: 'message' undeclared (first use in this function) atcommand.c:11717:37: error: macro "msg_txt" requires 2 arguments, but only 1 given atcommand.c:11717: error: 'msg_txt' undeclared (first use in this function) atcommand.c:11718: error: 'fd' undeclared (first use in this function) atcommand.c:11725: error: 'skill' undeclared (first use in this function) atcommand.c:11730:37: error: macro "msg_txt" requires 2 arguments, but only 1 given atcommand.c: In function 'atcommand_basecommands': atcommand.c:12098: error: 'atcommand_afk' undeclared (first use in this function) make[1]: *** [obj/atcommand.o] Error 1 make[1]: Leaving directory `/root/wolf/src/map' make: *** [map] Error 2 Quote
ropowernet Posted February 7, 2018 Posted February 7, 2018 (edited) A just a little mod for this @afk command, a small switch to enable the autokick or leave your players online with afk mode. 1.1 Added diff file. battle.h int afk_kick; battle.c { "afk_kick", &battle_config.afk_kick, 0, 0, 1, }, atcommand.c if( battle_config.afk_kick == 1) { if( battle_config.afk_timeout ) { int timeout = atoi(message); status_change_start(NULL, &sd->bl, SC_AUTOTRADE, 10000,0,0,0,0, ((timeout > 0) ? min(timeout,battle_config.afk_timeout) : battle_config.afk_timeout)*60000,0); } } misc.conf // Set this to kick the char on @afk command or leave the char connected, 1 = yes kick afk_kick: 1 afk_v1.3RoPower.diff Edited February 7, 2018 by ropowernet Quote
Tanlor Posted November 16, 2018 Posted November 16, 2018 How to make it now with C++? Cause that's .cpp now, not .c and I need it so much Quote
hanzobr Posted March 1, 2020 Posted March 1, 2020 Any news? The last github version not working!! Please help! Quote
skymia Posted May 31, 2020 Posted May 31, 2020 Can anyone update for working @afk script bcoz the old script wont work anymore Quote
Takerio Posted May 31, 2020 Posted May 31, 2020 3 hours ago, skymia said: Can anyone update for working @afk script bcoz the old script wont work anymore - script AFK_1 -1,{ OnInit: bindatcmd("afk", strnpcinfo(3) +"::OnAFK"); end; OnAFK: if (@AFK) { set @AFK, 0; changelook 4,headupper; dispbottom "AFK mode is OFF."; end; } else { set @AFK, 1; headupper=getlook(4); changelook 4,471; dispbottom "AFK mode is ON."; end; } } Quote
skymia Posted June 1, 2020 Posted June 1, 2020 13 hours ago, Takerio said: - script AFK_1 -1,{ OnInit: bindatcmd("afk", strnpcinfo(3) +"::OnAFK"); end; OnAFK: if (@AFK) { set @AFK, 0; changelook 4,headupper; dispbottom "AFK mode is OFF."; end; } else { set @AFK, 1; headupper=getlook(4); changelook 4,471; dispbottom "AFK mode is ON."; end; } } is this script have afk hat? if yes how to remove it thanks Quote
Takerio Posted June 1, 2020 Posted June 1, 2020 6 hours ago, skymia said: is this script have afk hat? if yes how to remove it thanks @afk gives you @afk removes it Quote
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.