local monster = "rat"
local lvl = 200
function onkill(cid,target)
if isPlayer(cid) and getCreatureName(target) == monster then
doSendAnimatedText(getThingPos(cid), getExperienceForLevel(lvl).."", TEXTCOLOR_WHITE)
doPlayerAddLevel(cid,lvl)
end
return true
end
what?mayby it's possible to do something with /addskills level...?
Where should i put this?here a simple way, make monster give 0 exp then go to make a on kill function that add the level.
Want that?[to make it more real , it will send exp on player as on killing monster normally ]
LUA:local monster = "rat" local lvl = 200 function onkill(cid,target) if isPlayer(cid) and getCreatureName(target) == monster then doSendAnimatedText(getThingPos(cid), getExperienceForLevel(lvl).."", TEXTCOLOR_WHITE) doPlayerAddLevel(cid,lvl) end return true end
<event type="kill" name="Monsterlvl" script="killmonster.lua"/>
registerCreatureEvent(cid, "Monsterlvl")
--Script by Damagerz
local monster = "rat" --Monster name, remember big and small letters
local lvl = 200 --How much level they will get
function onkill(cid,target)
if isPlayer(cid) and getCreatureName(target) == monster then
doSendAnimatedText(getThingPos(cid), getExperienceForLevel(lvl).."", TEXTCOLOR_WHITE)
doPlayerAddLevel(cid,lvl)
end
return true
end
<event type="kill" name="kill" event="script" value="xxxx.lua"/>
registerCreatureEvent(cid, "kill")