Jump to content
  • 0

Single Strip BUG


Renji Abarai

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   0
  • Joined:  03/29/13
  • Last Seen:  

My Single Strip is Bug here is the scenario:

Player 1(stalker in talis mode): Use Single Strip on Player 2, After player 1 stripped the item of (player 2 in talis mode)
Player 2(any job in talis mode): stripped already, but you can equip the item again.

THIS BUG IS HAPPENING ONLY WHEN THE TARGET IS IN TALIS MODE, but when the target is not in talis mode the script is working fine.

i want even the target have talis he still can be single strip

to make it short after you Single Strip the Armor. the other player is stripped but he/she can equip it again after being stripped.

Eathena user:

 

here my source code kindly help me check where is the problem??? :(

 

//Special message when trying to use strip on FCP [Jobbie]
if( sd && skillid == 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 < 5
             &&
            ( 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);
 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_WEAPON, 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 );
}
}
//Attempts to strip at rate i and duration d
if( (i = skill_strip_equip(bl, location, i, skilllv, d)) || (skillid != ST_FULLSTRIP && skillid != GC_WEAPONCRUSH) )
clif_skill_nodamage(src,bl,skillid,skilllv,i); 
 
//Nothing stripped.
if( sd && !i )
clif_skill_fail(sd,skillid,0,0,0);
 
if( skillid == SC_STRIPACCESSARY && i )
clif_status_change(src, SI_ACTIONDELAY, 1, 1000, 0, 0, 1);
}
break;

Edited by Renji Abarai
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  812
  • Reputation:   234
  • Joined:  01/30/13
  • Last Seen:  

Hmmm, the code looks quite a bit different from the current skill.c code:

https://raw.githubusercontent.com/rathena/rathena/master/src/map/skill.c

 

Doesn't skill_strip_equip already call sc_start?

 

 

Other than that my first assumption would be that the duration is 0.

 

Try putting after:

if (d < 0) d = 0; //Minimum duration 0ms
This:

ShowDebug("Strip duration = %d\n", d);
Then compile and try using strip.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   0
  • Joined:  03/29/13
  • Last Seen:  

Hmmm, the code looks quite a bit different from the current skill.c code:

https://raw.githubusercontent.com/rathena/rathena/master/src/map/skill.c

 

Doesn't skill_strip_equip already call sc_start?

 

 

Other than that my first assumption would be that the duration is 0.

 

Try putting after:

if (d < 0) d = 0; //Minimum duration 0ms
This:

ShowDebug("Strip duration = %d\n", d);
Then compile and try using strip.

 

UPDATE !!! THIS BUG IS HAPPENING ONLY WHEN THE TARGET IS IN TALIS MODE, but when the target is not in talis mode the script is working fine.

My Single Strip is Bug here is the scenario:

Player 1(stalker in talis mode): Use Single Strip on Player 2, After player 1 stripped the item of (player 2 in talis mode)

Player 2(any job in talis mode): stripped already, but you can equip the item again.

THIS BUG IS HAPPENING ONLY WHEN THE TARGET IS IN TALIS MODE, but when the target is not in talis mode the script is working fine.

to make it short after you Single Strip the Armor. the other player is stripped but he/she can equip it again after being stripped.

Edited by Renji Abarai
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   0
  • Joined:  03/29/13
  • Last Seen:  

Solve i fix it on my skill_cast_db.txt  i add 4mins in strip =)
thanks for the help guys

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...