Paste #51286: Diff note for paste #51285

Date: 2019/01/02 06:50:49 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


 spawn_random_npcs:
   type: task
   debug: false
   script:
     ################################################
     #CHOISIR LE NOMBRE MINIMUM ET MAXIMUM DE npcs
     - define min_npc 3.0
     - define max_npc 7.0
     #CHOISIR L'ID MINIMUM ET MAXIMUM 
     - define min_id 0
     - define max_id 29
     ################################################
     - flag server nb_npc_sp:<util.random.int[<def[min_npc]>].to[<def[max_npc]>]>
     - repeat <server.flag[nb_npc_sp]>:
       - define npc n@<util.random.int[<def[min_id]>].to[<def[max_id]>]>
       - spawn <def[npc]> <def[npc].location> persistent
       - run locally despawn_npcs delay:60m def:<def[npc]> 
   despawn_npcs:
     - despawn <def[1]>
 
 actions_npcs:
   type: world
   debug: false
   events:
     on system time hourly:
     - run spawn_random_npcs instantly
 
-