- 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


TitleUntitled Paste
TypeDenizen Script
Date2016/01/16 01:28:53 UTC-08:00
ByPanteLegacy
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
3800
Rerun_Walk_Script:
  type: world
  debug: false
  events:
    on server start:
#
# This script will run on start up to make the NPCs walk
#
    - foreach <server.list_npcs.filter[has_flag[walk]]> {
      - run Walk npc:<def[Value]>
      }
#
# This script serves as a back-up incase the other script fails which is pretty common
# However even when the queue <npc.flag[walkQueue]> exists, the script runs a new walk script anyways
#
    on player joins:
    - foreach <server.list_npcs.filter[has_flag[walk]]> {
      - if <queue.exists[<def[Value].as_npc.flag[walkQueue]>].not> {
        - run Walk npc:<def[Value].as_npc>
        }
      }

Sage_Tutorial:
  type: world
  events:
    on player logs in for the first time:
    - ^run Sage_Tutorial_Starting npc:<server.flag[TutorialNPC]>
    on player logs in:
    - if <player.has_flag[inEvent]> {
      - ^run Sage_Tutorial_Starting npc:<server.flag[TutorialNPC]>
      }
      else {

# This two scripts keep erroring even thogh <server.flag[TutorialNPC]> is a valid dNPC object
      - adjust <player> hide_entity:<server.flag[TutorialNPC].as_npc>
      - adjust <player> hide_entity:<server.flag[TutorialNPCHelper].as_npc>
      }



RawRaw



Pastes made: 76991