- mcmonkey studios -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2014/09/06 10:32:19 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
4700
MainScoreBoard:
    type: task
    debug: false
    script:
      - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>Stats "obj:<&l>Ancient Realms" "lines:<&9>Players<&co>" Score:<server.list_online_players.size>
      - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>Stats "obj:<&l>Ancient Realms" "lines:<&9>McMMo-Lvl<&co>" Score:<player.mcmmo.level>
      - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>Stats "obj:<&l>Ancient Realms" "lines:<&9>Money<&co>" Score:<player.money.as_int>
      - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>Stats "obj:<&l>Ancient Realms" "lines:<&9>F-Land<&co>" Score:<player.faction.size>
      - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>Stats "obj:<&l>Ancient Realms" "lines:<&9>F-Power<&co>" Score:<player.faction.power.as_int>
      - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>Stats "obj:<&l>Ancient Realms" "lines:<&9>Players Joined<&co>" Score:<server.list_players.size>
      - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>Stats "obj:<&l>Ancient Realms" "lines:<&9>Online Hours<&co>" Score:<math.as_int:<player.flag[actualtime].as_int>/60>
      - if <player.is_online> {
        - ^run s@MainScoreBoard def:<player> delay:1s
        }
    
ScoreboardPlayerscript:
    type: world
    debug: false
    events:
      on player joins:
      - ^scoreboard remove id:<%1%.name.substring[1,9]>Stats
      - ^scoreboard remove id:<%1%.name.substring[1,9]>XP
      - ^run s@MainScoreBoard def:<player> delay:1s
      on player kills entity:
      - run s@OnHitScoreboard def:<context.damager> delay:1s

    
OnHitScoreboard:
    type: task
    debug: false
    script:
    - flag Onhitscoreboard:active
    - if <player.flag[mainscoreboard]> == active {
       - ^scoreboard remove id:<%1%.name.substring[1,9]>Stats
       - flag mainscoreboard:!
       }
    - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>XP "obj:<bold>Ancient Realms" "lines:<&9>Xp<&co>" Score:<player.flag[xp].as_int>
    - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>XP "obj:<bold>Ancient Realms" "lines:<&9>Xp till next Lvl<&co>" Score:<math.as_int:<player.flag[XP]>-<player.flag[nextlevel]>>
    - ^scoreboard viewers:%1% id:<%1%.name.substring[1,9]>XP "obj:<bold>Ancient Realms" "lines:<&9>Level<&co>" Score:<player.flag[xplevel].as_int>
    - wait 15
    - if <player.flag[Onhitscoreboard]> == active {
       - ^scoreboard remove id:<%1%.name.substring[1,9]>XP
       - flag Onhitscoreboard:!
       }
    - ^run s@MainScoreBoard def:<player> 
  



RawRaw



Pastes made: 52680