summaryrefslogtreecommitdiff
path: root/example/serverdata/scripts/maps
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2011-08-04 13:03:30 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-04 20:13:14 +0200
commitebf0672a47c1d5c649bd6f6040d9112e1ba26382 (patch)
treea2a442e9ba061db2107578177633388f8285f29a /example/serverdata/scripts/maps
parentd11e7d49edb8374767d69859fe9ed542722013fe (diff)
downloadmanaserv-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.lua2
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