Paste #31929: Untitled Paste

Date: 2016/03/24 17:09:32 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"NPC_ORACLE":
    type: assignment

    interact scripts:
    - 100 ORACLE_1

    actions:
        on assignment:
        - trigger name:click toggle:true radius:4
        - trigger name:proximity radius:5 toggle:true

"ORACLE_1":
  type: interact
  Requirements:
    Mode: 
    List:

  steps:
    1:
      proximity trigger:
        entry:
          script:
          - if <player.flag[NPC_ORACLE_2]> == prox_trigger_menu_open {
            - queue clear
          }
          - flag <player> NPC_ORACLE_2:prox_trigger_menu_open duration:10
          - title 'title:<&b><&l><&o>ORACLE' 'subtitle:<&f>For the killer in us all.' fade_in:.1s stay:.6s fade_out:.6s
          - playeffect effect:FIREWORKS_SPARK qty:25
          - random 4
          - narrate "<npc.name> <&e><&o>Looks like you could use an upgrade in the weapons department."
          - narrate "<npc.name> <&e><&o>Would you like to see my combat weapons selection?"
          - narrate "<npc.name> <&e><&o>How about a new fancy wand?... or some potions, fresh from the cauldron?"
          - narrate "<npc.name> <&e><&o>Seeking revenge on anyone?... Allow me to help."

      click trigger:
        script:
        - title 'title:<&b><&l><&o>ORACLE' 'subtitle:<&f>For the killer in us all.' fade_in:.1s stay:.6s fade_out:.6s
        - playeffect effect:FIREWORKS_SPARK qty:25
        - inventory open d:in@ORACLE_MENU_lvl0




ORACLE_Opt_0:
    type: item
    display name: " "
    material: 102
    lore:
        - " "

ORACLE_Opt_off:
    type: item
    display name: "<&c><&l>OFFLINE"
    material: barrier
    lore:
        - "<&7>SORRY!"

ORACLE_Opt_1:
    type: item
    display name: "<&3><&l>Hot-Bow"
    material: 261
    lore:
        - "<&7>Flaming arrows at lightning"
        - "<&7>speed, with deadly accuracy."
        - "<&f>Price: <&a>$1500"
        - "<&8>ORACLE WEAPONRY"

ORACLE_Opt_3:
    type: item
    display name: "<&e><&l>Swordsman"
    material: 267
    lore:
        - "<&7>A regular sword kit."
        - "<&f>Standard for all members."  

ORACLE_Opt_2:
    type: item
    display name: "<&3><&l>Wiz-Wand"
    material: 369
    lore:
        - "<&7>Flaming arrows at lightning"
        - "<&7>speed, with deadly accuracy."
        - "<&f>Price: <&a>$1350"
        - "<&8>ORACLE WEAPONRY"   

ORACLE_Opt_4:
    type: item
    display name: "<&c><&l>Dark Curse"
    material: 272
    lore:
        - "<&7>Magic Sword"
        - "<&7>On special, vanish..."  
        - "<&7>and spawn an undead"  
        - "<&7>to do your bidding."  
        - "<&f>Unlock with 15 killstreak." 

ORACLE_Opt_5:
    type: item
    display name: "<&7><&l>Wiltration"
    material: 261
    lore:
        - "<&7>Magic Bow"
        - "<&7>Watch as your victims."  
        - "<&7>wither away into nothing."  
        - "<&f>Unlock with 20 killstreak." 

ORACLE_Opt_6:
    type: item
    display name: "<&7><&l>Wiltration"
    material: 261
    lore:
        - "<&7>Magic Bow"
        - "<&7>Watch as your victims."  
        - "<&7>wither away into nothing."  
        - "<&f>Unlock with 20 killstreak." 




ORACLE_MENU_lvl0:
    type: inventory
    title: <&3><&l><&o>ORACLE <&c><&l><&o>WEAPONRY
    size: 27
    slots:
        - "[i@W_HOTBOW] [i@W_WIZWAND] [i@W_FORCEFIELD] [i@W_DARKCURSE] [i@W_WILTRATION] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0]"
        - "[i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0]"
        - "[i@T_Capture_Wand] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0] [i@ORACLE_Opt_0]"     


