summaryrefslogtreecommitdiffstats
path: root/example/serverdata/scripts/crafting.lua
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-04 08:57:50 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-04 08:57:50 +0200
commitf5936cd381adcc7f6add59aece084105191aea03 (patch)
treebc4e395912244915b938471efa36d0552c2b49c4 /example/serverdata/scripts/crafting.lua
parent4a4acd479ee8de82df0935b3511257ade13258b6 (diff)
parentd11e7d49edb8374767d69859fe9ed542722013fe (diff)
downloadmanaserv-f5936cd381adcc7f6add59aece084105191aea03.tar.gz
manaserv-f5936cd381adcc7f6add59aece084105191aea03.tar.xz
manaserv-f5936cd381adcc7f6add59aece084105191aea03.zip
Merge branch 'master' of git://gitorious.org/mana/manaserv
Diffstat (limited to 'example/serverdata/scripts/crafting.lua')
-rw-r--r--example/serverdata/scripts/crafting.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/example/serverdata/scripts/crafting.lua b/example/serverdata/scripts/crafting.lua
index ea30628..eae26a4 100644
--- a/example/serverdata/scripts/crafting.lua
+++ b/example/serverdata/scripts/crafting.lua
@@ -27,7 +27,7 @@ function on_craft(ch, recipe)
-- uncomment one (but not both!) of the following three lines to enable the
-- example crafting systems
- mana.chatmessage(ch, "There is no crafting in this game world.")
+ mana.chat_message(ch, "There is no crafting in this game world.")
--craft_strict(ch, recipe)
--craft_lax(ch, recipe)
end
@@ -42,10 +42,10 @@ function craft_strict(ch, recipe)
8, -2, --take away the iron
9, -1, --take away the wood
5, 1 ) -- give a sword
- mana.chatmessage(ch, "You've crafted a sword")
+ mana.chat_message(ch, "You've crafted a sword")
return
end
- mana.chatmessage(ch, "This wouldn't create anything useful")
+ mana.chat_message(ch, "This wouldn't create anything useful")
end
-- a primitive example crafting system which doesn't care about item order
@@ -60,10 +60,10 @@ function craft_lax(ch, recipe)
8, -2, --take away the iron
9, -1, --take away the wood
5, 1 ) -- give a sword
- mana.chatmessage(ch, "You've crafted a sword")
+ mana.chat_message(ch, "You've crafted a sword")
return
end
- mana.chatmessage(ch, "This wouldn't create anything useful")
+ mana.chat_message(ch, "This wouldn't create anything useful")
end
-- this turns multiple occurences of the same item into one by adding up