diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-02-21 08:33:49 +0100 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-02-21 20:32:11 +0100 |
commit | f46037b4b32356e94cf8564bc9486b1b13d2dbda (patch) | |
tree | c607748cd6e5c5b9819df37189445649953a6032 /example | |
parent | 4559ca444daacfd02ebb05f1657148a2b4cf3d8b (diff) | |
download | manaserv-f46037b4b32356e94cf8564bc9486b1b13d2dbda.tar.gz manaserv-f46037b4b32356e94cf8564bc9486b1b13d2dbda.tar.bz2 manaserv-f46037b4b32356e94cf8564bc9486b1b13d2dbda.tar.xz manaserv-f46037b4b32356e94cf8564bc9486b1b13d2dbda.zip |
Removed loading of script files using the statusmanager
They are now required via the main.lua.
Also made Harmony giving you the plague in order to allow testing.
Diffstat (limited to 'example')
-rw-r--r-- | example/scripts/main.lua | 3 | ||||
-rw-r--r-- | example/scripts/maps/desert.lua | 1 | ||||
-rw-r--r-- | example/status-effects.xml | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/example/scripts/main.lua b/example/scripts/main.lua index 34183850..b43dd420 100644 --- a/example/scripts/main.lua +++ b/example/scripts/main.lua @@ -13,3 +13,6 @@ require "scripts/attributes" require "scripts/items/candy" require "scripts/monster/testmonster" + +require "scripts/status/jump" +require "scripts/status/plague" diff --git a/example/scripts/maps/desert.lua b/example/scripts/maps/desert.lua index 96518ac9..782dd2b4 100644 --- a/example/scripts/maps/desert.lua +++ b/example/scripts/maps/desert.lua @@ -71,6 +71,7 @@ end -- Global variable used to know whether Harmony talked to someone. harmony_have_talked_to_someone = false function Harmony(npc, ch, list) + being_apply_status(ch, 1, 99999) -- Say all the messages in the messages list. for i = 1, #list do npc_message(npc, ch, list[i]) diff --git a/example/status-effects.xml b/example/status-effects.xml index fda90836..0dd2b699 100644 --- a/example/status-effects.xml +++ b/example/status-effects.xml @@ -4,14 +4,12 @@ icon="icons/icon-poison.xml" persistent-particle-effect="true" start-particle="graphics/particles/green-bubbles.particle.xml" - script="plague.lua" tick-function="tick_plague" /> <status-effect name="Jumping Status" id="2" icon="icons/icon-feather.xml" persistent-particle-effect="true" start-particle="graphics/particles/magic.white.xml" - script="jump.lua" tick-function="tick_jump" /> </status-effects> |