Recursive plugin loading.

This commit is contained in:
Nikki
2014-05-01 13:37:44 -04:00
parent 1561e56c82
commit 9a7210deb1
50 changed files with 38 additions and 6 deletions
+29
View File
@@ -0,0 +1,29 @@
# Information about npc spawning
#
# Npcs are passed to spawn npc as a hash. Every key and every non-integer value must be a Symbol. Every hash must implement the following:
# :name or :id - the name or the id of the npc. Use of :name is recommended. If this npc shares its name with another, append the specific id after the name (e.g. :woman_4)
# :x - the x coordinate where the npc will spawn.
# :y - the y coordinate where the npc will spawn.
# Optional arguments are as follows:
# :face - the direction the npc should face when it spawns. Supported options are :north, :north_east, :east, :south_east, :south, :south_west, :west, and :north_west
# :bounds - the rectangular bound that the npc can wander about in. Order is [top-left x-coordinate, top-left y-coordinate, bottom-right x-coordinate, bottom-right y-coordinate]
# :delta_bounds - the rectangular bound that the npc can wander about in, as a difference from the spawn point. Order is [x-delta, y-delta]. Should not be used with :bounds.
# :spawn_animation - the animation that will be played when the npc spawns.
# :spawn_graphic - the graphic that will be played when the npc spawns.
# Generic npcs
spawn_npc :name => :woman_4, :x => 3232, :y => 3207 # southernmost house
spawn_npc :name => :man_1, :x => 3231, :y => 3237 # house by willow tree
spawn_npc :name => :man_2, :x => 3224, :y => 3240 # house by willow tree
spawn_npc :name => :woman_5, :x => 3229, :y => 2329 # house by willow tree
# Functional npcs
spawn_npc :name => :hans, :x => 3221, :y => 3221
spawn_npc :name => :father_aereck, :x => 3243, :y => 3210
spawn_npc :name => :bob, :x => 3231, :y => 3203
spawn_npc :name => :shop_keeper, :x => 3212, :y => 3247
spawn_npc :name => :shop_assistant, :x => 3211, :y => 3245
spawn_npc :name => :lumbridge_guide, :x => 3232, :y => 3229
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<plugin>
<id>location-lumbridge</id>
<version>0.1</version>
<name>Lumbridge</name>
<description>Adds functionality to Lumbridge.</description>
<authors>
<author>Major</author>
</authors>
<scripts>
<script>npcs.rb</script>
</scripts>
<dependencies>
<dependency>entity-spawning</dependency>
</dependencies>
</plugin>
@@ -0,0 +1,46 @@
# Information about npc spawning
#
# Npcs are passed to spawn npc as a hash. Every key and every non-integer value must be a Symbol. Every hash must implement the following:
# :name or :id - the name or the id of the npc. Use of :name is recommended. If this npc shares its name with another, append the specific id after the name (e.g. :woman_4)
# :x - the x coordinate where the npc will spawn.
# :y - the y coordinate where the npc will spawn.
# Optional arguments are as follows:
# :face - the direction the npc should face when it spawns. Supported options are :north, :north_east, :east, :south_east, :south, :south_west, :west, and :north_west
# :bounds - the rectangular bound that the npc can wander about in. Order is [top-left x-coordinate, top-left y-coordinate, bottom-right x-coordinate, bottom-right y-coordinate]
# :delta_bounds - the rectangular bound that the npc can wander about in, as a difference from the spawn point. Order is [x-delta, y-delta]. Should not be used with :bounds.
# :spawn_animation - the animation that will be played when the npc spawns.
# :spawn_graphic - the graphic that will be played when the npc spawns.
# 'Above-ground' npcs
spawn_npc :name => :runescape_guide, :x => 3093, :y => 3107
spawn_npc :name => :survival_expert, :x => 3104, :y => 3095, :face => :north
spawn_npc :name => :master_chef, :x => 3076, :y => 3085
spawn_npc :name => :quest_guide, :x => 3086, :y => 3122, :face => :north
spawn_npc :name => :financial_advisor, :x => 3127, :y => 3124, :face => :west
spawn_npc :name => :brother_brace, :x => 3124, :y => 3107, :face => :east
spawn_npc :name => :magic_instructor, :x => 3140, :y => 3085
# 'Below-ground' npcs
# Note: They aren't actually on a different plane, they're just in a different location that pretends to be underground.
spawn_npc :name => :mining_instructor, :x => 3081, :y => 9504
spawn_npc :name => :combat_instructor, :x => 3104, :y => 9506
# Non-humanoid npcs
spawn_npc :name => :fishing_spot_316, :x => 3102, :y => 3093
spawn_npc :name => :giant_rat_87, :x => 3105, :y => 9514
spawn_npc :name => :giant_rat_87, :x => 3105, :y => 9517
spawn_npc :name => :giant_rat_87, :x => 3106, :y => 9514
spawn_npc :name => :giant_rat_87, :x => 3104, :y => 9514
spawn_npc :name => :giant_rat_87, :x => 3105, :y => 9519
spawn_npc :name => :giant_rat_87, :x => 3109, :y => 9516
spawn_npc :name => :giant_rat_87, :x => 3108, :y => 9520
spawn_npc :name => :giant_rat_87, :x => 3102, :y => 9517
spawn_npc :name => :chicken_41, :x => 3140, :y => 3095
spawn_npc :name => :chicken_41, :x => 3140, :y => 3093
spawn_npc :name => :chicken_41, :x => 3138, :y => 3092
spawn_npc :name => :chicken_41, :x => 3137, :y => 3094
spawn_npc :name => :chicken_41, :x => 3138, :y => 3095
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<plugin>
<id>location-tutorial-island</id>
<version>0.1</version>
<name>Tutorial Island</name>
<description>Adds funtionality to Tutorial island.</description>
<authors>
<author>Major</author>
</authors>
<scripts>
<script>npcs.rb</script>
</scripts>
<dependencies>
<dependency>entity-spawning</dependency>
</dependencies>
</plugin>