Combat System - Overriding

Xen

Well-Known Member
Mar 10, 2013
73
5
34
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

ServUO Developer
Mar 3, 2013
1,248
131
40
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

Well-Known Member
Mar 2, 2013
276
62
31
www.servuo.com
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
 

Xen

Well-Known Member
Mar 10, 2013
73
5
34
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

Well-Known Member
Mar 2, 2013
276
62
31
www.servuo.com
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

Well-Known Member
Mar 10, 2013
73
5
34
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.