Jump to content
  • 0

Make all maps flag as a restricted zone


cawogeek

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  06/25/12
  • Last Seen:  

Hi, is it possible that to make all maps flag in zone 3? I have some custom items that can only be equipped on arena and some 3 other maps.

This is what i had done...

 

on map_flags_init in src/map/map.c 

/// Initializes map flags and adjusts them depending on configuration.
void map_flags_init(void)
{
	int i;

	for( i = 0; i < map_num; i++ )
	{
		// mapflags
		memset(&map[i].flag, 0, sizeof(map[i].flag));

		// additional mapflag data
		map[i].zone        = 0;  // restricted mapflag zone
		map[i].nocommand   = 0;  // nocommand mapflag level
		map[i].adjust.bexp = 100;  // per map base exp multiplicator
		map[i].adjust.jexp = 100;  // per map job exp multiplicator
		memset(map[i].drop_list, 0, sizeof(map[i].drop_list));  // pvp nightmare drop list

		// skill damage
#ifdef ADJUST_SKILL_DAMAGE
		memset(&map[i].adjust.damage, 0, sizeof(map[i].adjust.damage));
		if (map[i].skill_damage.count)
			map_skill_damage_free(&map[i]);
#endif

		// adjustments
		if( battle_config.pk_mode )
			map[i].flag.pvp = 1; // make all maps pvp for pk_mode [Valaris]

		//Arena Mode
			map[i].flag.restricted = 3; //make all maps restricted 3 for arena mode <-- added this code
			
		if( map[i].qi_data )
			aFree(map[i].qi_data);

		map[i].qi_data = NULL;
		map[i].qi_count = 0;
	}
}

and its not working. :( and i even try to replace that code to this

map[i].zone        = 3;

same thing not working, no restricted map shown when i used "@mapflag" in some maps i tested.

 

Anyone help? :D

Thanks in advance!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...