cits13th Posted February 18, 2012 Share Posted February 18, 2012 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. Quote Link to comment Share on other sites More sharing options...
nelsontyh Posted February 18, 2012 Share Posted February 18, 2012 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 Quote Link to comment Share on other sites More sharing options...
BuLaLaKaW Posted February 18, 2012 Share Posted February 18, 2012 then get falcon first before warg Falcon then Warg OK Warg then Falcon is not OK, you will not get Falcon Quote Link to comment Share on other sites More sharing options...
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