From 26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Fri, 9 Jul 2010 15:21:50 +0200 Subject: Added LUA script bindings for manipulating the specials available to a character. Added script call for getting the cost of a special (recharge only for now) Deleting specials works server-sided but the client isn't informed about it properly. Specials without recharge cost don't appear for the player. Both of these features require an additional netcode message. Reviewed-by: Freeyorp --- src/scripting/luascript.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/scripting/luascript.cpp') diff --git a/src/scripting/luascript.cpp b/src/scripting/luascript.cpp index b48ec511..33145b56 100644 --- a/src/scripting/luascript.cpp +++ b/src/scripting/luascript.cpp @@ -167,3 +167,14 @@ bool LuaScript::load_global_event_script(const std::string &file) } return true; } + +bool LuaScript::load_special_actions_script(const std::string &file) +{ + Script::special_actions_script = new LuaScript(); + if (!Script::special_actions_script->loadFile(file)) + { + Script::special_actions_script = NULL; + return false; + } + return true; +} -- cgit v1.2.3-70-g09d2