Paste #29439: Untitled Paste

Date: 2016/01/31 20:21:33 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


Item_Determine_Price:
  type: procedure
  debug: false
  definitions: basePrice|playerDiscount
  script:
  - if <def[basePrice].exists> {
    - determine <def[basePrice].mul[<el@1.sub[<def[playerDiscount].div[100]>]>]>
    }
    else {
    - flag <player> hasError:"Unknown esteem level."
    - determine cancelled
    }