From 502d5c892c92b4a71eceae1d275032100d42dd23 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Mon, 19 May 2008 15:07:45 +0000 Subject: Implemented NPC names. Implemented the theoretical possibility to have named monsters along the way. Note that the syntax of the LUA functions for creating NPCs has changed. --- src/scripting/script.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/scripting/script.cpp') diff --git a/src/scripting/script.cpp b/src/scripting/script.cpp index 0ebc2b4a..408bf28a 100644 --- a/src/scripting/script.cpp +++ b/src/scripting/script.cpp @@ -77,10 +77,11 @@ void Script::loadFile(std::string const &name) } } -void Script::loadNPC(int id, int x, int y, char const *prog) +void Script::loadNPC(std::string const &name, int id, int x, int y, char const *prog) { load(prog); prepare("create_npc_delayed"); + push(name); push(id); push(x); push(y); -- cgit v1.2.3-60-g2f50