Jump to content
  • 0
Sign in to follow this  
Bringer

Sacrifice Miss - Src Error

Question

i just change on battle.c

 

if ( (!skill_num || skill_num == PA_SACRIFICE) && tstatus->flee2 && rnd()%1000 < tstatus->flee2 )

TO 
if ( (!skill_num) && tstatus->flee2 && rnd()%1000 < tstatus->flee2 )

 

i already put my backup battle.c but still error anyone can help about this problem?

 

error 

battle.c: In function 'battle_delay_damage':battle.c:286: error: 'struct Battle_Config' has no member named 'snap_dodge'battle.c: In function 'battle_calc_base_damage':battle.c:505: error: 'TBL_PC' has no member named 'charm_type'battle.c:505: error: 'CHARM_TYPE_NONE' undeclared (first use in this function)battle.c:505: error: (Each undeclared identifier is reported only oncebattle.c:505: error: for each function it appears in.)battle.c:505: error: 'TBL_PC' has no member named 'charm_count'battle.c:505: error: 'MAX_SPIRITCHARM' undeclared (first use in this function)battle.c:506: error: 'TBL_PC' has no member named 'charm_type'battle.c: In function 'battle_addmastery':battle.c:677: warning: implicit declaration of function 'pc_isridingpeco'battle.c: In function 'battle_calc_masteryfix':battle.c:780: error: 'struct battle_interface' has no member named 'calc_masteryfix_unknown'battle.c: In function 'battle_calc_defense':battle.c:1324: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1324: error: 'CHARM_TYPE_LAND' undeclared (first use in this function)battle.c:1324: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1325: error: 'struct map_session_data' has no member named 'charm_count'battle.c: In function 'battle_calc_skillratio':battle.c:1578: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1578: error: 'CHARM_TYPE_FIRE' undeclared (first use in this function)battle.c:1578: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1579: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1583: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1583: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1584: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1588: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1588: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1589: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1600: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1600: error: 'CHARM_TYPE_WATER' undeclared (first use in this function)battle.c:1600: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1601: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1605: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1605: error: 'CHARM_TYPE_WIND' undeclared (first use in this function)battle.c:1605: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1606: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1609: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1609: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1610: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1857: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1857: error: 'CHARM_TYPE_NONE' undeclared (first use in this function)battle.c:1857: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1858: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1860: error: 'struct map_session_data' has no member named 'charm_count'battle.c:1860: error: 'struct map_session_data' has no member named 'charm_type'battle.c:1864: error: 'struct battle_interface' has no member named 'calc_skillratio_magic_unknown'battle.c:2638: error: 'struct battle_interface' has no member named 'calc_skillratio_weapon_unknown'battle.c: In function 'battle_calc_magic_attack':battle.c:3474: error: 'TBL_PC' has no member named 'charm_type'battle.c:3474: error: 'CHARM_TYPE_NONE' undeclared (first use in this function)battle.c:3474: error: 'TBL_PC' has no member named 'charm_count'battle.c:3474: error: 'MAX_SPIRITCHARM' undeclared (first use in this function)battle.c:3476: error: 'TBL_PC' has no member named 'charm_type'battle.c:3518: error: 'TBL_PC' has no member named 'charm_type'battle.c:3518: error: 'TBL_PC' has no member named 'charm_count'battle.c:3519: error: 'TBL_PC' has no member named 'charm_type'battle.c: In function 'battle_calc_misc_attack':battle.c:4041: error: 'struct battle_interface' has no member named 'calc_misc_attack_unknown'battle.c:4119: error: 'struct battle_interface' has no member named 'calc_cardfix2'battle.c: In function 'battle_calc_weapon_attack':battle.c:4381: error: 'struct map_session_data' has no member named 'charm_type'battle.c:4381: error: 'CHARM_TYPE_NONE' undeclared (first use in this function)battle.c:4381: error: 'struct map_session_data' has no member named 'charm_count'battle.c:4381: error: 'MAX_SPIRITCHARM' undeclared (first use in this function)battle.c:4383: error: 'struct map_session_data' has no member named 'charm_type'battle.c: In function 'battle_calc_attack':battle.c:5585: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c:5586: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c:5586: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c:5587: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c: In function 'battle_drain':battle.c:5821: error: 'struct <anonymous>' has no member named 'sp_vanish_trigger'battle.c: In function 'battle_weapon_attack':battle.c:5908: error: 'USESKILL_FAIL_NEED_MORE_BULLET' undeclared (first use in this function)battle.c: In function 'battle_check_range':battle.c:6662: warning: implicit declaration of function 'check_distance_client_bl'battle.c: At top level:battle.c:6877: error: 'struct Battle_Config' has no member named 'official_cell_stack_limit'battle.c:6878: error: 'struct Battle_Config' has no member named 'custom_cell_stack_limit'battle.c:6880: error: 'struct Battle_Config' has no member named 'check_occupied_cells'battle.c:7022: error: 'struct Battle_Config' has no member named 'knockback_left'battle.c:7053: error: 'struct Battle_Config' has no member named 'bowling_bash_area'battle.c:7059: error: 'struct Battle_Config' has no member named 'unequip_restricted_equipment'battle.c:7075: error: 'struct Battle_Config' has no member named 'song_timer_reset'battle.c:7076: error: 'struct Battle_Config' has no member named 'snap_dodge'battle.c:7077: error: 'struct Battle_Config' has no member named 'stormgust_knockback'battle.c:7078: error: 'struct Battle_Config' has no member named 'mob_chase_refresh'battle.c:7079: error: 'struct Battle_Config' has no member named 'mob_icewall_walk_block'battle.c:7080: error: 'struct Battle_Config' has no member named 'boss_icewall_walk_block'battle.c:7081: error: 'struct Battle_Config' has no member named 'feature_roulette'battle.c: In function 'battle_adjust_conf':battle.c:7334: error: 'struct Battle_Config' has no member named 'feature_roulette'battle.c:7336: error: 'struct Battle_Config' has no member named 'feature_roulette'battle.c:7336: warning: statement with no effectbattle.c:7350: error: 'struct Battle_Config' has no member named 'custom_cell_stack_limit'battle.c:7350: warning: comparison between pointer and integerbattle.c: In function 'battle_defaults':battle.c:7439: error: 'struct battle_interface' has no member named 'calc_cardfix2'battle.c:7439: warning: statement with no effectbattle.c:7476: error: 'struct battle_interface' has no member named 'calc_masteryfix_unknown'battle.c:7476: warning: statement with no effectbattle.c:7477: error: 'struct battle_interface' has no member named 'calc_skillratio_magic_unknown'battle.c:7477: warning: statement with no effectbattle.c:7478: error: 'struct battle_interface' has no member named 'calc_skillratio_weapon_unknown'battle.c:7478: warning: statement with no effectbattle.c:7479: error: 'struct battle_interface' has no member named 'calc_misc_attack_unknown'battle.c:7479: warning: statement with no effectmake[1]: Leaving directory `/home/trincli0371/trunk/src/map'make[1]: *** [obj_sql/battle.o] Error 1make: *** [map_sql] Error 2

 

Edited by Mysterious

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

change it to

if ( !skill_num && tstatus->flee2 && rnd()%1000 < tstatus->flee2 )

then double check open and close bracket if they are all match..for easy checking use diff merge tool...

 

:meow:

Share this post


Link to post
Share on other sites
  • 0

change it to

if ( !skill_num && tstatus->flee2 && rnd()%1000 < tstatus->flee2 )

then double check open and close bracket if they are all match..for easy checking use diff merge tool...

 

:meow:

still miss

Share this post


Link to post
Share on other sites
  • 0

    if ((!skill_id ) && tstatus->flee2 && rnd()%1000 < tstatus->flee2) { <<< This 

    if ( (!skill_num ) && tstatus->flee2 && rnd()%1000 < tstatus->flee2 ) { <<< This  Then recompile

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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