- mcmonkey studios -
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


TitleNPC Smartlook
TypeDenizen Script
Date2014/11/26 16:13:35 UTC-08:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1800
# Usage:
# Put the script in your scripts folder + restart server or /reload
# Select an NPC you want to smartlook, and:
# /ex flag npc smartlook
npc_smartlook_world:
    type: world
    events:
        on server start:
        - while true {
          - foreach <server.get_npcs_flagged[smartlook]> {
            - define x <util.random.int[-10].to[10]>
            - define y <util.random.int[-1].to[1]>
            - define z <util.random.int[-10].to[10]>
            - look npc:%value% <npc.location.add[%x%,%y%,%z%]>
            }
          - wait 10s
          }



RawRaw



Pastes made: 47261