Server Basics


Author: bhai
Created: 2013-04-02T18:24:19-0400
Edited: 2013-04-02T18:32:19-0400
Denizen Version: 0.8.8
Views: 46
Downloads: 968
Likes: 0


WGET
Description: NPC hands you a book that tells you about the server and makes you a member you're a guest on the server.

'Becoming a Member':
  type: assignment
  actions:
      on assignment:
      - trigger name:click toggle:true
      - trigger name:chat toggle:true
      - trigger name:proximity toggle:true
  interact scripts:
  - 10 Rules
# This book script is used to create and hand players a book about the server
'Book of the Server':
  type: book
  title: Server Basics
  author: Baka Craft
  text:
# each new "-" is a new page... the \n is used for a new line and <p> is used for a new paragraph
  - "<blue>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!"
  - "<blue>World Types:<black> \n \n There are three different worlds you may play... \n \n<gold> - Creative World \n \n - Survival Games World \n \n - Quest/PVP World"
  - "<blue>Creative World:<black> \n \n In this world, you may build whatever you want in your plot. You also have world edit permissions."
  - "<blue>Survival Games World:<black> \n \n Join this world to show who's boss and dominate others. <p>You can also team up with other players, but be careful... they might betray you!"
  - "<blue>Questing/PVP World:<black> \n \n This world will have many quests available for you to enjoy. You can interact with other NPCs just like Bill to get the best of the questing world, but be careful! PVP is allowed anywhere outside of towns!"
  - "\n \n \n <&2>If you notice any bugs/glitchs or hackers/cheaters, please report them to Admins/Mods. \n \n <black>Have fun and once again, welcome to Baka Craft!"
'Rules':
  type: interact
  steps:
    'Welcome to Baka Craft*':
        proximity trigger:
            entry:
                script:
# When you enter the proximity of the NPC, the NPC will randomly choose one of these two and say it
# to you.
                - random 2
                - chat "<&6>Welcome to Baka Craft <player.name>!"
                - chat "<&6>Hello <player.name>, Welcome to Baka Craft!"
        click trigger:
            script:
# This is a simple if command used to check if the player is a guest or not
# If the player is a guest, it will run the script called Server Book
# Server Book will set the player to a member
# otherwise, it will run the script called Server Book 2
# Server Book 2 will just give you the book and wont mess with your group.
            - if ingroup == Guest runtask "script:Server Book"
              else if ingroup != Guest runtask "script:Server Book 2"
Server Book:
  type: task
  script:
  - chat "<&6>Here is a book of the basics for this server..."
  - scribe 'script:Book of the Server'
  - narrate "<&e><npc.name> hands you a book of the server rules..."
  - wait 5
  - execute asserver 'pex user <player.name> group set member'
  - narrate "<&e>You are now a <&2>Member<&e>!"
Server Book 2:
  type: task
  script:
  - chat "<&6>Here is a book of the basics for this server..."
  - scribe 'script:Book of the Server'
  - narrate "<&e><npc.name> hands you a book of the server rules..."




Comments
No one has posted a comment! Post one below: