Jump to content
  • 0
cits13th

How to allow Ranger avaliable riding wang & get falcon?

Question

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) )    // [email protected]“}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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.