• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Lua help with creaturescript please

GOD Wille

Excellent OT User
Joined
Jan 11, 2010
Messages
2,826
Solutions
2
Reaction score
815
Location
Sweden
Creature scripts, this aiint working please fix it, i want it to make you advance in 100 lvls each kill of the "monster" Im using tfs 0.3.6

Code:
--Script by Damagerz
local monster = "Exp Bug" --Monster name, remember big and small letters
local lvl = 100 --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="Monsterlvl" script="killmonster.lua"/>
 
Lua:
--Script by Damagerz
local monster = 'Exp Bug'
local lvl = 100

function onKill(cid, target)
	if isPlayer(target) and getCreatureName(target):lower() == monster:lower() then
		doSendAnimatedText(getThingPos(cid), getExperienceForLevel(lvl) - getPlayerExperience(cid), 215)
		doPlayerAddLevel(cid, lvl)
	end
	return true
end
 
that will only work if you attack the monsters in battle list if you kill the monster with spell i think the script will not work.
 
Back
Top