Jump to content

@afk with AFK Hat


Rebel

Recommended Posts


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

change the 471 to your AFK hat view id. .....

by default...in latest client / server...471 is the AFK Hat view sprite...

Thank you! It works now.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

i dont want to use hat how can i do that?

Link to comment
Share on other sites


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

remove

clif_changelook(&sd->bl,LOOK_HEAD_TOP,471);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

Make sure you remove the // in the item_db.

//5474,Notice_Board,AFK Hat,5,20,,700,,2,,0,0xFFFFFFFF,7,2,256,,10,0,471,{},{},{}

change to

5474,Notice_Board,AFK Hat,5,20,,700,,2,,0,0xFFFFFFFF,7,2,256,,10,0,471,{},{},{}

Haha. im wrong sorry. /bo

Edited by Rebel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

how to remove pub from @afk? So that players can't use @afk with pub. See the image below

29m2lp1.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

how to remove pub from @afk? So that players can't use @afk with pub. See the image below

29m2lp1.jpg

Download the @afk_mod_v1.1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

is it possible to make a config on this mod like @autotrade the time can be change in misc.conf which is (at_timeout: 10000) is it possible to make a (afk_timeout:100000) so that afk players will be kicked after the set time

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

is it possible to make a config on this mod like @autotrade the time can be change in misc.conf which is (at_timeout: 10000) is it possible to make a (afk_timeout:100000) so that afk players will be kicked after the set time

I updated the patch.. and I added a config just like @autotrade .. just download the new patch.. for now let's wait til someone approve what i uploaded.. /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  138
  • Reputation:   1
  • Joined:  12/27/11
  • Last Seen:  

Just want to ask how can I implement this in my server? I will just insert the code in my atcommand.c?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

thanks for applying my suggestion

Just want to ask how can I implement this in my server? I will just insert the code in my atcommand.c?

yes, then recompile your server

Edited by Thanna
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   4
  • Joined:  12/10/12
  • Last Seen:  

I added this command to my server but it keeps giving me "@afk is not allowed on this map. "

I even deleted this part but still giving me the not allowed map.

if( sd -> bl . m == map_mapname2mapid ( "prontera" )) {
clif_displaymessage ( fd, "@afk is not allowed on this map." );
return 0 ;
}

any idea's why?

EDIT: Nvm. Solved it.

Edited by Nyashuki
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

I need some modification guide. How to change the pm msg to someone afk?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

how to make 8 hours?

afk_timeout: 0

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

how to make 8 hours?

afk_timeout: 0

afk_timeout: 480

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

thanks :)

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  10/08/12
  • Last Seen:  

Two suggestions... heheh

#1 - When u use @afk with a chat, when u login again your chat will be closed. Right? You can edit this to save the chat, if have some chat. It's a valid idea. :D

#2 - I think this isn't possible, but how can i do to show the afk hat without remove the sprite of the currently in use helm?

Anyway, i love this. Great work! :D I'm already using.

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

any update of this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   3
  • Joined:  06/20/12
  • Last Seen:  

[root@lyk-ro Desktop]# patch < @afk_mod_v1.2_rAthena.patch

(Stripping trailing CRs from patch.)

can't find file to patch at input line 5

Perhaps you should have used the -p or --strip option?

The text leading up to this was:

--------------------------

|Index: atcommand.c

|===================================================================

|--- atcommand.c        (revision 16833)

|+++ atcommand.c        (working copy)
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

need update to make this is work on rathena latest version :(

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

when i type @die, and then type @afk, , i cant login back to my char, it display Failed to connect to the server.... but other char works fine.
PLEASE HLEP T_T

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

when i type @die, and then type @afk, , i cant login back to my char, it display Failed to connect to the server.... but other char works fine.

PLEASE HLEP T_T

 

add this

 

 

 
                if( pc_isdead(sd) ) {
                clif_displaymessage(fd, "Cannot @afk if you are dead.");
                return -1;
                }
Edited by Rebel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

when i type @die, and then type @afk, , i cant login back to my char, it display Failed to connect to the server.... but other char works fine.

PLEASE HLEP T_T

 

add this

 

 

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

 

below where? and btw, my player used that command, and now whenever i login his char, it will display failed to connect to the server. how can i fix it?? his item all inside there

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

below

 

 

nullpo_retr(-1, sd);

sorry cant reproduce ur other problem..

Edited by Rebel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

below

 

 

nullpo_retr(-1, sd);

ok thanks.. and also btw. previously my player used that command, and now whenever i login his char, it will display failed to connect to the server. how can i fix it?? his item all inside there

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  112
  • Topics Per Day:  0.03
  • Content Count:  388
  • Reputation:   4
  • Joined:  05/01/12
  • Last Seen:  

hello guys :) im using latest rathena.and i've been compiling..i found like this...can you slove it??(im using manual patch)

 

 

 
>atcommand.obj : error LNK2001: unresolved external symbol _ATCOMMAND_CONF_FILENAME
1>map.obj : error LNK2001: unresolved external symbol _ATCOMMAND_CONF_FILENAME
1>atcommand.obj : error LNK2001: unresolved external symbol _BATTLE_CONF_FILENAME
1>map.obj : error LNK2001: unresolved external symbol _BATTLE_CONF_FILENAME
1>map.obj : error LNK2019: unresolved external symbol _cli_get_options referenced in function _do_init
1>map.obj : error LNK2001: unresolved external symbol _GRF_PATH_FILENAME
1>map.obj : error LNK2001: unresolved external symbol _MSG_CONF_NAME
1>map.obj : error LNK2001: unresolved external symbol _SCRIPT_CONF_NAME
1>map.obj : error LNK2001: unresolved external symbol _MAP_CONF_NAME
1>map.obj : error LNK2001: unresolved external symbol _LOG_CONF_NAME
1>map.obj : error LNK2001: unresolved external symbol _INTER_CONF_NAME
1>map.obj : error LNK2019: unresolved external symbol __msg_config_read referenced in function _map_msg_config_read
1>map.obj : error LNK2019: unresolved external symbol __msg_txt referenced in function _map_msg_txt
1>map.obj : error LNK2019: unresolved external symbol __do_final_msg referenced in function _map_do_final_msg

 

Edited by kangfredy
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
Reply to this topic...

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