LUA, help needed with shrubbot XP, LVL commands


(mi$i3k:]) #1

Hi, is there an option to automatically change player’s shrubbot lvl (talking about noquarter lvls), depending on their XP? I did the whole script for it but i lack one function, function that will check player’s xp and change lvl according to their xp. Atm i have something like this for lvl change function:

function changeLevel( execID, id, lvl )
	text = "/!setlevel "..id.." "..lvl..""
	et.G_Say( execID, et.SAY_ALL, text ) 
end

but i think it wont work…

Thanks in Advance, mi$i3k:]


(stealth6) #2

On the nitmod forums they already created such a script:
http://www.etmods.net/nitmod/viewtopic.php?id=262