SpellsTable: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
|  Created page with '{| border="1" |- ! field ! type ! foreign key ! description |- | id | integer | N | The unique ID for this spell.   |- | name | varchar | N | The name of the spell. |- | way_id |…' | mNo edit summary | ||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| {|  | {| class="wikitable" | ||
| |+ | |||
| !UE | |||
| !Field | |||
| !Type | |||
| !Key Type | |||
| !Default | |||
| !Extra | |||
| !Description | |||
| |- | |- | ||
| | | |||
| |id | |||
| |int(8) unsigned | |||
| |PRI | |||
| | | |||
| |auto_increment | |||
| |The unique ID for this spell.   | |||
| |- | |- | ||
| |  | | | ||
| |  | |name | ||
| |  | |varchar(30) | ||
| | The  | |UNI | ||
| | | |||
| | | |||
| |The name of the spell.    | |||
| |- | |- | ||
| |  | | | ||
| |  | |way_id | ||
| |  | |int(8) unsigned | ||
| | The  | | | ||
| |0 | |||
| | | |||
| |The ID of the way of magic   | |||
| |- | |- | ||
| |  | | | ||
| |  | |realm | ||
| |  | |tinyint(3) unsigned | ||
| | The  | | | ||
| |0 | |||
| | | |||
| |The level in the way the spell is.  | |||
| |- | |- | ||
| |  | | | ||
| |  | |casting_effect | ||
| |  | |varchar(255) | ||
| |  | | | ||
| | | |||
| | | |||
| |Name of visual/sound effect on the caster for casting spell.   | |||
| |- | |- | ||
| |  | | | ||
| | varchar | |image_name | ||
| |  | |varchar(100) | ||
| |  | | | ||
| | | |||
| | | |||
| |   | |||
| |- | |- | ||
| |  | | | ||
| |  | |spell_description | ||
| |  | |text | ||
| |  | | | ||
| | | |||
| | | |||
| |The description of the spell.   | |||
| |- | |- | ||
| |  | | | ||
| |  | |offensive | ||
| |  | |tinyint(1) | ||
| |   | | | ||
| |1 | |||
| | | |||
| |Flag (0/1) if this is an offensive spell.   | |||
| |- | |- | ||
| |  | | | ||
| |  | |max_power | ||
| |  | |float(4,2) | ||
| |  | | | ||
| |1 | |||
| | | |||
| | | |||
| |- | |- | ||
| |  | | | ||
| |  | |target_type | ||
| |  | |int(4) | ||
| |  | | | ||
| |32 | |||
| | | |||
| |Bitmask of valid target types.   | |||
| |- | |- | ||
| |  | | | ||
| |  | |cast_duration | ||
| |  | |text | ||
| |  | | | ||
| | | |||
| | | |||
| |   | |||
| |- | |- | ||
| |  | | | ||
| |  | |range | ||
| |text | |||
| | | |||
| | | |||
| | | |||
| |   | |   | ||
| |- | |||
| | | |||
| |aoe_radius | |||
| |text | |||
| | | |||
| | | |||
| | | |||
| |   | |   | ||
| |- | |- | ||
| |  | | | ||
| |  | |aoe_angle | ||
| |   | |text | ||
| | | |||
| | | |||
| | | |||
| |   | |   | ||
| |- | |- | ||
| |  | | | ||
| |  | |outcome | ||
| |   | |text | ||
| | | |||
| | | |||
| | | |||
| |   | |   | ||
| |- | |- | ||
| |  | | | ||
| |  | |cstr_npc_spell_category | ||
| |varchar(200) | |||
| | | |||
| | | |||
| | | |||
| |Name of spell category which is sent to npc perception system.   | |||
| | | |||
| |  | |||
| |  | |||
| |   | |||
| | Name of spell category which is sent to npc perception system. | |||
| |- | |- | ||
| | npc_spell_power | | | ||
| |  | |npc_spell_power | ||
| |  | |float(10,3) | ||
| | Relative power of spell as hint for the npc perception system. | | | ||
| |0.000 | |||
| | | |||
| |Relative power of spell as hint for the npc perception system.   | |||
| |} | |} | ||
| == Additional Notes == | == Additional Notes == | ||
| Line 106: | Line 159: | ||
| * TARGET_GM = 0x80 | * TARGET_GM = 0x80 | ||
| * TARGET_PVP = 0x100 | * TARGET_PVP = 0x100 | ||
| [[Category:Engine documents]] | |||
Latest revision as of 15:12, 11 January 2022
| UE | Field | Type | Key Type | Default | Extra | Description | 
|---|---|---|---|---|---|---|
| id | int(8) unsigned | PRI | auto_increment | The unique ID for this spell. | ||
| name | varchar(30) | UNI | The name of the spell. | |||
| way_id | int(8) unsigned | 0 | The ID of the way of magic | |||
| realm | tinyint(3) unsigned | 0 | The level in the way the spell is. | |||
| casting_effect | varchar(255) | Name of visual/sound effect on the caster for casting spell. | ||||
| image_name | varchar(100) | |||||
| spell_description | text | The description of the spell. | ||||
| offensive | tinyint(1) | 1 | Flag (0/1) if this is an offensive spell. | |||
| max_power | float(4,2) | 1 | ||||
| target_type | int(4) | 32 | Bitmask of valid target types. | |||
| cast_duration | text | |||||
| range | text | |||||
| aoe_radius | text | |||||
| aoe_angle | text | |||||
| outcome | text | |||||
| cstr_npc_spell_category | varchar(200) | Name of spell category which is sent to npc perception system. | ||||
| npc_spell_power | float(10,3) | 0.000 | Relative power of spell as hint for the npc perception system. | 
Additional Notes
target_type
The target-type values for the bitmask are defined in src/server/client.h. At the time of writing these are:
- TARGET_NONE = 0x01
- TARGET_ITEM = 0x04
- TARGET_SELF = 0x08
- TARGET_FRIEND = 0x10
- TARGET_FOE = 0x20
- TARGET_DEAD = 0x40
- TARGET_GM = 0x80
- TARGET_PVP = 0x100