Lemke

Member
Hello guys!
Im trying to do a weapon (crossbow) to do some special damage to BaseCreature.
Im using this code:

C#:
public override void OnHit(Mobile attacker, Mobile defender, ref int damage) //On hit trigger
        {
      
            if (defender is BaseCreature)
            {
            damage = damage * 4;  // Change multiplier here as you wish
            }
            base.OnHit(attacker, defender, ref damage);
        }
But getting error:

C#:
Custom/RepeatingCrossboww.cs:
    CS0115: Line 25: 'Server.Items.DaemonicCrossbow.OnHit(Server.Mobile, Server.Mobile, ref int)': no se encontró ningún miembro adecuado que invalidar
Scripts: One or more scripts failed to compile or no script files were found.
Can anyone help?Thanks ina dvance!
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 150 Online
    • 273 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 88 Online
    • 190 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 83 Online
    • 137 Peak
  • Insane UO
    Endless Journey
    • Players
    • 72 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 28 Online
    • 85 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 21 Online
    • 30 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 19 Online
    • 32 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 19 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 19 Online
    • 34 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 18 Online
    • 48 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back