Paste #1489: Untitled Paste

Date: 2014/01/27 13:36:02 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


BecomingaMember:
    type: assignment
    interact scripts:
    - 0 Rules
    actions:
        on assignment:
        - trigger name:click toggle:true
        - trigger name:chat toggle:true
        - trigger name:proximity toggle:true

BookoftheServer:
  type: book
  title: Server Rules
  author: DoCraft
  text:
# each new "-" is a new page... the \n is used for a new line and <p> is used for a new paragraph
  - "<black>Welcome to DoCraft!"
  - "<black>Rules of the Server:<red> \n \n - Do Not Spam! \n \n - Do Not Annoy Others! \n \n - Do Not Use Cheats/Hacks! \n \n - Do Not Ask For Rank/OP!"
  - "<black>Commands to remember:<red> \n \n - /help ,/helpop ,/sethome ,/home ,/spawn ,/money ,/afk ,/msg ,/seen ,/iconomy help"

Tophat:
    type: item
    material: 298
    display name: 'Tophat'
    bound: true
    color: white

'Rules':
    type: interact
    steps:
        1:
          proximity trigger:
              entry:
                  script:
                  - run "RulesCheck"
        2:
            click trigger:
                script:
                - flag <player> welcome:Collected
                - ^give 19 qty: 1
                - ^give 272 qty: 1
                - ^give 273 qty: 1
                - ^give 274 qty: 1
                - ^give 274 qty: 1
                - ^give bread qty:2
                - ^give 364 qty:2
                - ^give Tophat qty:1
                - ^cast HEALTH_BOOST power:1 duration:500
                - ^cast SPEED power:1 duration:500
                - scribe give 'script:BookoftheServer'
                - narrate "<&e><npc.name> hands you a book of the server rules..."
                - zap step:1
        3:
            proximity trigger:
                exit:
                    script:
                    - zap step:1  

'RulesCheck':
    type: task
    script:
    - if 267|268|272|276 contains <player.item_in_hand.id> run "Deny Interaction" {
        } else if <player.flag[welcome]> == Collected {
        - run "ServerBook2"
        } else if <player.flag[welcome]> != Collected {
        - run "ServerBook"
        }

'ServerBook':
    type: task
    script:
    - narrate "<&b>   *************"
    - narrate "<&b>* <&e>H<&f>elp and <&e>H<&f>ints <&b>*"
    - narrate "<&b>   *************"
    - narrate "<&b>* <&f>Welcome to <&b>D<&f>o<&b>C<&f>raft!"
    - narrate "<&b>* <&f>Right Click <yellow>Cpt Joshua Door<&f> to get started"
    - narrate "<&b>   *************"
    - zap step:2 script:Rules

'ServerBook2':
  type: task
  script:
  - narrate "You already a copy of the rules"
  - zap step:1 script:Rules

"Deny Interaction":
    type: task
    script:
    # If the player has a weapon, the NPC will say one of the following things.
    - ^random {
        - chat "<yellow>Oi mate, put ye blade away!."
        - chat "<yellow>Har har har! Thats no blade! Thats a kitchen knife! Put it away before I send you to work in the kitchens."
        - chat "<white><npc.constant[Townname]><yellow> aint want no brawlers. Put ye blade away before I throw ye scrawny ass  in the dungeon."
        - chat "<yellow>Who you think you be?! iNFy the Infamous? Harhar! Put that puny blade away before you hurt yourself."
        - chat "<yellow>Do I look like a whale?! Are we being attacked by serpents?! No we're not, so put that blade back where it came from!" }