Jump to content
  • 0
Sign in to follow this  
Bringer

@afk error

Question

i just follow this guide i got error
 
CC atcommand.c
atcommand.c: In function 'atcommand_afk':
atcommand.c:3510: warning: implicit declaration of function 'clif_updatestatus'
atcommand.c:3511: error: 'struct <anonymous>' has no member named 'logout'
atcommand.c:3512: warning: implicit declaration of function 'clif_authfail_fd'
make[1]: Leaving directory `/home/trincli0371/trunk/src/map'
make[1]: *** [obj_sql/atcommand.o] Error 1
make: *** [map_sql] Error 2
 
/*==========================================* @afk by [cr0wmaster]* Features: 1z required to use. Venders are forbidden to use this command.*------------------------------------------*/ACMD(afk){nullpo_retr(-1, sd);if (sd->vender_id)  //check if that player's vending [cr0wmaster]{clif->message(fd, "You can't use this command while you're vending.");}elseif(sd->status.zeny >= 1)   {            sd->status.zeny += -1;           clif_updatestatus(sd, SP_ZENY);           sd->state.logout = 1;clif_authfail_fd(fd, 15);   } else {       clif->message(fd, "You do not have enough money to use this command.");       clif->message(fd, "@afk failed.");           }return true;}

i follow this guide
 

The first part you can add after this: (Line 3591)

 

/*==========================================
*
*------------------------------------------*/
ACMD(reloaditemdb)
{
nullpo_retr(-1, sd);
itemdb_reload();
clif->message(fd, msg_txt(97)); // Item database has been reloaded.

return true;
}

and the second part, search this: (line 9713)

 

ACMD_DEF(costume),

and add this line:

 

    ACMD_DEF(afk),

 

 You need to compile.

Edited by Bringer

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

 

try to use AFK Plugins

i try but [Warning]: HPM:plugin_load: failed to load 'plugins/afk.so', skipping...

 

have u compile ? 

have u put on plugins ? 

have u set the conf/plugins.conf?

have u done all this ?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.