diff options
author | Philipp Sehmisch <mana@crushnet.org> | 2010-07-09 15:21:50 +0200 |
---|---|---|
committer | Philipp Sehmisch <mana@crushnet.org> | 2010-07-09 15:22:11 +0200 |
commit | 26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2 (patch) | |
tree | 6d7ea0ebe8be228a61315f72122eed3f2f995a0b /src/sql/mysql/updates/update_8_to_9.sql | |
parent | 2627acefebc688d9d9733abe23ba5aae79f66ea0 (diff) | |
download | manaserv-26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2.tar.gz manaserv-26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2.tar.bz2 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/sql/mysql/updates/update_8_to_9.sql')
-rw-r--r-- | src/sql/mysql/updates/update_8_to_9.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sql/mysql/updates/update_8_to_9.sql b/src/sql/mysql/updates/update_8_to_9.sql new file mode 100644 index 00000000..499cd73e --- /dev/null +++ b/src/sql/mysql/updates/update_8_to_9.sql @@ -0,0 +1,16 @@ +-- Create table 'mana_char_specials' + +CREATE TABLE mana_char_specials +( + `char_id` int(10) unsigned NOT NULL, + `special_id` int(10) unsigned NOT NULL, + PRIMARY KEY (`char_id`, `special_id`), + FOREIGN KEY (`char_id`) + REFERENCES `mana_characters` (`id`) + ON DELETE CASCADE +) ENGINE=InnoDB +DEFAULT CHARSET=utf8; + + +UPDATE mana_world_states SET value = '9' WHERE state_name = 'database_version'; + |