Jump to content

quests and buy equip


Miragex01

Recommended Posts

 

I apologize if I duplicate, trying to seek help,tell me how to get a character to buy common things from a weapon / armor seller.

Is it possible to create checkpoints in the quester profile? of things, if missing # lvl then buy

Link to comment
Share on other sites

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

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

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

also for runcode action use this . 

if (ObjectManager.Me.WowClass == WoWClass.class && ObjectManager.Me.Level <= 0) // change "Class" to what class you are. set level to level you want to get item at.
	{
	wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(x, y, z), NpcID, 1, false);
	System.Threading.Thread.Sleep(5000);
	wManager.Wow.Helpers.Vendor.BuyItem("Skinning Knife",1); // change Skinning Knife to what item you want. do not remove ""
	System.Threading.Thread.Sleep(5000); 
	}
	
	if (ItemsManager.HasItemById(3108)) // change 3108 to the item id
			{
				ItemsManager.UseItem(3108); // change 3108 to the item id
			}

 

Link to comment
Share on other sites

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...