Jump to content

Buy item for quest


Miragex01

Recommended Posts

 

How to talk to Inkeeper to buy an item from me?
He has:
1.Make this inn your home
2.Let me browse your goods
3.What can i do at an inn?
 

How to choose 2? and after buy the item

Link to comment
Share on other sites

{
   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

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