Potions heal kinda slow...How to fix that?
local ultimateHealthPot = 8473
local greatHealthPot = 7591
local greatManaPot = 7590
local greatSpiritPot = 8472
local strongHealthPot = 7588
local strongManaPot = 7589
local healthPot = 7618
local manaPot = 7620
local smallHealthPot = 8704
local antidotePot = 8474
local greatEmptyPot = 7635
local strongEmptyPot = 7634
local emptyPot = 7636
local antidote = Combat()
antidote:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
antidote:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
antidote:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
antidote:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
antidote:setParameter(COMBAT_PARAM_DISPEL, CONDITION_POISON)
local exhaust = Condition(CONDITION_EXHAUST_HEAL)
exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 1000))
-- 1000 - 100 due to exact condition timing. -100 doesn't hurt us, and players don't have reminding ~50ms exhaustion.
ninja fixed it also! make sure that you have the latest filenice it works anyone have a fix for the avar tar? he will not give addons
I can't reproduce this issue. Make sure your files are up-to-date.why will the kills not be counted on killing in the name of? no kills are counted.
which file counts the kills is it kills.lua?I can't reproduce this issue. Make sure your files are up-to-date.
Yeswhich file counts the kills is it kills.lua?
function onKill(cid, target, lastHit)
local targetCreature = Creature(target)
if targetCreature:isPlayer() or targetCreature:getMaster() then
return true
end
local player, targetName = Player(cid), targetCreature:getName():lower()
for _, taskId in ipairs(player:getStartedTasks()) do
if isInArray(tasks[taskId].creatures, targetName) then
local killAmount = player:getStorageValue(KILLSSTORAGE_BASE + taskId)
if killAmount < tasks[taskId].killsRequired then
player:setStorageValue(KILLSSTORAGE_BASE + taskId, killAmount + 1)
end
end
end
return true
end
i cant start the server, error with mysql, how can i solve that?
Seriously people, this type of questions is not be asked here.
@Topic
I'm writting a new library to Paw Fur Quest, there is anyone want to help me with that? Its mostly about configuration and bosses.