Is it possible to add at this script reborn stages instead of level stages? Im using tfs 0.4 and storage 85987 for reborn ^^ here the script
Lua:
local monsters = {}
monsters["rotworm"] = 1000000000
monsters["cyclops"] = 800000000
monsters["dragon"] = 2400000000
monsters["dragon lord"] = 3000000000
monsters["frost dragon"] = 10000000000
monsters["hydra"] = 12000000000
monsters["bear"] = 102000000000
local exp = {
[0.9] = {min = 1,max = 1200000},
[0.8] = {min = 1200001,max = 2000000},
[0.7] = {min = 1600001,max = 3100000},
}
function onKill(cid, target, damage, flags)
local lvl = monsters[string.lower(getCreatureName(target))]
if isMonster(target) and lvl ~= nil then
for i,v in pairs(exp) do
if not exhaustion.check(cid, 9023) then
if getPlayerLevel(cid) >= v.min and getPlayerLevel(cid) < v.max then
doSendAnimatedText(getThingPos(cid), ""..i*lvl.."", TEXTCOLOR_WHITE)
doPlayerAddExp(cid, math.floor(i * lvl))
end
else
if getPlayerLevel(cid) >= v.min and getPlayerLevel(cid) < v.max then
local extra = (i * lvl) * 0.10
doSendAnimatedText(getThingPos(cid), ""..math.floor((i*lvl) + extra).."", TEXTCOLOR_WHITE)
doPlayerAddExp(cid, math.floor((i * lvl) + extra))
end
end
end
end
return true
end