Jump to content
  • 0

R>@AFK


Question

5 answers to this question

Recommended Posts

Posted

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
Posted

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.

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...