Guildmaster can't change position member when woe actived

Ehwaz

New member
Messages
97
Points
0
I tried to used mapreg->readreg( script->add_str("$abc") follow Angelmelody guide but visual alert mapreg undefined.

Code:
/*====================================================
 * Member changing position in guild
 *---------------------------------------------------*/
int guild_change_memberposition(int guild_id,int account_id,int char_id,short idx)
{
    if(mapreg->readreg( script->add_str("$abc"));
    return intif->guild_change_memberinfo(guild_id,account_id,char_id,GMI_POSITION,&idx,sizeof(idx));
}
 
I tried to used mapreg->readreg( script->add_str("$abc") follow Angelmelody guide but visual alert mapreg undefined.

/*====================================================
* Member changing position in guild
*---------------------------------------------------*/
int guild_change_memberposition(int guild_id,int account_id,int char_id,short idx)
{
if(mapreg->readreg( script->add_str("$abc"));
return intif->guild_change_memberinfo(guild_id,account_id,char_id,GMI_POSITION,&idx,sizeof(idx));
}
Try this one.

Code:
/*====================================================
 * Member changing position in guild
 *---------------------------------------------------*/
int guild_change_memberposition(int guild_id,int account_id,int char_id,short idx)
{
	if(map->agit_flag || map->agit2_flag) {
		clif->message(sd->fd, "You cannot change position during War of Emperium.");
		return 0;
	}
	return intif->guild_change_memberinfo(guild_id,account_id,char_id,GMI_POSITION,&idx,sizeof(idx));
}
 
Last edited by a moderator:
@Zhao Chow

Ops, map-server crash, maybe i edited wrong place not guild_change_memberposition

Do you know where to edit it ?

 
 
@Zhao Chow

Ops, map-server crash, maybe i edited wrong place not guild_change_memberposition

Do you know where to edit it ?

 
/*====================================================
* Member changing position in guild
*---------------------------------------------------*/
int guild_change_memberposition(int guild_id,int account_id,int char_id,short idx,struct map_session_data *sd)
{
if(map->agit_flag || map->agit2_flag) {
clif->message(sd->fd, "You cannot change position during War of Emperium.");
return 0;
}
return intif->guild_change_memberinfo(guild_id,account_id,char_id,GMI_POSITION,&idx,sizeof(idx));
}

Its working, try this code, forgot to put the *sd

 
Back
Top