DB Updates

This commit is contained in:
Image 2021-03-06 17:33:10 -05:00
parent 7f03a88414
commit fe70bba3b0
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,7 @@
alter table spells add column can_fizzle tinyint(1) not null default '1';
alter table items add column no_buy_back tinyint(1) unsigned not null default 0;
alter table character_items add column no_sale tinyint(1) unsigned not null default 0;
insert into commands set type=0,command='frombroker',subcommand='',handler=527;

View file

@ -0,0 +1,39 @@
CREATE TABLE character_spell_effects (
name varchar(64) not null default '',
caster_char_id int(10) unsigned NOT NULL DEFAULT 0,
target_char_id int(10) unsigned NOT NULL DEFAULT 0,
target_type tinyint(3) unsigned NOT NULL DEFAULT 0,
db_effect_type tinyint(3) unsigned NOT NULL DEFAULT 0,
spell_id int(10) unsigned NOT NULL DEFAULT 0,
effect_slot int(10) unsigned NOT NULL DEFAULT 0,
slot_pos int(10) unsigned NOT NULL DEFAULT 0,
icon smallint(5) unsigned NOT NULL DEFAULT 0,
icon_backdrop smallint(5) unsigned NOT NULL DEFAULT 0,
conc_used tinyint(3) unsigned NOT NULL DEFAULT 0,
tier tinyint(3) unsigned NOT NULL DEFAULT 0,
total_time float unsigned NOT NULL DEFAULT 0,
expire_timestamp int(10) unsigned NOT NULL DEFAULT 0,
lua_file text not null default '',
custom_spell tinyint(3) unsigned NOT NULL DEFAULT 0,
charid int(10) unsigned NOT NULL DEFAULT 0,
damage_remaining int(10) unsigned NOT NULL DEFAULT 0,
effect_bitmask int(10) unsigned NOT NULL DEFAULT 0,
num_triggers smallint(5) unsigned NOT NULL DEFAULT 0,
had_triggers tinyint(3) unsigned NOT NULL DEFAULT 0,
cancel_after_triggers tinyint(3) unsigned NOT NULL DEFAULT 0,
crit tinyint(3) unsigned NOT NULL DEFAULT 0,
last_spellattack_hit tinyint(3) unsigned NOT NULL DEFAULT 0,
interrupted tinyint(3) unsigned NOT NULL DEFAULT 0,
resisted tinyint(3) unsigned NOT NULL DEFAULT 0,
custom_function text not null default 'notset'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE character_spell_effect_targets (
caster_char_id int(10) unsigned NOT NULL DEFAULT 0,
target_char_id int(10) unsigned NOT NULL DEFAULT 0,
target_type tinyint(3) unsigned NOT NULL DEFAULT 0,
db_effect_type tinyint(3) unsigned NOT NULL DEFAULT 0,
spell_id int(10) unsigned NOT NULL DEFAULT 0,
effect_slot int(10) unsigned NOT NULL DEFAULT 0,
slot_pos int(10) unsigned NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=latin1;