Hi I Have Got a Noob Error.that i can't seem to fix it
this is the error part
Please Help
Full Script
this is the error part
Lua:
local count = getMonsterInfo(getMonsterInfo(getCreatureByName("rotworm")).experience * 15)
Please Help
Full Script
Lua:
function onKill(cid, target, damage, flags)
local percent = 0.5
local exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
local count = math.floor(((getMonsterInfo("rotworm").experience*exp)*percent))
if isMonster(target) and isPlayer(cid) and getCreatureSkullType(target) == 2 then
doPlayerAddExperience(cid, count)
doPlayerSendCancel(cid,"You Have Got More "..count.."")
doSendMagicEffect(getPlayerPosition(cid), 14)
end
return true
end
Last edited: