Jump to content

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
https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54036
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
https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54037
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
https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54038
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
https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54039
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
https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54046
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...