Kuhle
Sergeant
- Joined
- Nov 12, 2021
- RedCents
- 1,408¢
Here we go, creating a Lua with very little knowledge of Lua or Programing in general.
I think I've got the basic navigation down. easy enough.
my issue is making a target from a list. this is what I came up with.
The Merchant comes from a list that looks similar to this, but theres many parts depending on class and I think I may run into an issue in the future when I start to add merchants of a different location.
UL and LL are supposed to be user inputs that delineate the lower level and the upper level the user wants to search for.
I think I've got the basic navigation down. easy enough.
local function navigate()
mq.cmdf("/nav target")
--ok, so we are moving--
while mq.TLO.Navigation.Active() do
mq.delay(50)
end
mq.delay(50)
end
my issue is making a target from a list. this is what I came up with.
local function target(UL, LL)
mq.cmdf("/target Merchant.Name")
end
The Merchant comes from a list that looks similar to this, but theres many parts depending on class and I think I may run into an issue in the future when I start to add merchants of a different location.
local function ClassMerchantPOK(Class, LL, UL)
if Class == "WAR" then
local Merchant = {
{Name = "Heldin Swordbreaker", LL = 1, UL = 90}
}
end
end
UL and LL are supposed to be user inputs that delineate the lower level and the upper level the user wants to search for.
Last edited:





