This should be in requests, not support. However, I'll help you this time. You should also be adding what distro you use. I've made a script for TFS 1.x. It won't work for earlier versions.
Set the monster's exp to 0, then create a lua script in creaturescripts/scripts. enter this:
Code:
local function getExperienceForLevel(lv)
lv = lv - 1
return ((50 * lv * lv * lv) - (150 * lv * lv) + (400 * lv)) / 3
end
local levels = 3 -- number of levels to give
local monsters = {"Special Demon"} -- creatures that will give these levels
function onKill(creature, target)
local monster = Monster(target)
if not monster then
return true
end
local player = Player(creature)
if not player then
return true
end
for i = 1, #monsters do
if monster:getName():lower() == monsters[i]:lower() then
for j = 1, levels do
player:addExperience(getExperienceForLevel(player:getLevel() + 1))
end
end
end
return true
end
then in creaturescripts.xml, register it like this:
Code:
<event type="kill" name="ThreeLevels" script="YOUR_SCRIPT_NAME.lua" />
replace YOUR_SCRIPT_NAME with the name of the file you've chosen.
in creaturescripts/login.lua, at the bottom near the rest of the event registration, place this:
Code:
player:registerEvent("ThreeLevels")