Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sorcerer

Members
  • Joined

  • Last visited

Posts posted by Sorcerer

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

  2. 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! ?

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

     

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

    mg0qwZc.png

    lVOZgWY.png

    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);
        }
    }

     

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

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

     

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.