kickazz08 Posted September 9, 2012 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 61 Reputation: 0 Joined: 03/25/12 Last Seen: January 12, 2014 Share Posted September 9, 2012 hi guys.. how do i restrict the royal guard from using YGG's in GVG, WOE and PVP maps Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted September 9, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share 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 Link to comment Share on other sites More sharing options...
kickazz08 Posted September 9, 2012 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 61 Reputation: 0 Joined: 03/25/12 Last Seen: January 12, 2014 Author Share Posted September 9, 2012 thnx.. alot... Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted September 9, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share 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 Link to comment Share on other sites More sharing options...
Question
kickazz08
hi guys..
how do i restrict the royal guard from using YGG's in GVG, WOE and PVP maps
Link to comment
Share on other sites
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.