August 30, 20169 yr Hello, today, i noticed a weird way the bot pickup daily quest. Some npc let the player choose between 3 or 4 daily quest, only one can be pick up. The thing is, whenever the bot have to choose a specific quest (with id) on thoses npcs, he don't always take the good one. The quest i tried to pick: The id's are correct (14074) The quest the bot pick: This is not the id i choose (14152) I don't know if it's a bug or if i miss something.
August 30, 20169 yr the problem is bot can't tell which one of the pickup quests is right one so it tries to pickup first quest on first try. If it fails it trys to pick the 2nd one and so on
August 30, 20169 yr Author 1 minute ago, BetterSister said: the problem is bot can't tell which one of the pickup quests is right one so it tries to pickup first quest on first try. If it fails it trys to pick the 2nd one and so on Yea but, if he pick the wrong quest, the other quest (and the good one) will not be possible for pickup while the wrong quest is pick. Is there a way to tell the bot "Choose the 3rd quest" or something like that ?
August 30, 20169 yr Author Just now, BetterSister said: Is the correct quest 3rd always? Not on all the npcs
August 30, 20169 yr if there is even little bit randomness on each NPC it is hard to script but it is possible. It is easy to tell the bot to interact with NPC and take the X option
August 30, 20169 yr Author 1 minute ago, BetterSister said: if there is even little bit randomness on each NPC it is hard to script but it is possible. It is easy to tell the bot to interact with NPC and take the X option Do you know if it's possible to interact with npc and choose a specific options with a RunCode step ?
August 30, 20169 yr yes as long as it is always the same option on same npc. I'll look into it in a moment i'm currently trying to script a quest that Droidz just uploaded compatibility update for
August 30, 20169 yr Author I will do some research on my side, tell me if your find anything ! And thanks a lot for your help !
August 30, 20169 yr Alright finished the quest... Damn it was hard to script after all but it's done I'll look into the daily now
August 30, 20169 yr Author Well, i have some good news if that interest you ! It's possible to select daily quest with macro, so in my case i use: RunMacroText("/script SelectGossipAvailableQuest(1)") RunMacroText("/run AcceptQuest()") The last thing i need to find, is a way to make the bot click on a specific npc with a RunCode step ! the interactWithNpc quest type does not work without quest id and it cannot use "/run" macro.
August 30, 20169 yr Okay lets try this: Add quest order action type While with code !Quest.HasQuest(14074) then add under it RunCode with this in it: Vector3 narasiloc = new Vector3(32.222, 33.2225, -5.22244f); wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(narasiloc, 4561, 3, false); Lua.RunMacroText("/run AcceptQuest()"); (Change the coordinates to correct one otherwise it should be correct. You can get NPC coords from helper tools -> Target NPC info) after this all add EndWhile it should look like this:
August 30, 20169 yr Author It dosen't work, the bot move itself and go on the npc but it does not interact with it
August 30, 20169 yr Author Okay, it work ! i just add a macro line because it seems to not work without. Here is the full working code for the futurs Vector3 narasiloc = new Vector3(8606.03f, 661.006f, 550.327f); wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(narasiloc, 34880, 3, false); Lua.RunMacroText("/script SelectGossipAvailableQuest(1)"); Lua.RunMacroText("/run AcceptQuest()"); can you just tell me what is the "3" between the id and "false" ? i thought it was the same thing has "SelectGossip" but it wasn't doing anything so i'm intrigue working test file: test.xml
Create an account or sign in to comment