SphereServer BugTracker - SphereServer
View Issue Details
0002247SphereServernew feature requestpublic28-11-13 18:0315-12-13 22:06
DavideRei 
Ben 
normalfeatureN/A
resolvedfixed 
 
0.56c Nightly 
Automated (specify build number)
None
Buffs, NoPrefix
0002247: LOCAL.ARROW in @HitTry
LOCAL.ARROW in @HitTry to set UID of the arrow to fire(Archery only)

TAG.OVERRIDE.AMMOTYPE can be used to make a bow fire a new type of arrow, but is not possible to fire only the base arrows(i_arrow) without consuming the new arrows.

For example:
A player has in his backpack i_arrow and i_arrow_poisoned.
Setting TAG.OVERRIDE.AMMOTYPE=i_arrow_poisoned on the bow make it fire only i_arrow_poisoned.
Setting TAG.OVERRIDE.AMMOTYPE=i_arrow or TAG.OVERRIDE.AMMOTYPE=
make the bow fire both type: i_arrow and i_arrow_poisoned

With LOCAL.ARROW in @HitTry you can solve the problem doing this:
ON=@HITTRY
TAG.OVERRIDE.AMMO=<findlayer(21).findid.i_arrow.uid>

It would also be useful to consume only arrows in a specific container(quiver for example).
No tags attached.
Issue History
28-11-13 18:03DavideReiNew Issue
28-11-13 18:08DavideReiNote Added: 0001783
15-12-13 00:23khaosNote Added: 0001847
15-12-13 00:23khaosAssigned To => Ben
15-12-13 00:23khaosStatusnew => assigned
15-12-13 22:06BenNote Added: 0001851
15-12-13 22:06BenStatusassigned => resolved
15-12-13 22:06BenFixed in Version => 0.56c Nightly
15-12-13 22:06BenResolutionopen => fixed

Notes
(0001783)
DavideRei   
28-11-13 18:08   
I correct myself:

With LOCAL.ARROW in @HitTry you can solve the problem doing this:
ON=@HITTRY
LOCAL.ARROW=<findlayer(21).findid.i_arrow.uid>
(0001847)
khaos   
15-12-13 00:23   
Ben said the behavior is working fine. He did say he is going to add tag.override.ammocontainer though. So I am switching the assignment to him.
(0001851)
Ben   
15-12-13 22:06   
As for AMMOTYPE causing bows to shoot multiple types of arrows... NOT ABLE TO REPRODUCE.

But for shouting from a container, I added the variable AMMOCONT which can take a UID of a container or the ID of a container.

All TAG.OVERRIDE.AMMOX have been changed to variables...
AMMOANIM
AMMOANIMHUE
AMMOANIMRENDER
AMMOCONT
AMMOTYPE