Paste #68536: Untitled Paste

Date: 2020/05/03 15:42:24 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


open_statsbook:
    type: world
    events:
        on player right clicks with stats_book:
        - define nextmagic <server.flag[magiclevels].get_sub_items[1].get[<player.flag[magiclvl]>]>
        - define setmagic "<item[magic].with[lore=<&5>Level: <&f><player.flag[magiclvl]> / <&5>XP: <&f><player.flag[magicxp]><&5> <&f>/ <&5>Next: <&f><[nextmagic]><&pipe><&5>Max Range: <&f><player.flag[magiclvl].add[5]>]>"
        - define nexthitpoints <server.flag[hitpointlevels].get_sub_items[1].get[<player.flag[hitpointslvl]>]>
        - define sethitpoints "<item[hitpoints].with[lore=<&5>Level: <&f><player.flag[hitpointslvl]> / <&5>XP: <&f><player.flag[hitpointsxp]><&5> <&f>/ <&5>Next: <&f><[nexthitpoints]>]>"
        - define stats <inventory[stats_gui]>
        - adjust <[stats]> "title:<&7><&l>Stats: Combat Level <player.flag[combatlvl]>"
        - inventory set d:<[stats]> o:<[sethitpoints]> slot:1
        - inventory set d:<[stats]> o:<[setmagic]> slot:2
        - inventory open d:<[stats]>
        on player drags in stats_gui:
        - determine cancelled
        on player clicks in stats_gui:
        - determine cancelled