Jump to content

Sorcerer

Members
  • Posts

    13
  • Joined

  • Last visited

Sorcerer's Achievements

  1. I'm having the exact same problem, the bot keeps blacklisting schools of fish. It runs along coastline, skipping some schools (and marks them red aka blacklist) while it fishes a few other ones. Any way to fix it? Why is it even happening?
  2. Thank you! This is exactly what I was looking to forwards ? . I took the npc coordinates and npc entry - I'm 100% sure this info is correct! When I launch bot, there is no error -- but still no moving to the npc / interacting which is the main issue. QuestType: OverridePulseCSharpCode Quest Order: ActionType: Pulse if(wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(4895.55, -2842.65 , 1442.897), 25024, 1)) // vectors of the npc, npc ID, Gossip { Vendor.BuyItem(ItemsManager.GetNameById(21215), 1); } return true; I got a error with Tool.BuyItem for some reason so I tried using the buy code from the other thread InteractWithNPC.xml
  3. Nothing wrong in using lua, if I get the food in my inventory then Tool.HasItem will find it regardless of the method I'm using to obtain it, and I think it's a very good method to obtain the item. I mean the C# for HasItem is even using lua to return item amount. The problem I'm having has nothing to do with this at all ? the bot is not even approaching the NPC to interact. The condition for NPC interaction is this: return Tool.HasItem("Graccu's Mince Meat Fruitcake") < 0; Naturally, a newly made character will fill this condition as it has none of that food. I don't understand why is the bot not moving to interact with the NPC? --- itemCount() is my own custom function, it returns how many of particular item I have in my bag. As I said, everything works flawlessly, I am not new to using LUA or making LUA functions for WoW ? -- I want to clear some confusion, my addon has Nothing to do with WRobot. It just buys me food when I right click (interact) with the NPC, the addon does this regardless whether I have WRobot running or not. It works 100% fine. All I want WRobot to do, is to right click (interact) with the NPC. When I don't have food in my inventory, which return I am trying to get with Tool.HasItem - that's really all! ?
  4. I'm just using SuperMacro (this is in my extend file) and have buying the food evented like so, works every time when I right click the vendor and I don't have food on me: BOTNET:RegisterEvent("MERCHANT_SHOW") function BOTNET:OnEvent() if event == "MERCHANT_SHOW" then if itemCount("Graccu's Mince Meat Fruitcake") < 1 and ((UnitName("target") == "Food Vendor")) then BuyMerchantItem(1,200); end end end BOTNET:SetScript("OnEvent", BOTNET.OnEvent)
  5. Thanks for trying to help, I did not figure it out!!! Basically I'm trying to right click on npc vendors (they are custom npcs in our private server) InteractWithNpcs.xml
  6. So like I did it was correct, simple, nothing complex there. Strange, my bot is not moving to interact with the npc what could I possibly be missing? Hmm ? maybe the Pulse part is my issue here, gonna look into that
  7. Oh yeah, I had 2 missing semicolons -- got that sorted Now I'm confused, the correct way to return is actually this? I'm getting no error if I added it like this: return Tool.HasItem("Graccu's Mince Meat Fruitcake") > 0; But I'm getting error when I add it like this: Tool.HasItem("Graccu's Mince Meat Fruitcake") > 0;
  8. I basically want to interact with custom NPC, as first quest. And my LUA code running from addon folder will take care of buying the item. But I want to tell the bot when the "quest" is complete! checking for the item with this (not sure if this is correct honestly): Tool.HasItem("Graccu's Mince Meat Fruitcake") > 0 Tool.HasItem("Graccu's Mince Meat Fruitcake") < 1 I can't get it to work, actually I get an error when launching This is precisely what I pasted into Custom Script: public class Tool { public static int HasItem(string itemName) { var execute = "local itemCount = 0; " + "for b=0,4 do " + "if GetBagName(b) then " + "for s=1, GetContainerNumSlots(b) do " + "local itemLink = GetContainerItemLink(b, s) " + "if itemLink then " + "local _, stackCount = GetContainerItemInfo(b, s)\t " + "if string.find(itemLink, \"" + itemName + "\") then " + "itemCount = itemCount + stackCount; " + "end " + "end " + "end " + "end " + "end; " + "return itemCount; "; return Lua.LuaDoString<int>(execute); } }
  9. How can I even use these snippets? I can't figure out where to paste all of it as a whole, to be able to call these statements etc. I want to use for example HasItem as an "Can condition" and "Is Complete condition" in the Easy Quests Editor
  10. Problem solved: I'm stupid (ofc :D) I had entered wrong character name, 1 letter was wrong in the end. This is why bot didn't enter world. Now it's working normally!
  11. Still having this problem, bot farmed nothing the entire night. It might be related to relogger, I don't really know. It selects the character (I only use 1 character per acc) and just does nothing, not pressing Enter World button! So it keeps restarting the client over and over and over after waiting. If I press the Enter World by myself, then everything works... but I can't be pressing this for my bot all day lol!!! Any help? What should I do
  12. For some reason the server kicks me if I log in and wait in character list for 5 seconds. WRobot is not pressing "Enter World" but just keeps waiting, if I press it manually it enters world and loads rest of the bot. How can I solve it? Thank you
  13. I'm not sure what am I doing wrong? I just want to cast Cat Form when I enter combat, but nothing is happening. Please help! Here is my FightClass.xml <?xml version="1.0" encoding="utf-8"?> <FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <FightClassGeneralSettings> <FightClassName>Druid</FightClassName> </FightClassGeneralSettings> <FightClassSpells> <FightClassSpell> <FightClassConditions> <FightClassCondition> <ContionType>HaveTarget</ContionType> <Param xsi:type="FightClassConditionBool"> <Value>true</Value> </Param> </FightClassCondition> </FightClassConditions> <SpellName>Cat Form</SpellName> <Priority>1</Priority> <IsBuff>true</IsBuff> <CanMoveDuringCast>Yes</CanMoveDuringCast> </FightClassSpell> </FightClassSpells> </FightClass>
×
×
  • Create New...