Jump to content
  • 0

adding AFK command


seifman123

Question


  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/03/13
  • Last Seen:  

i tried to add te @AFK command  and already made  like the guide says but when i compile  the server an error appears

Error    1    error C2039: 'logout' : is not a member of 's_state'    D:\rathena\src\map\atcommand.c    9079    1    map-server_sql


 i made each step by step  but still have this error

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/03/13
  • Last Seen:  

I redo everything but nthg happened 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

testing this...

-	script	AFK_1	-1,{
	
	
OnInit:
bindatcmd("afk", strnpcinfo(3) +"::OnAFK");
end;

OnAFK:
if (@AFK) {
set @AFK, 0;
changelook 4,headupper;
dispbottom "AFK Modus is OFF.";
end;
} else {
set @AFK, 1;
headupper=getlook(4);
changelook 4,471;
dispbottom "AFK Modus is ON.";
end;
}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/03/13
  • Last Seen:  

so did it  work  ?

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