Jump to content
  • 0

Yet another @afk command


Gidz Cross

Question


  • Group:  Members
  • Topic Count:  124
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   83
  • Joined:  04/07/14
  • Last Seen:  

Hello rathena peeps. I already have working @afk on my server. But i forgot to make a diff out of it so its with my custom src already. But my question is how can i make restriction to @recall / @recallall with people who uses my @afk command?

My @afk command will lets go close your client and your character will remain online. Its basically like all other @afk in the forums. It behaves like @autotrade.

Saw this on my atcommand.c under @recall command

if( pc_setpos(pl_sd, sd->mapindex, sd->bl.x, sd->bl.y, CLR_RESPAWN) == SETPOS_AUTOTRADE ){
	clif_displaymessage(fd, msg_txt(sd,1025)); // The player is currently autotrading and cannot be recalled.

This is the restriction when recalling players with autotrade state.

Can anybody help? Thanks!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

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