kickazz08 Posted September 9, 2012 Posted September 9, 2012 hi guys.. how do i restrict the royal guard from using YGG's in GVG, WOE and PVP maps Quote
nanakiwurtz Posted September 9, 2012 Posted September 9, 2012 (edited) Try to add this line into your src\map\pc.c file and recompile your server. Search for 'switch( nameid )' and add the code on a new line below the '{' symbol. case 607: if (map_flag_gvg(sd->bl.m) && (sd->class_&MAPID_THIRDMASK) == MAPID_ROYAL_GUARD) || (map[sd->bl.m].flag.pvp && ((sd->class_&MAPID_THIRDMASK) == MAPID_ROYAL_GUARD) || (map[m_id].flag.gvg_castle && ((sd->class_&MAPID_THIRDMASK) == MAPID_ROYAL_GUARD) return 0; break; Then again, I think of this only in my mind and haven't test it on actual server So if it doesn't work, please revert your pc.c to original and recompile your server again.. Edited September 9, 2012 by nanakiwurtz Quote
nanakiwurtz Posted September 9, 2012 Posted September 9, 2012 Umm i think I made a mistake, change this: (map[m_id].flag.gvg_castle && ((sd->class_&MAPID_THIRDMASK) == MAPID_ROYAL_GUARD) Into this: (map[sd->bl.m].flag.gvg_castle && ((sd->class_&MAPID_THIRDMASK) == MAPID_ROYAL_GUARD) Quote
Question
kickazz08
hi guys..
how do i restrict the royal guard from using YGG's in GVG, WOE and PVP maps
3 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.