Jump to content
  • 0

Royal Guard YGG restriction


kickazz08

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  03/25/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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 /wah

So if it doesn't work, please revert your pc.c to original and recompile your server again..

Edited by nanakiwurtz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  03/25/12
  • Last Seen:  

thnx.. alot...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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)

Link to comment
Share on other sites

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