Jump to content
  • 0

Royal Guard YGG restriction


Question

3 answers to this question

Recommended Posts

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

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

Edited by nanakiwurtz
Posted

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)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...