Sphereserver / Source-X

Ultima Online server emulator
Apache License 2.0
58 stars 47 forks source link

local.arrow not the arrow used #1133

Open Soulless-1 opened 1 year ago

Soulless-1 commented 1 year ago

under @hit and @hitmiss local.arrow is the pile of arrows in the attackers bag, not the uid of the arrow used. this makes it hard to really find that specific arrow on the target. for instance two archers battling each other, if you did findtype.t_weapon_arrow on them you might not get the arrow actually used but their own arrow pile they are using. For something like poisoned arrows this makes it difficult to deal with.

xwerswoodx commented 1 year ago

The problem is, the arrow is not unstack before the trigger, what I meant, When you miss the hit the arrow unstack or consumed depends on your luck, if it unstack it moves down of the player. Yes I can unstack and get the UID before trigger but the issue is if you return 1 under @hitmiss it will stay unstacked in your backpack, maybe take a look, I can add it back to stack if you return 1 the trigger, but if you did changes on arrow can cause issues, so need to check first before doing anything