Issue information

Issue ID
#6709
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Sep 18, 2012 14:33
Last Post
Hercules Elf Bot
Sep 18, 2012 19:06
Confirmation
N/A

Hercules Elf Bot - Sep 18, 2012 14:33

Originally posted by [b]Golem1988[/b]
Well, If you put some item, that increases walking speed for +25%, than equip some more equips that should increase walking speed, than receive Agiup, the walking speed is fixed.
So, only the first equipped item gives walking speed bonus. They won't stack.

This post has been edited by Golem1988 on Sep 18, 2012 14:34

Hercules Elf Bot - Sep 18, 2012 14:50

Originally posted by [b]malufett[/b]
yes they don't cause in official it won't stack...
[CODEBOX]
if( sc->data[SC_SPEEDUP1] ) //FIXME: used both by NPC_AGIUP and Speed Potion script
val = max( val, 50 );
if( sc->data[SC_INCREASEAGI] )
val = max( val, 25 );
if( sc->data[SC_WINDWALK] )
val = max( val, 2 * sc->data[SC_WINDWALK]->val1 );
if( sc->data[SC_CARTBOOST] )
val = max( val, 20 );
if( sd && (sd->class_&MAPID_UPPERMASK) == MAPID_ASSASSIN && pc_checkskill(sd,TF_MISS) > 0 )
val = max( val, 1 * pc_checkskill(sd,TF_MISS) );
if( sc->data[SC_CLOAKING] && (sc->data[SC_CLOAKING]->val4&1) == 1 )
val = max( val, sc->data[SC_CLOAKING]->val1 >= 10 ? 25 : 3 * sc->data[SC_CLOAKING]->val1 - 3 );
if( sc->data[SC_BERSERK] )
val = max( val, 25 );
if( sc->data[SC_RUN] )
val = max( val, 55 );
if( sc->data[SC_AVOID] )
val = max( val, 10 * sc->data[SC_AVOID]->val1 );
if( sc->data[SC_INVINCIBLE] && !sc->data[SC_INVINCIBLEOFF] )
val = max( val, 75 );
if( sc->data[SC_CLOAKINGEXCEED] )
val = max( val, sc->data[SC_CLOAKINGEXCEED]->val3);
if( sc->data[SC_HOVERING] )
val = max( val, 10 );
if( sc->data[SC_GN_CARTBOOST] )
val = max( val, sc->data[SC_GN_CARTBOOST]->val2 );
if( sc->data[SC_SWINGDANCE] )
val = max( val, sc->data[SC_SWINGDANCE]->val2 );
if( sc->data[SC_WIND_STEP_OPTION] )
val = max( val, sc->data[SC_WIND_STEP_OPTION]->val2 );

//FIXME: official items use a single bonus for this [ultramage]
if( sc->data[SC_SPEEDUP0] ) // temporary item-based speedup
val = max( val, 25 );
if( sd && sd->bonus.speed_rate + sd->bonus.speed_add_rate < 0 ) // permanent item-based speedup
val = max( val, -(sd->bonus.speed_rate + sd->bonus.speed_add_rate) );[/CODEBOX]

:meow:

Hercules Elf Bot - Sep 18, 2012 19:06

Originally posted by [b]darristan[/b]
Damn, I was always thinking how come I walk slow with moonlight card + custom now we know. Thanks malufett.