Stun
Jump to navigation
Jump to search
- Syntax:
Stun <mob>
Help File
Stun is a skill which can only be used once a fight has started. It will stun your opponent if successful.
Stun is used on mob (whereas bash is a PK skill due to stun having very low chance of working on player (if any)).
Chance of landing in old code is function of Dex and Strength:
schance = ris_save( victim, ch->level, RIS_PARALYSIS );
if( schance == 1000 )
fail = TRUE;
else
fail = saves_para_petri( schance, victim );
schance = ( ( ( get_curr_dex( victim ) + get_curr_str( victim ) )
- ( get_curr_dex( ch ) + get_curr_str( ch ) ) ) * 10 ) + 10;
/*
* harder for player to stun another player
*/
if( !IS_NPC( ch ) && !IS_NPC( victim ) )
schance += sysdata.stun_plr_vs_plr;
else
schance += sysdata.stun_regular;
if( !fail && can_use_skill( ch, ( number_percent( ) + schance ), gsn_stun ) )