Full Version : No Damage in Challenge Game
xmlspawner >>XMLPoint's Troubleshooting >>No Damage in Challenge Game
<< Prev | Next >>
jingz2k2- 03-11-2007
Sorry ArteGordon,
I have added the new code to baseweapon's OnHit method and here are the results:

CODE
OnHit: from 0x2 "JJ" to 0x3 "Tesster" = 0/0 OnHit: from 0x3 "Tesster" to 0x2 "JJ" = 49/74 OnHit: from 0x3 "Tesster" to 0x2 "JJ" = 49/74

Also I have already attached my PlayerMobile.cs
and thank you so much for all the help and effort you've put into helping me. Thank you very much for everything.
ArteGordon- 03-12-2007
ok, I'm a bit confused now.

QUOTE
OnHit: from 0x3 "Tesster" to 0x2 "JJ" = 49/74

are you saying that Tesster is not doing damage to JJ when you are testing this in a ChallengeGameRegion and the OnHit method is reporting the debug message above?
When Tesster is fighting JJ in a ChallengeGameRegion, do other people see them as yellow (invulnerable)?
Pretty much the only way all of that could happen is if the player is Blessed.
Try manually setting the Blessed flag on the players to false when they are fighting. You may have some item or system that is causing them to be blessed when they equip something.
[set blessed false
If they are not seen as yellow but are still not doing damage, it is still possible that there is some affect of the parent region blocking damage.
Try adding this to the ChallengeGameRegion.cs

CODE
public override bool OnDamage(Mobile m, ref int Damage) { return true; }

(edit)
ok, I took a look at your playermobile.cs and i think that I found it.
It is in your modified Damage method.

QUOTE
public override void Damage(int amount, Mobile from) { BaseCreature bc = from as BaseCreature; if (this == null) return;
if (bc == null)
return;
if ((bc.IsEasy || bc.IsHard || bc.IsExtreme || bc.IsGod) && bc.Combatant != this)
{
amount = (int)(amount -= amount);
bc.Damage(amount, bc);
}
if (Spells.Necromancy.EvilOmenSpell.CheckEffect(this))
amount = (int)(amount * 1.25);
Mobile oath = Spells.Necromancy.BloodOathSpell.GetBloodOath(from);

you added the stuff in red, and that will block damage from anything other than creatures.
If you comment that out, it will all probably work.
jingz2k2- 03-13-2007
Woooot
Thank you very much for all the help and effort and time into fixing and finding a solution to my issue. I really appreciate everything you've done.
Thank you very much ArteGordon, everything is working just as it is supposed to.
~Cheers
Jing