Jump to content

Recommended Posts

Posted (edited)

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
Posted

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

Posted

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

Posted (edited)

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
  • 1 month later...
Posted (edited)

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
  • 3 weeks later...
Posted

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.

  • 1 month later...
Posted
[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)
  • 3 weeks later...
Posted (edited)

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
Posted

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

Posted

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

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...