PDA

View Full Version : Can Someone Help With This?



lucasgoes12345
06-15-2017, 03:26 PM
--Settings--
local MinAOL = 1


--[[Label Manager]]--
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
local func = loadstring(labelName)
if(func)then func()
end
end

--[[CheckSupplies]]--
function CheckStuff()
delayWalker(3000)
if(Self.ItemCount(3057) <= MinAOL)then
Self.Say({"!aol"},65)
wait(1000,2000)
gotoLabel("Temple To Hunt")
end
end

--[[EnoughSupplies]]--
function BackToHunt()
if(labelName == "BackToHunt") then
Walker.Stop()
if(Self.Position().z == 15) then
Walker.Goto("Hunt")
end
wait(1000)
Walker.Start()

- Its not working, What is wrong?

Trykon
06-15-2017, 04:07 PM
func is a string not a boolean... change if(func)then to if(func=="xxx")then where you have xxx put label name

lucasgoes12345
06-15-2017, 04:21 PM
--Settings--
local MinAOL = 1
local amuletId = 3057


--[[Label Manager]]--
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
local func = loadstring(labelName)
if(func)then func()
end
end

--[[CheckSupplies]]--
function CheckStuff()
delayWalker(3000)
if(Self.ItemCount(3057) <= MinAOL)then
Self.Say({"!aol"},1)
wait(1000,2000)
gotoLabel("Temple To Hunt")
end
end

--[[EnoughSupplies]]--
function BackToHunt()
if(Self.Position().z == 15)then
gotoLabel ("Hunt")
end


--[[LastOfFunctions]]--
Module.New("amulet-changer", function()
if (Self.Amulet().id ~= 3057)then
Self.Equip(3057, "amulet")
end
end)

I don't know what i'm doing :( , can u fix this script for me ? please

Trykon
06-15-2017, 05:08 PM
I don't know what i'm doing :( , can u fix this script for me ? please

this looks like only part of a script... it is not full script for sure

lucasgoes12345
06-15-2017, 05:17 PM
that's all :( i don't understand that much about scripts so I search on this forum and put parts that I found on this forum :( I just want a script to return to label "Hunt" if label is "BackToHunt" and the posZ is 15 and another that if the posz is 7 or is protect zone=pz say !aol if I don't have aol yet and then equip and when it equip the amulet the script will go to label "Temple To Hunt" :( i'm trying to figure out what's wrong for 4 days, but as I said I don't understand too much :(