diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2011-08-04 13:03:30 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-08-04 20:13:14 +0200 |
commit | ebf0672a47c1d5c649bd6f6040d9112e1ba26382 (patch) | |
tree | a2a442e9ba061db2107578177633388f8285f29a /example/serverdata/scripts/maps | |
parent | d11e7d49edb8374767d69859fe9ed542722013fe (diff) | |
download | manaserv-ebf0672a47c1d5c649bd6f6040d9112e1ba26382.tar.gz manaserv-ebf0672a47c1d5c649bd6f6040d9112e1ba26382.tar.bz2 manaserv-ebf0672a47c1d5c649bd6f6040d9112e1ba26382.tar.xz manaserv-ebf0672a47c1d5c649bd6f6040d9112e1ba26382.zip |
Allowed names of items and monsters in scripts - part 1.
You can now use either the name or the id of the item in the LUA
functions chr_inv_change, monster_create, item_drop.
Part of: Mana-Mantis #318.
Reviewed-by: Bertram.
Diffstat (limited to 'example/serverdata/scripts/maps')
-rw-r--r-- | example/serverdata/scripts/maps/desert.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/serverdata/scripts/maps/desert.lua b/example/serverdata/scripts/maps/desert.lua index 23b95350..b2eb9a46 100644 --- a/example/serverdata/scripts/maps/desert.lua +++ b/example/serverdata/scripts/maps/desert.lua @@ -98,6 +98,6 @@ function Tamer(npc, ch, list) end end - local m1 = mana.monster_create(1, mana.posX(ch), mana.posY(ch)) + local m1 = mana.monster_create("Maggot", mana.posX(ch), mana.posY(ch)) schedule_in(0.5, function() mana.being_say(m1, "Roaaarrrr!!!") end) end |