Guest User

Quester quest format (build 45)

a guest
Aug 21st, 2013
2,129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 11.67 KB | None | 0 0
  1. # QUESTER QUEST FORMAT
  2.  
  3. # old format - quest name in lowercase
  4. {unique quest id}:
  5.    # MANDATORY
  6.     name: Unique Quest Name
  7.     # OPTIONAL
  8.     description: Quest description.
  9.     # OPTIONAL
  10.     # {location} format - http://dev.bukkit.org/bukkit-plugins/quester/pages/special-arguments/#w-location
  11.     location: {location}
  12.     # OPTIONAL - read/save only if location is present
  13.     # DEFAULTS TO 1, if value 0 or lower is read, it is set 1
  14.     range: {range in blocks (int)}
  15.     # OPTIONAL, array of worlds
  16.     worlds:
  17.      - {worldname1}
  18.       - {worldname2}
  19.     # OPTIONAL - SEMICOLON separated list, key will probably change to modifiers
  20.     flags: {flag1};{flag2};{flag3}
  21.     # DEPRECATED - has higher priority than main key ID, because of old format quests with numeric names
  22.     ID: {unique quest id}
  23.     # OPTIONAL
  24.     conditions:
  25.        # condition ids must start with 0 and increment by one
  26.         {unique condition id}:
  27.            # MANDATORY
  28.             type: {condition type}
  29.             # OPTIONAL
  30.             description: Custom condition description.
  31.             #
  32.             # per-condition data go here
  33.             #
  34.     objectives:
  35.        # objective ids must start with 0 and increment by one
  36.         {unique objective id}:
  37.            # MANDATORY
  38.             type: {objective type}
  39.             # OPTIONAL
  40.             description: Custom objective description.
  41.             # OPTIONAL - SEMICOLON separated list of prerequisites
  42.             prerequisites: {id1};{id2};{id3}
  43.             # OPTIONAL - DEFAULTS TO false
  44.             hidden: {true/false}
  45.             # OPTIONAL - DEFAULTS TO true
  46.             progress: {true/false}
  47.             #
  48.             # per-objective data go here
  49.             #
  50.     events:
  51.        # event ids must start with 0 and increment by one
  52.         {unique event id}:
  53.            # MANDATORY
  54.             type: {event type}
  55.             # MANDATORY
  56.             occassion: {occassion}
  57.             # OPTIONAL - DEFAULTS TO 0
  58.             delay: {delay in seconds}
  59.             #
  60.             # per-event data go here
  61.             #
  62.  
  63. #
  64. # INVALID VALUES IN OPTIONAL FIELDS ARE REPLACED WITH THE DEFAULT VALUES
  65. # INVALID VALUES IN OPTIONAL FIELDS WITH NO DEFAULT VALUE ARE READ AS EMPTY
  66. # INVALID VALUES IN MANDATORY FIELDS RESULT IN INVALID ELEMENT
  67. #
  68.  
  69.  
  70. ########################
  71. #      CONDITIONS      #
  72. ########################
  73.  
  74. ##### EXPERIENCE
  75.  
  76.     # MANDATORY
  77.     amount: {positive (int)}
  78.     # OPTIONAL - DEFAULTS TO FALSE
  79.     inverted: {true/false}
  80.     # OPTIONAL - DEFAULTS TO FAlSE
  81.     islevel: {true/false}
  82.  
  83. ##### ITEM
  84.  
  85.     # MANDATORY
  86.     # {item}/{block} format - http://dev.bukkit.org/bukkit-plugins/quester/pages/special-arguments/#w-item-block
  87.     item: {item}
  88.     # OPTIONAL - DEFAULTS TO 1
  89.     amount: {positive (int)}
  90.     # OPTIONAL - DEFAULTS TO FALSE
  91.     inverted: {true/false}
  92.     # OPTIONAL - DEFAULTS TO FAlSE
  93.     questitem: {true/false}
  94.  
  95. ##### MONEY
  96.  
  97.     # MANDATORY
  98.     amount: {any (double)}
  99.     # OPTIONAL - DEFAULTS TO FALSE
  100.     inverted: {true/false}
  101.  
  102. ##### PERMISSION
  103.  
  104.     # MANDATORY
  105.     perm: {permission string}
  106.  
  107. ##### POINT
  108.  
  109.     # MANDATORY
  110.     amount: {any (int)}
  111.     # OPTIONAL - DEFAULTS TO FALSE
  112.     inverted: {true/false}
  113.  
  114. ##### QUEST
  115.  
  116.     # MANDATORY
  117.     quest:
  118.     # OPTIONAL
  119.     time: {any (int)}
  120.     # OPTIONAL - DEFAULTS TO FALSE
  121.     running: {true/false}
  122.     # OPTIONAL - DEFAULTS TO FAlSE
  123.     inverted: {true/false}
  124.  
  125. ##### QUESTNOT
  126.     # DEPRECATED - deserialization produces inverted QUEST with the same data
  127.  
  128.     # MANDATORY
  129.     quest: {quest name (case insensitive)}
  130.     # OPTIONAL
  131.     time: {any (int)}
  132.     # OPTIONAL - DEFAULTS TO FALSE
  133.     running: {true/false}
  134.  
  135. ##### SLOT
  136.  
  137.     # MANDATORY
  138.     amount: {positive (int)}
  139.  
  140. ##### TIME
  141.  
  142.     # MANDATORY
  143.     # time in ticks (18000 - midnight, 6000 - noon)
  144.     from: {any (int)}
  145.     # MANDATORY
  146.     # time in ticks
  147.     to: {any (int)}
  148.     # OPTIONAL - invalid world name is ignored
  149.     world: {world name}
  150.            
  151.  
  152. ########################
  153. #      OBJECTIVES      #
  154. ########################
  155.  
  156. ##### ACTION
  157.  
  158.     # OPTIONAL
  159.     block: {block}
  160.     # OPTIONAL
  161.     hand: {item}
  162.     # OPTIONAL - DEFAULTS TO 0
  163.     # 0 - ANY, 1 - LEFT, 2 - RIGHT, 3 - PUSH
  164.     click: {click}
  165.     # OPTIONAL
  166.     location: {location}
  167.     # OPTIONAL - DEFAULTS TO 0
  168.     range: {non-negative (int)}
  169.  
  170. ##### BOSS
  171.     # EpicBoss objective
  172.  
  173.     # MANDATORY
  174.     amount: {positive (int)}
  175.     # MANDATORY
  176.     boss: {boss name}
  177.  
  178. ##### BREAK
  179.  
  180.     # OPTIONAL
  181.     # OBJECTIVE WILL FAIL IF INCORRECT VALUE IS PROVIDED
  182.     block: {block}
  183.     # OPTIONAL - DEFAULTS TO 1
  184.     amount: {positive (int)}
  185.     # OPTIONAL
  186.     # only item ID is taken into account
  187.     inhand: {item}
  188.  
  189. ##### COLLECT
  190.  
  191.     # MANDATORY
  192.     item: {item}
  193.     # MANDATORY
  194.     amount: {positive (int)}
  195.  
  196. ##### CRAFT
  197.  
  198.     # MANDATORY
  199.     item: {item}
  200.     # OPTIONAL - DEFAULTS TO 1
  201.     amount: {positive (int)}
  202.  
  203. ##### SMELT
  204.  
  205.     # MANDATORY
  206.     item: {item}
  207.     # OPTIONAL - DEFAULTS TO 1
  208.     amount: {positive (int)}
  209.  
  210. ##### DEATH
  211.  
  212.     # OPTIONAL
  213.     location: {location}
  214.     # OPTIONAL - DEFAULTS TO 1
  215.     amount: {positive (int)}
  216.     # OPTIONAL - DEFAULTS TO 5
  217.     range: {positive (int)}
  218.  
  219. ##### DROP
  220.  
  221.     # MANDATORY
  222.     item: {item}
  223.     # MANDATORY
  224.     amount: {positive (int)}
  225.     # OPTIONAL
  226.     location: {location}
  227.     # OPTIONAL - DEFAULTS TO 2.0 - read only if location if present
  228.     range: {positive (double)}
  229.  
  230. ##### DYE
  231.  
  232.     # OPTIONAL - DEFAULTS TO 1
  233.     amount: {positive (int)}
  234.     # OPTIONAL
  235.     # {dyecolor} format - correct dyecolor name or dye data number (from getByDyeData())
  236.     # http://jd.bukkit.org/rb/doxygen/d2/d1c/enumorg_1_1bukkit_1_1DyeColor.html
  237.     color: {dyecolor}
  238.  
  239. ##### SHEAR
  240.  
  241.     # OPTIONAL - DEFAULTS TO 1
  242.     amount: {positive (int)}
  243.     # OPTIONAL
  244.     color: {dyecolor}
  245.  
  246. ##### ENCHANT
  247.  
  248.     # MANDATORY
  249.     # {enchants} format - http://dev.bukkit.org/bukkit-plugins/quester/pages/special-arguments/#w-enchants
  250.     # correct bukkit enchantment name or ID (getById(), getByName())
  251.     # http://jd.bukkit.org/rb/doxygen/dd/d17/classorg_1_1bukkit_1_1enchantments_1_1Enchantment.html
  252.     enchants: {enchants}
  253.     # MANDATORY
  254.     amount: {positive (int)}
  255.     # OPTIONAL
  256.     location: {location}
  257.  
  258. ##### EXP
  259.  
  260.     # MANDATORY
  261.     amount: {positive (int)}
  262.  
  263. ##### FISH
  264.  
  265.     # MANDATORY
  266.     amount: {positive (int)}
  267.  
  268. ##### CHAT
  269.  
  270.     # MANDATORY
  271.     regex: {string regex to match}
  272.     # OPTIONAL - DEFAULTS TO false
  273.     inverted: {true/false}
  274.  
  275. ##### ITEM
  276.  
  277.     # MANDATORY
  278.     item: {item}
  279.     # OPTIONAL
  280.     enchants: {enchants}
  281.     # OPTIONAL - DEFAULTS TO 1
  282.     amount: {positive (int)}
  283.     # OPTIONAL - DEFAULTS TO false
  284.     questitem: {true/false}
  285.  
  286. ##### LOCATION
  287.     # DEPRECATED - deserialization produces REGION objective with the same sphere region
  288.  
  289.     # MANDATORY
  290.     location: {location}
  291.     # OPTIONAL - DEFAULTS TO 3
  292.     range: {positive (int)}
  293.     # OPTIONAL - DEFAULTS TO false
  294.     inverted: {true/false}
  295.  
  296. ##### MILK
  297.  
  298.     # MANDATORY
  299.     amount: {positive (int)}
  300.  
  301. ##### MOBKILL
  302.  
  303.     # OPTIONAL
  304.     # {entity} format - correct entity name or entity ID (while entity ID >= 50)
  305.     # http://jd.bukkit.org/rb/doxygen/d7/dbf/enumorg_1_1bukkit_1_1entity_1_1EntityType.html
  306.     entity: {entity}
  307.     # OPTIONAL - DEFAULTS TO 1
  308.     amount: {positive (int)}
  309.  
  310. ##### TAME
  311.  
  312.     # OPTIONAL
  313.     entity: {entity}
  314.     # OPTIONAL - DEFAULTS TO 1
  315.     amount: {positive (int)}
  316.  
  317. ##### MONEY
  318.  
  319.     # MANDATORY
  320.     amount: {positive (double)}
  321.  
  322. ##### NPCKILL
  323.  
  324.     # OPTIONAL
  325.     name: {npc name}
  326.     # OPTIONAL - DEFAULTS TO 1
  327.     amount: {positive (int)}
  328.  
  329. ##### NPC
  330.  
  331.     # MANDATORY
  332.     id: {non-negative (int)}
  333.     # OPTIONAL - DEFAULTS TO false
  334.     cancel: {true/false}
  335.  
  336. ##### PLACE
  337.  
  338.     # MANDATORY
  339.     block: {block}
  340.     # OPTIONAL - DEFAULTS TO 1
  341.     amount: {positive (int)}
  342.  
  343. ##### PLAYERKILL
  344.  
  345.     # OPTIONAL
  346.     # if perm: true, then name is permission string
  347.     name: {player name OR permission string}
  348.     # OPTIONAL - DEFAULTS TO 1
  349.     amount: {positive (int)}
  350.     # OPTIONAL - DEFAULTS TO false
  351.     perm: {true/false}
  352.  
  353. ##### REGION
  354.  
  355.     # MANDATORY
  356.     # {region} format:
  357.     # SPHERE|{location}|{non-negative (double)}
  358.     # CUBOID|{location}|{location}
  359.     # WORLD|{world name}
  360.     # ANYWHERE
  361.     region: {region}
  362.     # OPTIONAL - DEFAULTS TO false
  363.     inverted: {true/false}
  364.  
  365. ##### WORLD
  366.     # DEPRECATED - deserialization produces REGION objective with the same world region
  367.  
  368.     # MANDATORY
  369.     world: {world name}
  370.     # OPTIONAL - DEFAULTS TO false
  371.     inverted: {true/false}
  372.  
  373. ##### DUMMY
  374.  
  375.     # MANDATORY
  376.     amount: {positive (int)}
  377.     # OPTIONAL - used only for better orientation in quest info
  378.     name: {objective name}
  379.    
  380.  
  381. ########################
  382. #        EVENTS        #
  383. ########################
  384.  
  385. #
  386. # DOES NOT CONTAIN DSCRIPT EVENT
  387. #
  388.  
  389. ##### CANCEL
  390.  
  391.     # NOTHING
  392.  
  393. ##### CMD
  394.  
  395.     # MANDATORY
  396.     command: {command without leading slash}
  397.  
  398. ##### EFFECT
  399.  
  400.     # MANDATORY
  401.     # {potion effect} format - http://dev.bukkit.org/bukkit-plugins/quester/pages/special-arguments/#w-potion-effect
  402.     # http://jd.bukkit.org/rb/doxygen/d3/d70/classorg_1_1bukkit_1_1potion_1_1PotionEffectType.html#pub-static-attribs
  403.     # WARNING - 0.7 uses semicolon instead of a colon (it's not backwards compatible atm (build #24))
  404.     effect: {potion effect}
  405.  
  406. ##### EXP
  407.  
  408.     # MANDATORY
  409.     amount: {non-zero (int)}
  410.     # OPTIONAL - DEFAULTS TO false
  411.     islevel: {true/false}
  412.  
  413. ##### EXPLOSION
  414.  
  415.     # OPTIONAL - DEEFAULTS TO player's location
  416.     location: {location}
  417.     # OPTIONAL - DEFAULTS TO 0
  418.     range: {non-negative (int)}
  419.     # OPTIONAL - DEFAULTS TO false
  420.     damage: {true/false}
  421.  
  422. ##### LIGHTNING
  423.  
  424.     # OPTIONAL - DEEFAULTS TO player's location
  425.     location: {location}
  426.     # OPTIONAL - DEFAULTS TO 0
  427.     range: {non-negative (int)}
  428.     # OPTIONAL - DEFAULTS TO false
  429.     damage: {true/false}
  430.  
  431. ##### ITEM
  432.  
  433.     # MANDATORY
  434.     item: {item}
  435.     # OPTIONAL - DEFAULTS TO 1
  436.     amount: {positive (int)}
  437.     # OPTIONAL
  438.     enchants: {enchants}
  439.     # OPTIONAL - DEFAULTS TO false
  440.     inverted: {true/false}
  441.     # OPTIONAL - DEFAULTS TO false
  442.     quest: {true/false}
  443.  
  444. ##### MSG
  445.  
  446.     # MANDATORY
  447.     message: {message string}
  448.  
  449. ##### MONEY
  450.  
  451.     # MANDATORY
  452.     amount: {non-zero (double)}
  453.  
  454. ##### OBJCOM
  455.  
  456.     # MANDATORY
  457.     objective: {non-negative (int)}
  458.     # OPTIONAL - DEFAULTS TO false
  459.     runevents: {true/false}
  460.  
  461. ##### POINT
  462.  
  463.     # MANDATORY
  464.     amount: {non-zero (int)}
  465.  
  466. ##### QUEST
  467.  
  468.     # MANDATORY
  469.     quest: {quest name (case insensitive)}
  470.  
  471. ##### BLOCK
  472.  
  473.     # MANDATORY
  474.     block: {block}
  475.     # MANDATORY
  476.     location: {location}
  477.  
  478. ##### SOUND
  479.  
  480.     # MANDATORY
  481.     # {sound} format - correct case insesnsitive sound name
  482.     # http://jd.bukkit.org/rb/doxygen/d3/dfe/enumorg_1_1bukkit_1_1Sound.html#pub-attribs
  483.     sound: {sound}
  484.     # OPTIONAL - DEEFAULTS TO player's location
  485.     location: {location}
  486.     # OPTIONAL - DEFAULTS TO 1.0
  487.     volume: {non-negative (float)}
  488.     # OPTIONAL - DEFAULTS TO 1.0
  489.     pitch: {non-negative (float)}
  490.  
  491. ##### SPAWN
  492.  
  493.     # MANDATORY
  494.     entity: {entity}
  495.     # OPTIONAL - DEFAULTS TO 1
  496.     amount: {positive (int)}
  497.     # OPTIONAL - DEEFAULTS TO player's location
  498.     location: {location}
  499.     # OPTIONAL - DEFAULTS TO 0
  500.     range: {non-negative (int)}
  501.  
  502. ##### TELE
  503.  
  504.     # MANDATORY
  505.     location: {location}
  506.  
  507. ##### TOGGLE
  508.  
  509.     # MANDATORY
  510.     quest: {quest name (case insensitive)}
  511.  
  512. ##### PROGRESS
  513.  
  514.     # MANDATORY
  515.     objective: {non-negative (int)}
  516.     # OPTIONAL - DEFAULTS TO 1
  517.     amount: {positive (int)}
Advertisement
Add Comment
Please, Sign In to add comment