iamkevin Posted July 21, 2017 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 104 Reputation: 3 Joined: 09/15/16 Last Seen: July 20, 2024 Share Posted July 21, 2017 * i am using the latest Git of rAthena. * How to Fix this? thanks! i added this to my skill.c //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 < 50 && (( skill_id == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] )|| (skill_id == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] )|| (skill_id == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] )|| (skill_id == 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 ( skill_id ) { case RG_STRIPWEAPON: status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER ); sc_start( NULL, bl, SC_STRIPWEAPON, 100, skill_lv, d ); break; case RG_STRIPSHIELD: status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER ); sc_start( NULL, bl, SC_STRIPSHIELD, 100, skill_lv, d ); break; case RG_STRIPARMOR: status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER ); sc_start( NULL, bl, SC_STRIPARMOR, 100, skill_lv, d ); break; case RG_STRIPHELM: status_change_end( bl, SC_CP_HELM, INVALID_TIMER ); sc_start( NULL, bl, SC_STRIPHELM, 100, skill_lv, d ); break; } clif_skill_nodamage( src, bl, skill_id, skill_lv, i ); break; } } Now i am having this error: Quote Link to comment Share on other sites More sharing options...
0 nitrous Posted July 23, 2017 Group: Developer Topic Count: 4 Topics Per Day: 0.00 Content Count: 141 Reputation: 46 Joined: 08/14/12 Last Seen: April 5 Share Posted July 23, 2017 You no longer use `sd->status.inventory` to access a characters inventory. It is now accessible with `sd->inventory.u.items_inventory` Quote Link to comment Share on other sites More sharing options...
Question
iamkevin
* i am using the latest Git of rAthena. *
How to Fix this? thanks!
i added this to my skill.c
Now i am having this error:
Link to comment
Share on other sites
1 answer 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.