"ORACLETester0001":
  type: task
  script:
  - if <player.flag[antispam01]> {
    - inventory open d:in@MENU_ORACLE_Opt
    } 
    - flag <player> antispam01 duration:1
  - if <player.location.is_within[<cu@startbox>]> {
    - random 2
    - narrate "You must make a selection from the menu."
    - narrate "<&e>You must make a selection from the menu."
    - playeffect effect:LARGE_SMOKE qty:10
    }

"ORACLETester0002":
  type: task
  script:
  - while <player.location.is_within[<cu@startbox>]> {
    #- inventory open d:in@MENU_ORACLE_Opt
    - playeffect effect:LARGE_SMOKE qty:50
    - wait 1
    }

ORACLE_WORLD_SCRIPTS:
    type: world
    events:            

        on player clicks in ORACLE_MENU_lvl0:
          - if <context.slot> == 1 {
            - if <player.money.is[LESS].to[1500]> {
              - narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
              - inventory close
              - queue clear                    
            } 
            - take money qty:1500
            - execute as_op "ex give W_HOTBOW"
            - title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
            - narrate "<&a><&l>$ $ $   TRANSACTION COMPLETE    $ $ $."
            - inventory close
            - execute as_op "bal"
          }
          else if <context.slot> == 2 {
            - if <player.money.is[LESS].to[1350]> {
              - narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
              - inventory close
              - queue clear                    
            } 
            - take money qty:1350
            - execute as_op "shot give <player.name> Event"
            - execute as_op "i redstone 32"            
            - title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
            - narrate "<&a><&l>$ $ $   TRANSACTION COMPLETE    $ $ $."
            - inventory close
            - execute as_op "bal"

          }
          else if <context.slot> == 19 {
            - if <player.money.is[LESS].to[1000]> {
              - narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
              - inventory close
              - queue clear                    
            } 
            - take money qty:1000
            - give i@T_Capture_Wand
            - title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
            - narrate "<&a><&l>$ $ $   TRANSACTION COMPLETE    $ $ $."
            - inventory close
            - execute as_op "bal"

          }
          else if <context.slot> == 3 {
            - if <player.money.is[LESS].to[45000]> {
              - narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
              - inventory close
              - queue clear                    
            } 
            - take money qty:45000
            - give i@W_FORCEFIELD
            - title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
            - narrate "<&a><&l>$ $ $   TRANSACTION COMPLETE    $ $ $."
            - inventory close
            - execute as_op "bal"

          }
          else if <context.slot> == 4 {
            - if <player.money.is[LESS].to[39000]> {
              - narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
              - inventory close
              - queue clear                    
            } 
            - take money qty:39000
            - give i@W_DARKCURSE
            - title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
            - narrate "<&a><&l>$ $ $   TRANSACTION COMPLETE    $ $ $."
            - inventory close
            - execute as_op "bal"

          }
          else if <context.slot> == 5 {
            - if <player.money.is[LESS].to[28000]> {
              - narrate "<&4><&l>DENIED! <&c>You do not have enough money to purchase this item."
              - inventory close
              - queue clear                    
            } 
            - take money qty:28000
            - execute as_op "shot give <player.name> Wiltration"
            - execute as_op "i arrow 32"
            - title 'title:<&a><&l>Transaction Complete' 'subtitle:<&f><&l>Thank you for your business.' fade_in:.2s stay:1.8s fade_out:.3s
            - narrate "<&a><&l>$ $ $   TRANSACTION COMPLETE    $ $ $."
            - inventory close
            - execute as_op "bal"

          }
          else if <context.slot> == 5 {
            - inventory close
          }
          - determine CANCELLED

        on player drags in ORACLE_MENU_lvl0:
          - determine CANCELLED

        on 00011 command:
          - give i@ORACLE_Opt_1 qty:1