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

Need to ask a question.

Megser

Well-Known Member
Joined
Apr 17, 2010
Messages
1,389
Reaction score
73
Okay, so. I need the bot to use an item on an NPC. But when I place the location where they generally are they're still too far away. Can you like add hotspots to the quest or something? Because I don't think the UseItemOn behavior will work without a X Y Z and wont it just keep on running to that position?


Thanks for any help.
 
useitemon collectiondistance = 400

or

runmacro /tar namehere
runlua useitembyname()

inside of the () is the item id#
 
Thanks so much Kick, It worked. But now another issues surfaces.
 
Last edited:
Mesger said:
I want it to use the item on the mob which will make the character auto enter a vehicle, and then I want it to return to the NPC so it can get credit. I want it to do that 8 times. But as of know, it just uses the item and then tries to use it again when it's on the vehicle.

We can significantly simplify the code to the following...

HTML:
<While Condition="HasQuest(11690) &amp;&amp; !IsQuestCompleted(11690)">
    <CustomBehavior File="UseItemOn" QuestId="11690"
                    MobType="Npc" MobId="25596" ItemId="34954" NumOfTimes="1"
                    WaitTime="1500" CollectionDistance="400"
                    X="2925.608" Y="6544.225" Z="66.96706" />
    <RunTo DestName="Farmer Torp" X="2884.127" Y="6385.235" Z="92.89502" />
</While>

If you examine the code, you will see that the NumOfTimes value has been changed from 8 to 1. I believe this will repair your problem.

I've never done this quest, but read through the description. It looks like you will also need another CustomBehavior after the RunTo to interact with Farmer Torp, and turn the Kodo in. I would give InteractWith a look for that functionality.


cheers and good luck with it,
chinajade
 
Thank you very much Chinajade, I really don't know what the "While" tag does.

+

You don't interact with Torp, you press on a button (number 2 in this case) and it turns the kodo in. Then I guess I have to use another Custom Behavior instead of just using "RunTo"?

And I know that you can choose in the "VehicleMover" CB to ignore combat, can you do that any other way without using a CB?
 
Last edited:
Back
Top