Jump to content
  • 0

How to allow Ranger avaliable riding wang & get falcon?


Question

Posted

Hi all,

Do anyone have any idea, how to edit src for enable to get falcon while they're riding wang.

I found in the pc.c file but I don't have any idea how to edit them.

yes, I did tried but when I edited them, it's always error when compile.

/*==========================================
* ‘้’่
*------------------------------------------*/
int pc_setfalcon(TBL_PC* sd, int flag)
{
   if( sd->sc.data[sC__GROOMY] )
       return 0;

   if( flag )
   { // You cannot get falcon while riding warg or while you have warg.
       if( pc_checkskill(sd,HT_FALCON)>0 && !(sd->sc.option&OPTION_RIDING_WUG || sd->sc.option&OPTION_WUG) )    // t@R“}X^?XL
           pc_setoption(sd,sd->sc.option|OPTION_FALCON);
   }
   else if( pc_isfalcon(sd) )
   {
       pc_setoption(sd,sd->sc.option&~OPTION_FALCON); // remove falcon
   }

   return 0;
}

/*==========================================
*
*------------------------------------------*/
int pc_setwarg(TBL_PC* sd, int flag)
{

   if( sd->sc.data[sC__GROOMY] )
       return 0;

   if( flag ){
       if( (pc_checkskill(sd,RA_WUGMASTERY)>0) && !(pc_isfalcon(sd)) && (!pc_iswarg(sd) || battle_config.warg_can_falcon) && !(pc_isriding(sd, OPTION_RIDING_WUG)) )
           pc_setoption(sd,sd->sc.option|OPTION_WUG);
   } else if( pc_isriding(sd, OPTION_RIDING_WUG) ) {
       pc_setoption(sd,sd->sc.option&~OPTION_RIDING_WUG);
   } else if( pc_iswarg(sd) ){
       pc_setoption(sd,sd->sc.option&~OPTION_WUG); // remove warg
   }

   return 0;
}

Thank you for your help.

2 answers to this question

Recommended Posts

Posted

Have you tried this in battle/player.conf?


// Set to 1 if you want to enable falcons and wolves at a time.
// NOTE: This is not allowed on official servers.
// Default: 0.
warg_can_falcon: 1

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