Miragex01 0 Posted May 26, 2019 Share Posted May 26, 2019 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 https://wrobot.eu/forums/topic/11308-buy-item-for-quest/ Share on other sites More sharing options...
TheSmokie 242 Posted May 26, 2019 Share Posted May 26, 2019 Link to comment https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54033 Share on other sites More sharing options...
Miragex01 0 Posted May 26, 2019 Author Share Posted May 26, 2019 1 minute ago, The Smokie. said: thanks, but, there is no solution to my problem, he comes into the choice of dialogue and nothing -_- Link to comment https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54035 Share on other sites More sharing options...
TheSmokie 242 Posted May 26, 2019 Share Posted May 26, 2019 { 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 More sharing options...
TheSmokie 242 Posted May 26, 2019 Share Posted May 26, 2019 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 More sharing options...
Miragex01 0 Posted May 26, 2019 Author Share Posted May 26, 2019 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 More sharing options...
Miragex01 0 Posted May 26, 2019 Author Share Posted May 26, 2019 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 More sharing options...
TheSmokie 242 Posted May 26, 2019 Share Posted May 26, 2019 updated the code up ? Link to comment https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54040 Share on other sites More sharing options...
Miragex01 0 Posted May 26, 2019 Author Share Posted May 26, 2019 1 minute ago, The Smokie. said: updated the code up ? sorry in my situation, your code does not work as I need Link to comment https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54041 Share on other sites More sharing options...
TheSmokie 242 Posted May 26, 2019 Share Posted May 26, 2019 What patch you need for? what item you wanna buy? Link to comment https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54042 Share on other sites More sharing options...
Miragex01 0 Posted May 26, 2019 Author Share Posted May 26, 2019 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." Link to comment https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54043 Share on other sites More sharing options...
TheSmokie 242 Posted May 26, 2019 Share Posted May 26, 2019 wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(x, y, z), NPC, 2, false); Lua.LuaDoString<int>("BuyMerchantItem(1, 1)"); This will work (Tested) Miragex01 1 Link to comment https://wrobot.eu/forums/topic/11308-buy-item-for-quest/#findComment-54044 Share on other sites More sharing options...
Miragex01 0 Posted May 26, 2019 Author Share Posted May 26, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now