Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if id == "aaa0ab9ed92f8fc614664bd1" then --Level Broadcast
- if msg == 1 then --Normal Levelup
- local pvar = GetPluginVariable( "aaa0ab9ed92f8fc614664bd1", "levelinfo" )
- -- get the info
- loadstring( pvar )()
- info = levelinfo
- tmsg = { "@GGained level @W"}
- table.insert (tmsg, info.newlevel)
- table.insert (tmsg, "@G! @W")
- table.insert (tmsg, info.pracs)
- table.insert (tmsg, " @Gpracs. @W")
- table.insert (tmsg, info.trains)
- if info.bonustrains ~= 0 then
- table.insert (tmsg, "@G+@W")
- table.insert (tmsg, info.bonustrains)
- end
- table.insert (tmsg, " @Gtrains. @W")
- table.insert (tmsg, info.hp)
- table.insert (tmsg, "@Ghp, @W")
- table.insert (tmsg, info.mp)
- table.insert (tmsg, "@Gmp, @W")
- table.insert (tmsg, info.mv)
- table.insert (tmsg, "@Gmv. @W")
- if info.str ~= 0 then
- table.insert (tmsg, info.str)
- table.insert (tmsg, " @Gstr. @W")
- end
- if info.int ~= 0 then
- table.insert (tmsg, info.int)
- table.insert (tmsg, " @Gint. @W")
- end
- if info.wis ~= 0 then
- table.insert (tmsg, info.wis)
- table.insert (tmsg, " @Gwis. @W")
- end
- if info.dex ~= 0 then
- table.insert (tmsg, info.dex)
- table.insert (tmsg, " @Gdex. @W")
- end
- if info.con ~= 0 then
- table.insert (tmsg, info.con)
- table.insert (tmsg, " @Gcon. @W")
- end
- if info.luc ~= 0 then
- table.insert (tmsg, info.luc)
- table.insert (tmsg, " @Gluc.@W")
- end
- end --Level
- end --Level Broadcast
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement