Paste #16665: Script re-paste from http://hastebin.com/ikafugedig.xml

Date: 2015/06/20 03:18:12 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
18
19
20


InfluenceListen:
  type: world
  events:
    on player join:
    - while true {
      - define oldMoney <player.money>
      - wait 30s
      - define newMoney <player.money>
      - if <def[oldMoney]> >= <def[newMoney]> {
        - flag <player> playerMoney:+:<def[oldMoney].min[<def[newMoney]>]>
        #- announce "t<player.flag[playerMoney]>"
        - run CalcMoneyInfluence
        #- narrate "t<player.flag[playerMoney]>"
        } else {
        - flag <player> playerMoney:+:<def[newMoney].min[<def[oldMoney]>]> 
        #- announce "t<player.flag[playerMoney]>"
        - run CalcMoneyInfluence
        #- narrate "t<player.flag[playerMoney]>"
        }
      }