Combat System - Overriding

Xen

Citizen
Friends,
I need a advice: i'm going to rewrite the Combat System for my shard.
I want to use ServUO (ForkUO) but i don't want to "rape" BaseWeapon.cs, any suggestion?
 

m309

Administrator
ServUO Developer
Create a BaseCustomWeapon.cs and just set all your default stuff there, You'll have to then create all your sub-bases, like CustomMelee, CustomRanged, CustomAxe etc. and correct all of the derivations in your weapons.
 

Insanity

Rookie
Would help to know what you're doing first. As you may not need to do what was mentioned above. Just depends on what you hope to accomplish.

Sent from my Droid Razr
 

m309

Administrator
ServUO Developer
Yea...thats probably a better initial approach >.>
 

Attachments

  • ai22.photobucket.com_albums_b347_Praxiiz_captcha1.png
    ai22.photobucket.com_albums_b347_Praxiiz_captcha1.png
    14.4 KB · Views: 15
  • ai22.photobucket.com_albums_b347_Praxiiz_captcha2.png
    ai22.photobucket.com_albums_b347_Praxiiz_captcha2.png
    14.5 KB · Views: 9
  • ai22.photobucket.com_albums_b347_Praxiiz_captcha3.png
    ai22.photobucket.com_albums_b347_Praxiiz_captcha3.png
    14.3 KB · Views: 7
  • ai22.photobucket.com_albums_b347_Praxiiz_captcha_font_editor2.png
    ai22.photobucket.com_albums_b347_Praxiiz_captcha_font_editor2.png
    82.3 KB · Views: 11
  • ai22.photobucket.com_albums_b347_Praxiiz_captcha_font_editor1.png
    ai22.photobucket.com_albums_b347_Praxiiz_captcha_font_editor1.png
    82.7 KB · Views: 7

Xen

Citizen
the first person who putted the combat system in baseweapon should be killed in a public square.

Could we change this?

However i've done as suggested by Insanity, all seems to "work".
 

Insanity

Rookie
What did I suggest? :/

Also, I don't believe I understand what you're trying to do...

When a player is fighting through your combat system...what about a public square?
 

Xen

Citizen
sorry i meant m309

However... i'm just trying to change

ComputeDamage
Delay
OnHit
OnSwing
AbsorbDamage
CheckHit

All those methods that are about "fight" system so i'll be able to calculate damage, time dalay and damage in a different way than OSI .

Is it so strange? °°

about publich square i meant that the first person that putted those methods in "BaseWeapon" should be punished in a square.