Paste #34311: Coin game

Date: 2016/06/16 21:39:15 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


npc_assignment2:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
    interact scripts:
    - 1 npc_assignment_interact2

npc_assignment_interact2:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Quieres probar suerte? Apuesta una esmeralda a cara o cruz, pero yo me elijo cara !"
                - wait 5t
                - chat "Responde si o no."
            chat trigger:
                1:
                    trigger: /Si/
                    script:
                     - chat "¿Del 1 al 10, cuantas esmeraldas quieres apostar?"
                     - ^zap step:2

                2:
                    trigger: /No/
                    script:
                    - chat "Menudo cobarde! Sal corriendo a buscar a tu mama"
        2: 
            chat trigger:
                1:
                    trigger: /1/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:1
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:2
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No ninguna esmeralda ! No me hagas la cabra loca."
                        - ^zap step:1
                        }

                2:
                    trigger: /2/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:2
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:4
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No tienes tantas esmeraldas ! No me hagas la cabra loca."
                        - ^zap step:1
                        }
                3:
                    trigger: /3/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:3
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:6
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No tienes tantas esmeraldas ! No me hagas la cabra loca."
                        - ^zap step:1
                        }
                4:
                    trigger: /4/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:4
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:8
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No tienes tantas esmeraldas ! No me hagas la cabra loca."
                        - ^zap step:1
                        }
                5:
                    trigger: /5/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:5
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:10
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No tienes tantas esmeraldas ! No me hagas la cabra loca."
                        - ^zap step:1
                        }
                6:
                    trigger: /6/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:6
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:12
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No tienes tantas esmeraldas ! No me hagas la cabra loca."
                        - ^zap step:1
                        }
                7:
                    trigger: /7/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:7
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:14
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No tienes tantas esmeraldas ! No me hagas la cabra loca."
                        - ^zap step:1
                        }
                8:
                    trigger: /8/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:8
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:16
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No tienes tantas esmeraldas ! No me hagas la cabra loca."
                        - ^zap step:1
                        }
                9:
                    trigger: /9/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:9
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:18
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No tienes tantas esmeraldas ! No me hagas la cabra loca."
                        - ^zap step:1
                        }
                10:
                    trigger: /10/
                    script:
                    - chat "Veo que tienes agallas.. vamos alla"
                    - if <player.item_in_hand.material.name> == emerald {
                        - take i@EsmeraldaBrillante quantity:10
                        - wait 7t
                        - if <util.random.int[1].to[6]> < 3 {
                            - narrate Cara
                            - wait 7t
                            - chat "Jajajaja he ganado"
                            - ^zap step:1
                            }
                            else {
                            - narrate Cruz
                            - wait 7t
                            - chat "Co-co-como? me has ganado? Si está trucada !"
                            - give i@EsmeraldaBrillante quantity:20
                            - ^zap step:1
                            }
                        }
                        else {
                        - chat "No tienes tantas esmeraldas ! No me hagas la cabra loca."
                        - ^zap step:1
                        }


EsmeraldaBrillante:
    type: item
    material: emerald
    display name: Esmeralda brillante
    lore:
    - Moneda de cambio de los bandidos, foragidos, ladrones y todo tipo de escoria