From 39b00578c249a3396bb03faa92bc9cccdcb1c68a Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 28 May 2010 02:59:45 +0200 Subject: Modified the npc_trade() lua function to permit selling the whole player inventory. It permits to open a sell box with every items in the player inventory as requested by Striker. Also added different return value support to both the buy selling functions, and made fixes where relevant. The test.lua script will be upgraded to show examples in a next commit. What's left to be done is to fix the inventory handling for both selling functions. (Sigh...) Concerns: Manasource mantis: #78, #101. Reviewed-by: Jaxad0127 --- src/scripting/luautil.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/scripting/luautil.cpp') diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp index 02de6ad..a3602d2 100644 --- a/src/scripting/luautil.cpp +++ b/src/scripting/luautil.cpp @@ -34,10 +34,21 @@ void raiseScriptError(lua_State *s, const char *format, ...) vsprintf(message, format, args); va_end( args ); - LOG_WARN("Lua script error: "<