Jump to content
  • 0

Single Strip


Patskie

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Hello i have the following code for single strip, i use this awhile back and quit in RO for some reasons. And now that it is summer i tried to create again another server. I forgot the SVN i am using that time. But now i used the latest version 17231. 

 

 
if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 20
             &&
            ( 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( bl, SC_STRIPWEAPON, 100, skill_lv, d );
                        break;
                    case RG_STRIPSHIELD:
                        status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER );
                        sc_start( bl, SC_STRIPSHIELD, 100, skill_lv, d );
                        break;
                    case RG_STRIPARMOR:
                        status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER );
                        sc_start( bl, SC_STRIPARMOR, 100, skill_lv, d );
                        break;
                    case RG_STRIPHELM:
                        status_change_end( bl, SC_CP_HELM, INVALID_TIMER );
                        sc_start( bl, SC_STRIPHELM, 100, skill_lv, d );
                        break;
                }
                clif_skill_nodamage( src, bl, skill_id, skill_lv, i );
                break;
            }
        }

 

I receive the following errors : 

 

skill.c:6344:54: error: macro "sc_start" requires 6 arguments, but only 5 given
skill.c: In function âskill_castend_nodamage_idâ:
skill.c:6344: error: âsc_startâ undeclared (first use in this function)
skill.c:6344: error: (Each undeclared identifier is reported only once
skill.c:6344: error: for each function it appears in.)
skill.c:6348:54: error: macro "sc_start" requires 6 arguments, but only 5 given
skill.c:6352:53: error: macro "sc_start" requires 6 arguments, but only 5 given
skill.c:6356:52: error: macro "sc_start" requires 6 arguments, but only 5 given
make[1]: *** [obj_sql/skill.o] Error 1
make[1]: Leaving directory `/eathena/src/map'
make: *** [map_sql] Error 2
 
Edited by Traumatized
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   2
  • Joined:  11/20/11
  • Last Seen:  

You have to add "NULL" before "bl" in the sc_start function since in the latest rev sc_start's has 6 arguments.

 

e.g. sc_start(NULL, bl, SC_STRIPWEAPON, 100, skill_lv, d );

Edited by Pinoy Fury
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

then ? what's ur problems ?? you never elaborate any problems of your with the code you provided...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

then ? what's ur problems ?? you never elaborate any problems of your with the code you provided...

Sorry emistry, i posted it accidentally.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

I'll try this. Thanks bro, /no1

 

Thanks dude! it works! /no1/thx

Edited by Traumatized
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...