Jump to content

pcblockmove description incorrect

closed

Skorm
2014-02-27 23:33:54
I tried suggesting the command be updated because it would be useful, but that didn't work so if we could fix the misleading information that'd be nice.
*pcblockmove <id>,<option>;

Prevents the given ID from moving when the option != 0, and 0 enables the ID to
move again. The ID can either be the GID of a monster/NPC or account ID of a
character, and will run for the attached player if zero is supplied.

Examples:

// Prevents the current char from moving away.
	pcblockmove getcharid(3),1;
	
// Enables the current char to move again.
	pcblockmove getcharid(3),0;


This command doesn't actually affect monsters at all. I've tested it multiple times.

Capuche
2014-02-28 14:41:19
Indeed there is nothing about the monster in the src
BUILDIN_FUNC(pcblockmove)
{
	int id, flag;
	TBL_PC *sd = NULL;

	id = script_getnum(st,2);
	flag = script_getnum(st,3);

	if(id)
		sd = map_id2sd(id);
	else
		sd = script_rid2sd(st);

	if(sd)
		sd->state.blockedmove = flag > 0;
	return SCRIPT_CMD_SUCCESS;
}


Euphy
2014-03-13 19:49:16
Fixed in 4889699.
×
×
  • Create New...