Zonet
Web Developer
bump
-- Script by slawkens, modified by Zonet
local monsters = {
['dragon'] = 9541,
['dragon lord'] = 9542,
['frost dragon'] = 9543,
['wyrm'] = 9544,
['demon'] = 9545
}
function onKill(cid, target, lastHit)
local monster = monsters[getCreatureName(target):lower()]
if lastHit and not isPlayer(target) and monster then
local killedMonsters = math.max(0, getPlayerStorageValue(cid, monster)) + 1
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'You killed ' .. killedMonsters .. ' ' .. name .. 's.')
setPlayerStorageValue(cid, monster, killedMonsters)
end
return true
end
Kavvson is going to recode this for ModernAAC.
[10:14:22.061] [Error - CreatureScript Interface]
[10:14:22.061] data/creaturescripts/scripts/count.luanKill
[10:14:22.061] Description:
[10:14:22.061] data/creaturescripts/scripts/count.lua:15: attempt to compare string with number
[10:14:22.061] stack traceback:
[10:14:22.061] data/creaturescripts/scripts/count.lua:15: in function <data/creaturescripts/scripts/count.lua:9>
bumpI get this on my page..
I am using gesior 2012 for tfs 1.0View attachment 25600
I get this on my page..
I am using gesior 2012 for tfs 1.0View attachment 25600