September 16, 20169 yr 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
September 16, 20169 yr 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