[FIXED] Player Poison can not be unset.

Found a bug in UOX3? Or experienced a server crash? Perhaps you've noticed a broken feature? Post the details here!
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Player Poison can not be unset.

Post by stranf »

As mentioned in a post in General Discussion, my player has been poisioning monsters for more reason. Xuri was correct, this is caused because my poison is equal to 3. You can verify this with the tweak command.


Unfortunatley, if you use "tweak" and "set" to

'set poison 0

it replies:

"value set successfuly"

Alas, it does not set, but remains at 3.

The bug is probably in set.js and tweak.js. I haven't had time to verify as I am at work.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Yeah, this is a multi-part issue.

1) The SetPoisoned JS method was setting PoisonStrength as well as the Poisoned value on a character. PoisonStrength is used to poison others in combat, and should have its own JS Method (assuming it doesn't already).

2) PoisonStrength is almost entirely unused in the code, except to poison others in combat. This means that it's not being set when a player equips a poisoned weapon as one might assume. The only way it can be set is through the DFN's (on an NPC) or the aforementioned bug.

Issue #1 I've already resolved, Issue #2 I'll have a look at.
Post Reply