- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleDraven
TypeDenizen Script
Date2014/01/02 17:31:23 UTC-08:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
5600
DravenScriptAs:
  Type: Assignment
  Interact Scripts:
  - 10 DravenScript
  - 20 DravenScriptRet
DravenScript:
  Type: Interact
  Requirements:
    Mode: All
    List:
    - TIME day
    Steps:
      1:
        Click Trigger:
          Script:
          - if <player.inventory.contains[DIAMOND_SWORD.qty[1]> {
            - CHAT "That's a mighty fine blade you've got there..."
            - WAIT 2
            - CHAT "Would you like me to sharpen it?"
            - ANNOUNCE "<NPC.NAME> wants to add <GOLD>SHARPNESS II<GREEN> to your <GOLD>DIAMOND SWORD<GREEN>!"
            - ANNOUNCE "Type <RED>YES<GREEN> or <RED>NO<GREEN>!"
            - ZAP 2
            } else {
            - CHAT "I'm just a simple enchanter.."
            }
        Chat Trigger:
          1:
            Trigger: /Yes/, I would!
            Script:
            - CHAT "Great! Hand it over!"
            - ANNOUNCE "<NPC>NAME> takes the <GOLD>DIAMOND SWORD<GREEN>!
            - WAIT 2
            - CHAT "Come back at <GOLD>NIGHT<GREEN> and it will be sharpened!"
          2:
           Trigger: /No/ thanks!
           Script:
           - CHAT "Very well, your loss."
DravenScriptRet:
  Type: Interact
  Requirements:
    Mode: All
    List:
    - TIME Night
    - scripts finished 'Script:DravenScript'
  Steps:
    1:
      Click Trigger:
        Script:
        - CHAT "Ah, you're back! Here's your weapon."
        - GIVE 'DIAMOND_SWORD' 'QTY:1'
        - ANNOUNCE "<NPC.NAME> hands you the <GOLD>DIAMOND SWORD<GREEN>!
        - ZAP 2              
    2:
      Click Trigger:
        Script:
        -CHAT "Has that weapon served well for you?"


RawRaw



Pastes made: 74477