D3ath Posted September 25, 2014 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 13 Reputation: 3 Joined: 03/07/12 Last Seen: October 16, 2021 Share Posted September 25, 2014 //Special message when trying to use strip on FCP [Jobbie] if( sd && skill_id == ST_FULLSTRIP && tsc && tsc->data[SC_CP_WEAPON] && tsc->data[SC_CP_HELM] && tsc->data[SC_CP_ARMOR] && tsc->data[SC_CP_SHIELD]) { clif_gospel_info(sd, 0x28); break; } if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand() %100 < 15 && ( skillid == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] || skillid == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] || skillid == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] || skillid == RG_STRIPHELM && tsc->data[SC_CP_HELM])) { int item_id = 7139; // Glistening Coat int ii; ARR_FIND( 0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id ); if ( ii < MAX_INVENTORY ) { pc_delitem( sd, ii, 1, 0, 0, LOG_TYPE_CONSUME); switch ( skillid ) { case RG_STRIPWEAPON: status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER ); sc_start( bl, SC_STRIPWEAPON, 100, skilllv, d ); break; case RG_STRIPSHIELD: status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER ); sc_start( bl, SC_STRIPSHIELD, 100, skilllv, d ); break; case RG_STRIPARMOR: status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER ); sc_start( bl, SC_STRIPARMOR, 100, skilllv, d ); break; case RG_STRIPHELM: status_change_end( bl, SC_CP_HELM, INVALID_TIMER ); sc_start( bl, SC_STRIPHELM, 100, skilllv, d ); break; } clif_skill_nodamage( src, bl, skillid, skilllv, i ); break; } } i try that code for single strip but i got error. im using latest version. skill.c: In function ‘skill_castend_nodamage_id’: skill.c:6803: error: ‘skillid’ undeclared (first use in this function) skill.c:6803: error: (Each undeclared identifier is reported only once skill.c:6803: error: for each function it appears in.) skill.c:6815:48: error: macro "sc_start" requires 6 arguments, but only 5 given skill.c:6815: error: ‘sc_start’ undeclared (first use in this function) skill.c:6819:48: error: macro "sc_start" requires 6 arguments, but only 5 given skill.c:6823:47: error: macro "sc_start" requires 6 arguments, but only 5 given skill.c:6827:46: error: macro "sc_start" requires 6 arguments, but only 5 given skill.c:6830: error: ‘skilllv’ undeclared (first use in this function) skill.c:10515: error: invalid storage class for function ‘skill_count_wos’ skill.c:11417: error: invalid storage class for function ‘skill_dance_overlap_sub’ skill.c:11466: error: invalid storage class for function ‘skill_dance_switch’ skill.c:11519: error: invalid storage class for function ‘skill_icewall_block’ skill.c:12025: error: invalid storage class for function ‘skill_unit_onplace’ skill.c:13156: error: invalid storage class for function ‘skill_unit_effect’ skill.c:13388: error: invalid storage class for function ‘skill_check_condition_mob_master_sub’ skill.c:15186: error: invalid storage class for function ‘skill_brandishspear_first’ skill.c:15289: error: invalid storage class for function ‘skill_brandishspear_dir’ skill.c:15551: error: invalid storage class for function ‘skill_sit_count’ skill.c:15569: error: invalid storage class for function ‘skill_sit_in’ skill.c:15592: error: invalid storage class for function ‘skill_sit_out’ skill.c:15702: error: invalid storage class for function ‘skill_unitsetmapcell’ skill.c:15900: error: invalid storage class for function ‘skill_cell_overlap’ skill.c:16025: error: invalid storage class for function ‘skill_trap_splash’ skill.c:16393: error: invalid storage class for function ‘skill_get_new_group_id’ skill.c:16689: error: invalid storage class for function ‘skill_unit_timer_sub’ skill.c:17873: error: invalid storage class for function ‘skill_toggle_magicpower’ skill.c:18131: error: invalid storage class for function ‘skill_destroy_trap’ skill.c:18755: error: invalid storage class for function ‘skill_parse_row_skilldb’ skill.c:18831: error: invalid storage class for function ‘skill_destroy_requirement’ skill.c:18845: error: invalid storage class for function ‘skill_parse_row_requiredb’ skill.c:18942: error: invalid storage class for function ‘skill_parse_row_castdb’ skill.c:18963: error: invalid storage class for function ‘skill_parse_row_castnodexdb’ skill.c:18979: error: invalid storage class for function ‘skill_parse_row_nocastdb’ skill.c:18993: error: invalid storage class for function ‘skill_parse_row_unitdb’ skill.c:19036: error: invalid storage class for function ‘skill_parse_row_producedb’ skill.c:19059: error: invalid storage class for function ‘skill_parse_row_createarrowdb’ skill.c:19079: error: invalid storage class for function ‘skill_parse_row_spellbookdb’ skill.c:19105: error: invalid storage class for function ‘skill_parse_row_improvisedb’ skill.c:19133: error: invalid storage class for function ‘skill_parse_row_magicmushroomdb’ skill.c:19156: error: invalid storage class for function ‘skill_parse_row_copyabledb’ skill.c:19187: error: invalid storage class for function ‘skill_parse_row_nonearnpcrangedb’ skill.c:19209: error: invalid storage class for function ‘skill_parse_row_abradb’ skill.c:19232: error: invalid storage class for function ‘skill_parse_row_changematerialdb’ skill.c:19268: error: invalid storage class for function ‘skill_parse_row_skilldamage’ skill.c: In function ‘skill_parse_row_skilldamage’: skill.c:19270: warning: comparison is always false due to limited range of data type skill.c: In function ‘skill_castend_nodamage_id’: skill.c:19300: error: invalid storage class for function ‘skill_readdb’ skill.c:19412: error: expected declaration or statement at end of input Quote Link to comment Share on other sites More sharing options...
D3ath Posted September 27, 2014 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 13 Reputation: 3 Joined: 03/07/12 Last Seen: October 16, 2021 Author Share Posted September 27, 2014 up help please Quote Link to comment Share on other sites More sharing options...
D3ath Posted October 3, 2014 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 13 Reputation: 3 Joined: 03/07/12 Last Seen: October 16, 2021 Author Share Posted October 3, 2014 up. help me please? Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 9, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: April 20 Share Posted October 9, 2014 these error message are pretty self-explained. missing argument undeclared variable Quote Link to comment Share on other sites More sharing options...
Question
D3ath
i try that code for single strip but i got error. im using latest version.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.