cawogeek Posted April 19, 2015 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 26 Reputation: 0 Joined: 06/25/12 Last Seen: December 12, 2023 Share Posted April 19, 2015 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? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Question
cawogeek
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
and its not working. and i even try to replace that code to this
same thing not working, no restricted map shown when i used "@mapflag" in some maps i tested.
Anyone help?
Thanks in advance!
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.