help with automatic level lua


(twt_thunder) #1

so I found this piece of lua:

http://lua.wolffiles.de/?fileid=132

and I wondered if anyone got the brain to rewrite it so it works this way:

checks if player have been on server before, if he has he will gain one level.
but only up to level 3. The rest have to be done by admin the ordinary way.

server running etnam mod with lua…

anyone?


(Micha) #2

I’m working on a seen.lua right now. It isn’t working perfect (deletes ppl on next round).
Wouldn’t be a problem to make your lua if I get seen working.

EDIT I got seen database working. I will try to take a look at your wish in next days.
http://forums.warchest.com/showthread.php/38996-shrubbot-command-!seen


(twt_thunder) #3

[QUOTE=Micha;488279]I’m working on a seen.lua right now. It isn’t working perfect (deletes ppl on next round).
Wouldn’t be a problem to make your lua if I get seen working.

EDIT I got seen database working. I will try to take a look at your wish in next days.
http://forums.warchest.com/showthread.php/38996-shrubbot-command-!seen[/QUOTE]

thanx Micha :smiley:


(twt_thunder) #4

Getting anywhere on this Micha?


(Micha) #5

autosetlevel_thunder.zip (1.64 KB)

Ok I reworked the autosetlevel and made it like you wanted. You need to use my seen.lua because I made it use the same database ‘seen.cfg’.
set lua_modules “autosetlevel_thunder.lua seen.lua”

http://forums.warchest.com/showthread.php/38996-shrubbot-command-!seen

Just set
lvl4xp = 2000
lvl5xp = 4000
lvl6xp = 8000
to -999999 if you don’t want to use them.

People will get level 1 if they are in the seen database and have lower xp then lvl2xp


(twt_thunder) #6

cool, big thanx Micha! give me a shout if you need anything I can help with :smiley:


(twt_thunder) #7

cant seem to download it ? just getting php ****…