Jump to content
  • 0

R>@AFK


CursorX

Question


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  168
  • Reputation:   0
  • Joined:  11/20/13
  • Last Seen:  

seems the other thread is not working anymore in the latest revision...

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   11
  • Joined:  05/31/12
  • Last Seen:  

File Location: trunk/src/map atcommand.c

 

Find:

ACMD_FUNC(reloadmsgconf)
{
	map_msg_reload();
	clif_displaymessage(fd, msg_txt(sd,463)); // Message configuration has been reloaded.
	return 0;
}

Add Below

ACMD_FUNC(afk)
{
	nullpo_retr(-1, sd);
	trade_tradeack(sd,4);
	sd->state.autotrade = 1;
	if( battle_config.at_timeout )
	{
		int timeout = atoi(message);
		status_change_start(&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, 0);
	}
	clif_authfail_fd(fd, 15);
	return 0;
}

Find:

	AtCommandInfo atcommand_base[] = {

Add Below:

		ACMD_DEF(afk),

NOTE : ALWAYS BACKUP BEFORE EDITING

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  168
  • Reputation:   0
  • Joined:  11/20/13
  • Last Seen:  

i want to try this.. but i was wondering if someone can fix this @afk to the latest revision :D

 

http://rathena.org/board/topic/71389-afk-with-afk-hat/

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   11
  • Joined:  05/31/12
  • Last Seen:  

i want to try this.. but i was wondering if someone can fix this @afk to the latest revision :D

 

http://rathena.org/board/topic/71389-afk-with-afk-hat/

it is almost similar with that thing but the thing was the Waiting room is disabled :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  168
  • Reputation:   0
  • Joined:  11/20/13
  • Last Seen:  

and besides.. i dont see any of this file in latest revision...

 

ACMD_FUNC(reloadmsgconf)
{
    map_msg_reload();
    clif_displaymessage(fd, msg_txt(sd,463)); // Message configuration has been reloaded.
    return 0;
}

 

i only see is this

 

clif_displaymessage(fd, msg_txt(sd,100)); // Scripts have been reloaded.
    } else if (strstr(command, "msgconf") || strncmp(message, "msgconf", 3) == 0) {
        map_msg_reload();
        clif_displaymessage(fd, msg_txt(sd,463)); // Message configuration has been reloaded.

    } else if (strstr(command, "questdb") || strncmp(message, "questdb", 3) == 0) {
        do_reload_quest();
        clif_displaymessage(fd, msg_txt(sd,1377)); // Quest database has been reloaded.
    } else if (strstr(command, "packetdb") || strncmp(message, "packetdb", 4) == 0) {
        packetdb_readdb();
        clif_displaymessage(fd, msg_txt(sd,1477)); // Packet database has been reloaded.
    } else if (strstr(command, "instancedb") || strncmp(message, "instancedb", 4) == 0) {
        instance_readdb();
        clif_displaymessage(fd, msg_txt(sd,516)); // Instance database has been reloaded.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   11
  • Joined:  05/31/12
  • Last Seen:  

just got this if you can't see those but not really sure just seen code it like 5 minutes ago

-	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;
}
Edited by Ceejay Abne
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...