Jump to content

Buy item for quest


Miragex01
 Share

Recommended Posts

{
   wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(x, y, z), 11901, 2, false); // 2 is gosip with the 2nd option, 
   Thread.Sleep(10);
   Lua.LuaDoString<int>("BuyMerchantItem(ItemID, Amount#)"); 
}

 

Link to comment
Share on other sites

you can add conditions.

ObjectManager.Me.GetMoneyCopper == 0 // Copper amount
ObjectManager.Me.IsIndoors // inside

var zone = Lua.LuaDoString<string>("return GetZoneText()");
zone == "Stormwind City" // city / zone area

 

Link to comment
Share on other sites

4 minutes ago, The Smokie. said:

 

u speak me? he is interact npc and dont buy item because SELCT WINDOW THIS IS NPC
1.Make this inn your home
2.Let me browse your goods
3.What can i do at an inn?


if the NPC was the only vendor code worked

 

Link to comment
Share on other sites

2 minutes ago, The Smokie. said:

you can add conditions.

ObjectManager.Me.GetMoneyCopper == 0 // Copper amount
ObjectManager.Me.IsIndoors // inside

var zone = Lua.LuaDoString<string>("return GetZoneText()");
zone == "Stormwind City" // city / zone area

 

u dont speak my problem....
He is dont buy item because hi is npc = INKEEPER!!!!!

need code :

which after inrtecat will choose: 2.Let me browse your goods

Link to comment
Share on other sites

1 minute ago, The Smokie. said:

What patch you need for? 

what item you wanna buy?

 

WOTLK, u speak me??? NPC = INKEEPER, after intecat he is gives such a window.
Need choise "Let me browse you goods."

screen.png

Link to comment
Share on other sites

47 minutes ago, The Smokie. said:
wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(x, y, z), NPC, 2, false);
Lua.LuaDoString<int>("BuyMerchantItem(1, 1)");

This will work (Tested)

Thank you so much, very helpful

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...