Thread Rating:
  • 6 Vote(s) - 3.17 Average
  • 1
  • 2
  • 3
  • 4
  • 5
First LUA help
#2
(07-28-2017, 12:01 AM)taffyapple Wrote:  I'm writing my first lua and learning by doing. It's going to be for gathering common materials I use when crafting. The idea is that it will go to one spot, get x amount and then move onto the next. 

So I have a couple of questions. 

1) Is there a way I can make it so when its counting what I've collected, it only counts HQ versions?

2) How do I add an end profile that means that once its done, it'll teleport me somewhere safe (ideally my FC estate)?

Hello Taffy,

I am not sure if you can count HQ items only. But you could just set a command to count the regular item and use the skill profile for HQ items. With a little trial and error, you could figure out exactly how many you need to gather before moving on. Example: by the time you obtain 500 regular ore,you would have maybe 150 HQ? 

The LUA code automatically moves onto the next numerical task after the current task is completed. They do not have to be in perfect order - it goes from least to greatest, notice how mine goes from #28 to #99.

I have linked some code below, after 1000 iron ore are obtained - the bot goes back to uldah and sits there. All you need to teleport somewhere safe and just sit there is a map ID and some coordinates that you get from the dev tools in game using ffxivminion. See below.

[28] = {  --Iron Ore 
["type"] = "mining";
["timeout"] = 2500;
["radius"] = 100;
["minlevel"] = 1;
["maxlevel"] = 70; 
["item1"] = "Iron Ore";
["mapid"] = 140;
["pos"] =  { 
["x"] = 292.831;
["y"] = 63.072;
                ["z"] = -250.353;
};
["condition"] = {
["ItemCount(5111) < 1000"] = true;
};
["complete"] = {
["ItemCount(5111) >= 1000"] = true;
    };
};

    [99] = { -- Go back to town and AFK
["mapid"] = 131;
["pos"] =  { 
["x"] = 148.893;
["y"] = 4.000;
    ["z"] = -42.073;
    };
};
    };
}
Reply
 


Messages In This Thread
First LUA help - by taffyapple - 07-28-2017, 12:01 AM
RE: First LUA help - by punkerdunkerz - 12-22-2017, 04:54 PM
RE: First LUA help - by Mamoth - 12-25-2017, 01:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products