Stun: Difference between revisions

From RoDpedia
Jump to navigation Jump to search
Asterix (talk | contribs)
Created entry
 
Blithe (talk | contribs)
mNo edit summary
Line 4: Line 4:
  Stun is a skill which can only be used once a fight
  Stun is a skill which can only be used once a fight
  has started. It will stun your opponent if successful.
  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 ) )


[[Category:Skills]]
[[Category:Skills]]
[[Category:Barbarian Skills]]
[[Category:Barbarian Skills]]
[[Category:Warrior Skills]]
[[Category:Warrior Skills]]

Revision as of 05:58, 2 June 2024

  • 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 ) )