Jump to content
  • 0

need @afk code that can be use in rathena


domon99

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  06/19/12
  • Last Seen:  

need @afk code that can be use in rathena... and guide.. thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

Joseph, that download link doesn't seem to work..

This achieves the same thing, but scripted:

-	script	atcmd_afk	-1,{
OnInit:
bindatcmd("afk","atcmd_afk::Onafk");
bindatcmd("unafk","atcmd_afk::Onunafk");
end;
Onafk:
headupper=getlook(4);
changelook 4,471;
end;
Onunafk:
changelook 4,headupper;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Here is another script that only used @afk for both enable and disable.


- script atcmd_afk -1,{
OnInit:
bindatcmd("afk","atcmd_afk::OnAFK");
end;

OnAFK:
if (@AFK) {
set @AFK, 0;
changelook 4,headupper;
dispbottom "Away From Keyboard mode disabled.";
end;
} else {
set @AFK, 1;
headupper=getlook(4);
changelook 4,471;
dispbottom "Away From Keyboard mode enabled.";
end;
}
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  06/19/12
  • Last Seen:  

thanks guys

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

thanks guys

No problem :)

Can a mod move this script requests?

Edited by Euphy
(no need to move this)
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...