Recommended Posts

Hi, i began to script and edit src since 2 years now, for french pserv, i decided to share you this. It's a small feature inspired by pc_update_last_action function of eAthena.
I don't have bring together all changes yet, i just poste a video to show you what it look like, and if someone is interested, i'll post a file.
And sorry if the topic is not in the good place. I don't know if somethings like this exist actualy

AFK MODE:
A npc will check every 1 minute,  can be change, the idle time of all online player.

If the player is idle since to long, he's considired AFK, and all can see a Afk Hat on is head.
Afk state is automaticaly set to 0 when the player active idle_time trigger, that can be configurate in ./conf/battle/player.conf

There is also a @afk command, and pcisafk command script:

@afk make the player in Afk state.

pcisafk is used by the npc to check or change the afk state.

 

So here the package (Source modification + Script) :

Afk_Mode.rar

Edit: Something like that has been made before, it's not the same release but i put it here:

 

Edited by Metahego
  • Love 2
  • MVP 1

Share this post


Link to post
Share on other sites

Try posting it to showcase section next time

Share this post


Link to post
Share on other sites

Hi @Metahego , the script work well but the @afk command only works for GM... I tried to put this in /conf/groups.conf:

groups: (
{
	id: 0 /* group 0 is the default group for every new account */
	name: "Player"
	level: 0
	inherit: ( /*empty list*/ )
	commands: {
		/* no commands by default */
    	afk: true
	}

but do not work!
Any suggestions?

Edited by CyberDevil

Share this post


Link to post
Share on other sites

Hi CyberDevili've juste tryed this, like you did on your post:

groups: (
{
	id: 0 /* group 0 is the default group for every new account */
	name: "Player"
	level: 0
	inherit: ( /*empty list*/ )
	commands: {
		afk: true
		commands: true
		charcommands: true
		help: true
		rates: true
		uptime: true
		showdelay: true
		exp: true
		mobinfo: true
		iteminfo: true
		whodrops: true
		time: true
		jailtime: true
		hominfo: true

And it works fine on my server, have you reload atcommand ?

Share this post


Link to post
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
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.

Loading...