Rebel Posted September 21, 2012 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Share Posted September 21, 2012 (edited) File Name: @afk with AFK Hat File Submitter: Rebel File Submitted: 16 Sep 2012 File Category: Source Modifications Content Author: Axl, Rebel Using @afk with AFK Hat. (Notice Board) I just modified it and put the AFK Hat effect. Changelog: v1.0 - Initial Release - Need to open a chat room to use @afk command and it is disabled to use in prontera v1.1 - No need to create a chat room to use @afk command as suggested by Mysterious (disabled to use in prontera) v1.2 (eA and rA) - Added a config in misc.conf. afk_timeout: 0 (0 is default) Tested with the latest rathena - Revision 17156 v1.3 (rA ONLY) - Working with latest revision 17306 - Now you can't use @afk when you are dead. Click here to download this file afk_v1.3.diff Edited June 3, 2013 by Rebel 3 1 Quote Link to comment Share on other sites More sharing options...
Mystery Posted September 21, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted September 21, 2012 Suggestion: Why be in a Chat room to have @afk activated? Why not just use @afk while sitting on the side of a town then you'll get the AFK hat pop up. Don't need to be a "Chat". Maybe you can have 2 diffs? o_o. Then again, it's not hard to remove the piece of coding to check for chat.. but it's just a suggestion . Quote Link to comment Share on other sites More sharing options...
Cephaler Posted September 29, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 132 Reputation: 2 Joined: 02/02/12 Last Seen: May 25, 2019 Share Posted September 29, 2012 Link broken? Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 18 hours ago Share Posted September 29, 2012 Link broken? did you noticed that there is mirror link in the first post ??? v1.0 - Mirror v1.1 - Mirror Click here to download this file sometime the link work fine...just the author uploading new version...and have to get approve by staff team then only other member can download. 1 Quote Link to comment Share on other sites More sharing options...
Thanna Posted September 29, 2012 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 271 Reputation: 7 Joined: 01/06/12 Last Seen: May 16, 2015 Share Posted September 29, 2012 I'll just suggest if you can make it to have a timer that will kick the AFK player if he's time is out, maybe a 12 hours AFK time just like @autotrade, btw nice src edit Quote Link to comment Share on other sites More sharing options...
Cephaler Posted September 29, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 132 Reputation: 2 Joined: 02/02/12 Last Seen: May 25, 2019 Share Posted September 29, 2012 @ Emistry Probably was the second case, because I clicked all the links before and they weren't working. Thanks for the tips Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 18 hours ago Share Posted September 29, 2012 ookay .. anyway ..both mirror link also work fine for me 1 Quote Link to comment Share on other sites More sharing options...
Cephaler Posted October 1, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 132 Reputation: 2 Joined: 02/02/12 Last Seen: May 25, 2019 Share Posted October 1, 2012 How to enable it, so that it will work in prontera? Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 1, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 18 hours ago Share Posted October 1, 2012 How to enable it, so that it will work in prontera? remove this.. if(sd->bl.m == map_mapname2mapid("prontera")) { clif_displaymessage(fd, "@afk is not allowed on this map."); return 0; } Quote Link to comment Share on other sites More sharing options...
zhaosin Posted October 2, 2012 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 172 Reputation: 0 Joined: 07/07/12 Last Seen: May 22, 2016 Share Posted October 2, 2012 How can i add this command to my server ? Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 2, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 18 hours ago Share Posted October 2, 2012 How can i add this command to my server ? read this Diff#Using_.diff.2F.patch_files_to_patch_your_server or patch manually....open the diff file using textpad / notepad .. see what content to add and what content to remove....and edit each your files accordingly.. Quote Link to comment Share on other sites More sharing options...
piteriko Posted October 3, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 2 Reputation: 0 Joined: 09/07/12 Last Seen: August 31, 2015 Share Posted October 3, 2012 how to add the commands to the groups.conf? im still error at group.conf Quote Link to comment Share on other sites More sharing options...
Rebel Posted October 7, 2012 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share Posted October 7, 2012 how to add the commands to the groups.conf? im still error at group.conf If you are using the command as Group ID: 99 you shouldn't have any error with that.. If you want to add this command in another group just add an entry in your desired group id.. example: id: 0 /* group 0 is the default group for every new account */ name: "Player" level: 0 inherit: ( /*empty list*/ ) commands: { + afk: true } permissions: { /* without this basic permissions regular players could not trade or party */ can_trade: true can_party: true } That's for Group ID: 0 means every normal player can use the command @afk Quote Link to comment Share on other sites More sharing options...
Deimler Posted October 17, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 58 Reputation: 0 Joined: 09/23/12 Last Seen: November 18, 2016 Share Posted October 17, 2012 When using @afk the server logs me out. Reason? Nothing is stated in the map/login/character serve... Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 17, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 18 hours ago Share Posted October 17, 2012 When using @afk the server logs me out. Reason? Nothing is stated in the map/login/character serve... this is how the @AFK work in almost all the server....character is remained in the server just like how your merchant class using autotrade. Quote Link to comment Share on other sites More sharing options...
meezome Posted October 17, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 8 Reputation: 0 Joined: 09/02/12 Last Seen: January 25, 2017 Share Posted October 17, 2012 how to add ? im very noob Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 17, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 18 hours ago Share Posted October 17, 2012 how to add ? im very noob read this.. http://rathena.org/w...tch_your_server http://rathena.org/wiki/Subversion#Using_.diff.2F.patch_files Quote Link to comment Share on other sites More sharing options...
Petey Pablo Posted October 17, 2012 Group: Members Topic Count: 152 Topics Per Day: 0.03 Content Count: 569 Reputation: 11 Joined: 11/24/11 Last Seen: March 7, 2022 Share Posted October 17, 2012 how to work with eA of this @afk hat command? Please release a new version of diff for eA. Thank you Quote Link to comment Share on other sites More sharing options...
Aeia Posted October 20, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 63 Reputation: 1 Joined: 09/18/12 Last Seen: January 4, 2017 Share Posted October 20, 2012 Yes, release it on eAthena. If only we can convert in rAthena. Also, how to ENABLE it on Prontera? Thanks. Quote Link to comment Share on other sites More sharing options...
Rebel Posted October 20, 2012 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share Posted October 20, 2012 its compatible with eAthena.. just remove this line if you want it to use in prontera, if( sd -> bl . m == map_mapname2mapid ( "prontera" )) { clif_displaymessage ( fd, "@afk is not allowed on this map." ); return 0 ; } 1 Quote Link to comment Share on other sites More sharing options...
uDe Posted October 20, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 400 Reputation: 5 Joined: 12/05/11 Last Seen: September 27, 2015 Share Posted October 20, 2012 How to make the AFK 'hat' to middle headgear position? Quote Link to comment Share on other sites More sharing options...
Petey Pablo Posted October 23, 2012 Group: Members Topic Count: 152 Topics Per Day: 0.03 Content Count: 569 Reputation: 11 Joined: 11/24/11 Last Seen: March 7, 2022 Share Posted October 23, 2012 (edited) Problem with the afk hat. Im using eA and Xray Client. See image below /*========================================== * @afk *------------------------------------------*/ ACMD_FUNC(afk) { nullpo_retr(-1, sd); 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_changelook(&sd->bl,LOOK_HEAD_TOP,471); clif_specialeffect(&sd->bl, 234,AREA); 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); } else clif_displaymessage(fd, "@afk is not allowed on this map."); return 0; } Screenshot problem: how do i change hat to this http://ratemyserver....&isearch=Search Thank you! Edited October 23, 2012 by WillSuranol Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 23, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 18 hours ago Share Posted October 23, 2012 @WillSuranol remove this ? clif_changelook(&sd->bl,LOOK_HEAD_TOP,471); change the 471 to your AFK hat view id. ..... by default...in latest client / server...471 is the AFK Hat view sprite... Quote Link to comment Share on other sites More sharing options...
Petey Pablo Posted October 23, 2012 Group: Members Topic Count: 152 Topics Per Day: 0.03 Content Count: 569 Reputation: 11 Joined: 11/24/11 Last Seen: March 7, 2022 Share Posted October 23, 2012 @WillSuranol remove this ? clif_changelook(&sd->bl,LOOK_HEAD_TOP,471); Nothing happens. See the image below Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 23, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 18 hours ago Share Posted October 23, 2012 change the 471 to your AFK hat view id. ..... by default...in latest client / server...471 is the AFK Hat view sprite... Quote Link to comment Share on other sites More sharing options...
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.