What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to use "UseItemTargetLocation" CB?

Megser

Well-Known Member
Joined
Apr 17, 2010
Messages
1,389
Reaction score
73
Right, so I want it to use an item and click at an location so it shoots, looks like this:

But I get an error saying:

PHP:
[UseItemTargetLocation(error)]: Attribute 'X' is required, but was not provided.
[UseItemTargetLocation(error)]: Attribute 'Y' is required, but was not provided.
[UseItemTargetLocation(error)]: Attribute 'Z' is required, but was not provided.
[UseItemTargetLocation(error) @line 170]: Stopping Honorbuddy.  Please repair the profile!

PHP:
				<CustomBehavior File="UseItemTargetLocation" QuestId="13798" ItemId="45598" UseType="PointToPoint" ClickToX="X="2218.044" ClickToY="Y="-2563.114" ClickToZ="Z="90.47626" />
				<CustomBehavior File="WaitTimer" WaitTime="16000" />
				<CustomBehavior File="UseItemTargetLocation" QuestId="13798" ItemId="45598" UseType="PointToPoint" ClickToX="X="2204.47" ClickToY="Y="-2534.636" ClickToZ="Z="82.85535" />
				<CustomBehavior File="WaitTimer" WaitTime="16000" />
				<CustomBehavior File="UseItemTargetLocation" QuestId="13798" ItemId="45598" UseType="PointToPoint" ClickToX="X="2215.919" ClickToY="Y="-2511.89" ClickToZ="Z="84.58554" />
				<CustomBehavior File="WaitTimer" WaitTime="16000" />
				<CustomBehavior File="UseItemTargetLocation" QuestId="13798" ItemId="45598" UseType="PointToPoint" ClickToX="X="2209.584" ClickToY="Y="-2482.732" ClickToZ="Z="85.16948" />
				<CustomBehavior File="WaitTimer" WaitTime="16000" />
				<CustomBehavior File="UseItemTargetLocation" QuestId="13798" ItemId="45598" UseType="PointToPoint" ClickToX="X="2172.599" ClickToY="Y="-2508.907" ClickToZ="Z="80.04305" />
				<CustomBehavior File="WaitTimer" WaitTime="16000" />
			</While>

Thanks in advance.
 
PHP:
        /// <summary>
        /// Allows you to use item on an object or at a location
        /// ##Syntax##
        /// [Optional] QuestId: Id of the quest. If specified the QB will run until the quest is completed
        /// [Optional] ObjectId: Id of the object/npc that the item will be used on
        /// ItemId: Id of the item that will be used
        /// [Optional]WaitTime: Time to wait after using the item 
        /// UseType: PointToObject (from X,Y,Z to an object's location)
        ///          PointToPoint  (from X,Y,Z to ClickToX,ClickToY,ClickToZ)
        ///          ToObject      (from range of an object to object's location)
        ///          Default is PointToPoint
        /// X,Y,Z: If the UseType is AtLocation, QB will move to that location before using item. Otherwise it will move towards that point to search for objects
        /// [Optional]ClickToX,ClickToY,ClickToZ: If the UseType is PoinToPoint, this location will be used to remote click 
        /// [Optional]Range: If the UseType is ToObject, QB will move to that range of an object/npc before using item. (default 4)
        /// </summary>
        ///

i would suggest ToObject and let the behavior do the work
 
open my classic profile and search for useitemtargetlocation
 
Back
Top