Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.65 KB | None | 0 0
  1.   if id == "aaa0ab9ed92f8fc614664bd1" then --Level Broadcast
  2.     if msg == 1 then --Normal Levelup
  3.       local pvar = GetPluginVariable(  "aaa0ab9ed92f8fc614664bd1", "levelinfo" )
  4.  
  5.       -- get the info
  6.       loadstring( pvar )()
  7.       info = levelinfo
  8.  
  9.  
  10.       tmsg = { "@GGained level @W"}
  11.       table.insert (tmsg, info.newlevel)
  12.       table.insert (tmsg, "@G!  @W")
  13.       table.insert (tmsg, info.pracs)
  14.       table.insert (tmsg, " @Gpracs.  @W")
  15.       table.insert (tmsg, info.trains)
  16.       if info.bonustrains ~= 0 then
  17.         table.insert (tmsg, "@G+@W")
  18.         table.insert (tmsg, info.bonustrains)
  19.       end
  20.       table.insert (tmsg, " @Gtrains.  @W")
  21.       table.insert (tmsg, info.hp)
  22.       table.insert (tmsg, "@Ghp, @W")
  23.       table.insert (tmsg, info.mp)
  24.       table.insert (tmsg, "@Gmp, @W")
  25.       table.insert (tmsg, info.mv)
  26.       table.insert (tmsg, "@Gmv.  @W")
  27.       if info.str ~= 0 then
  28.         table.insert (tmsg, info.str)
  29.         table.insert (tmsg, " @Gstr.  @W")
  30.       end
  31.       if info.int ~= 0 then
  32.         table.insert (tmsg, info.int)
  33.         table.insert (tmsg, " @Gint.  @W")
  34.       end
  35.       if info.wis ~= 0 then
  36.         table.insert (tmsg, info.wis)
  37.         table.insert (tmsg, " @Gwis.  @W")
  38.       end
  39.       if info.dex ~= 0 then
  40.         table.insert (tmsg, info.dex)
  41.         table.insert (tmsg, " @Gdex.  @W")
  42.       end
  43.       if info.con ~= 0 then
  44.         table.insert (tmsg, info.con)
  45.         table.insert (tmsg, " @Gcon.  @W")
  46.       end
  47.       if info.luc ~= 0 then
  48.         table.insert (tmsg, info.luc)
  49.         table.insert (tmsg, " @Gluc.@W")
  50.       end
  51.  
  52.     end  --Level
  53.   end  --Level Broadcast
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement