Post a screenshot of your waypoints.
Printable View
The function gotolabel has the following params:
gotolabel ( string labelname , optional string waypointsection)
So, you should use it as:
gotolabel('indo', 'Task')
What i need to make this work?, i added this action to scripter / persistent:
init start
-- local SCRIPT_VERSION = '1.1.1'
-- If set to true, will save kill count to $chardb so that it is persisted
-- throughout different sessions.
local saveToDB = true
-- DO NOT EDIT BELOW THIS LINE --
-- We don't want to override the object because that'd delete all data in
-- killCount.creatures
if killCount == nil then
killCount = {
creatures = {},
lastRan = $timems
}
killCount.set = function(count, ...)
local names = table.each({...}, string.lower)
for _, v in ipairs(names) do
killCount.creatures[v] = count
if killCount.saveToDB then
$chardb:setvalue('killCount', v, count)
end
end
end
killCount.add = function(addAmount, ...)
local names = table.each({...}, string.lower)
for _, v in ipairs(names) do
killCount.set(killCount.get(v) + addAmount, v)
end
end
killCount.reset = function(...)
killCount.set(0, ...)
end
killCount.get = function(...)
local names = table.each({...}, string.lower)
local count = 0
for _, v in ipairs(names) do
local cCount = killCount.creatures[v]
if cCount == nil then
cCount = 0
killCount.set(cCount, v)
end
count = count + cCount
end
return count
end
if saveToDB then
-- Thanks to [MENTION=1]Lucas Terra[/MENTION] for implementing database iterators for the
-- sole purpose of making this script better. Lucas, you rock!
foreach $chardb:sectionvalue v 'killCount' do
killCount.set(v.value, v.name)
end
end
end
-- We only set saveToDB now because else it would cause unnecessary updates
-- queried to the database when we first read it.
killCount.saveToDB = saveToDB
init end
auto(100)
foreach newmessage m do
if m.type == MSG_INFO then
local creature = m.content:match(REGEX_LOOT)
if creature then
killCount.add(1, creature)
end
end
end
-- You're welcome, Leonardo
killCount.lastRan = $timems
And added this action to leave from respawn to city:
if killCount.get('Hydra') >= 650 then
gotolabel("Leave", 'BackToCity')
end
And this to reset hydras after killing the boss, but didn't work, what am i missing? do i need to add something else?:
npctalk('hi', 'task', 'task', 'hydra', 'yes')
killCount.reset('Hydra')
Well i added this action at an "x" waypoint at my hunt waypoints and the char didn't leaved the cave, also when i was at dp before going to resp i added the action again as a checker to go to grizzly adams in case it needs to, and didn't work, my char had 680 hydras killed and didn't get the action i mean he didn't go to grizzly adams because it didn't recognized the 650 hydras
if killCount.get('Hydra') >= 650 then
gotolabel("Leave", 'BackToCity')
end
if killCount.get('Hydra') >= 650 then
gotolabel("Grizzly", 'ToHunt')
end