From 5ff34fd2458dff28d664c90fb93f455231f8633c Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 11 Mar 2012 18:16:16 +0100 Subject: Register Lua script API functions into the global namespace Scripts mostly execute the Mana script API, and it seems like just unnecessary verbosity to refer to the 'mana' table all the time. This table no longer exists now. Reviewed-by: Erik Schilling --- example/scripts/npcs/emotemaker.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example/scripts/npcs/emotemaker.lua') diff --git a/example/scripts/npcs/emotemaker.lua b/example/scripts/npcs/emotemaker.lua index 4aa39e8..0f54663 100644 --- a/example/scripts/npcs/emotemaker.lua +++ b/example/scripts/npcs/emotemaker.lua @@ -21,8 +21,8 @@ function emote_talk(npc, ch) elseif emo_state == EMOTE_HAPPY then state = "happy" end - mana.npc_message(npc, ch, string.format("The emotional palm seems %s.", state)) - v = mana.npc_choice(npc, ch, + npc_message(npc, ch, string.format("The emotional palm seems %s.", state)) + v = npc_choice(npc, ch, "Stupid palm, you are ugly and everyone hates you!", "You are such a nice palm, let me give you a hug.", "Are you a cocos nucifera or a syagrus romanzoffiana?") @@ -40,6 +40,6 @@ function emote_update(npc) emo_count = emo_count + 1 if emo_count > 50 then emo_count = 0 - mana.effect_create(emo_state, npc) + effect_create(emo_state, npc) end end -- cgit