Jump to content

Recommended Posts

Hi i want to know how i can get the bot to buy a specific item from a vendor:

The vendor:

 <Npc>
    <Entry>1247</Entry>
    <Name>Innkeeper Belm</Name>
    <Vector3 X="-5601.6" Y="-531.203" Z="399.6539" Type="None" />
    <Faction>Alliance</Faction>
    <Type>None</Type>
    <ContinentId>Azeroth</ContinentId>
  </Npc>

 

The item:

Rhapsody Malt : 2894

 

Link to comment
https://wrobot.eu/forums/topic/3858-buy-a-specific-item-from-a-specific-vendor/
Share on other sites

Hello, use quest type "Override Pulse CSharp Code" with code:

        var npc = new Npc
        {
            Entry = 1247,
            Position = new Vector3(-5601.6, -531.203, 399.6539),
            Type = Npc.NpcType.Vendor
        };
        int itemId = 2894;

        if (GoToTask.ToPositionAndIntecractWith(npc))
        {
            Vendor.BuyItem(ItemsManager.GetNameById(itemId), 1);
        }
        return true;

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...