summaryrefslogtreecommitdiffstats
path: root/src/scripting/script.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <mana@crushnet.org>2010-07-09 15:21:50 +0200
committerPhilipp Sehmisch <mana@crushnet.org>2010-07-09 15:22:11 +0200
commit26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2 (patch)
tree6d7ea0ebe8be228a61315f72122eed3f2f995a0b /src/scripting/script.hpp
parent2627acefebc688d9d9733abe23ba5aae79f66ea0 (diff)
downloadmanaserv-26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2.tar.gz
manaserv-26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2.tar.xz
manaserv-26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2.zip
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
Diffstat (limited to 'src/scripting/script.hpp')
-rw-r--r--src/scripting/script.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scripting/script.hpp b/src/scripting/script.hpp
index 96df085..0e87415 100644
--- a/src/scripting/script.hpp
+++ b/src/scripting/script.hpp
@@ -23,6 +23,7 @@
#include <string>
+#include "game-server/character.hpp"
#include "game-server/eventlistener.hpp"
class MapComposite;
@@ -135,11 +136,13 @@ class Script
* Runs a function from the global event script file
*/
static bool execute_global_event_function(const std::string &function, Being *obj);
-
+ static void addDataToSpecial(int specialId, Special *special);
+ static bool perform_special_action(int specialId, Being *caster);
protected:
static Script* global_event_script; // the global event script
+ static Script* special_actions_script; // the special actions script
std::string mScriptFile;
private: