From d11e7d49edb8374767d69859fe9ed542722013fe Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 3 Aug 2011 23:20:29 +0200 Subject: Unified the lua.cpp documentation. I also changed the chatmessage function to chat_message to follow the coding standard. --- example/serverdata/scripts/crafting.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'example/serverdata/scripts/crafting.lua') 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 -- cgit