CharactersTable: Difference between revisions

From PSwiki
Jump to navigation Jump to search
No edit summary
Grimston (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
This table holds all the characters in the game.  This includes players, monsters, bosses.  Anything that can be thought of as an 'alive' object.  
This table holds all the characters in the game.  This includes players, monsters, bosses.  Anything that can be thought of as an 'alive' object.  
{| border=1
 
{| class="wikitable"
|+
!UE
!Field
!Type
!Key Type
!Default
!Extra
!Description
|-
|
|id
|int(10) unsigned
|PRI
|
|auto_increment
|unique character id 
|-
|
|name
|varchar(30)
|MUL
|
|
|Character's first name in the game. 
|-
|
|lastname
|varchar(30)
|MUL
|
|
|The last name of the character. 
|-
|
|old_lastname
|varchar(30)
|
|
|
|The old last name ( used in termination of a marriage ) 
|-
|
|racegender_id
|smallint(5) unsigned
|
|0
|
|Key into the Race_infoTable for the race and gender of this character. 
|-
|
|character_type
|int(10) unsigned
|
|0
|
|PLAYER = 0,NPC = 1, PET = 2, MOUNT = 3, MOUNTPET = 4 
|-
|-
! field
|
! type
|base_strength
! foreign key
|float(10,2)
! description
|
|0.00
|
|Character strength (no buffs, but base strength value) 
|-
|-
| id
|
| int
|base_agility
| N
|float(10,2)
| unique character id
|
|0.00
|
|Character agility (no buffs, but base value) 
|-
|-
| name
|
| varchar(30)
|base_endurance
| N
|float(10,2)
| Character's first name in the game.
|
|0.00
|
|Character endurance (no buffs, but base value) 
|-
|-
| lastname
|
| varchar(30)
|base_intelligence
| N
|float(10,2)
| The last name of the character.  
|
|0.00
|
|Character intelligence (no buffs, but base value) 
|-
|-
| old_lastname
|
| varchar(30)
|base_will
| N
|float(10,2)
| The old last name ( used in termination of a marriage )
|
|0.00
|
|Character will (no buffs, but base value)
|-
|-
| racegender_id
|
| smallint(5)
|base_charisma
| Y
|float(10,2)
| Key into the [[Race_infoTable]] for the race and gender of this character.  
|
|0.00
|
|Character charisma (no buffs, but base value) 
|-
|-
| character_type
|
| int(10)
|base_hitpoints_max
| N
|float(10,2)
| PLAYER = 0,NPC = 1, PET = 2, MOUNT = 3, MOUNTPET = 4
|
|0.00
|
|The max character hitpoints. If set to 0 it will use an equation to determine the max hitpoints from character skills.
|-
|-
| base_strength
|
| float(10,2)
|mod_hitpoints
| N
|float(10,2)
| Character strength (no buffs, but base strength value)
|
|0.00
|
|The character's current hitpoint value
|-
|-
| base_agility
|
| float(10,2)
|base_mana_max
| N
|float(10,2)
| Character agility (no buffs, but base value)
|
|0.00
|
|The character's base mana. If set to 0 will use skills to determine max mana.
|-
|-
| base_endurance
|
| float(10,2)
|mod_mana
| N
|float(10,2)
| Character endurance (no buffs, but base value)
|
|0.00
|
|The character's current mana value
|-
|-
| base_intelligence
|
| float(10,2)
|stamina_physical
| N
|float(10,2)
| Character intelligence (no buffs, but base value)
|
|0.00
|
|The character's physical stamina 
|-
|-
| base_will
|
| float(10,2)
|stamina_mental
| N
|float(10,2)
| Character will (no buffs, but base value)
|
|0.00
|
|The character's mental stamina. 
|-
|-
| base_charisma
|
| float(10,2)
|money_circles
| N
|int(10) unsigned
| Character charisma (no buffs, but base value)
|
|0
|
|The number of circles the character has. 
|-
|-
| base_hitpoints_max
|
| float(10,2)
|money_octas
| N
|int(10) unsigned
| The max character hitpointsIf set to 0 it will use an equation to determine the max hitpoints from character skills.
|
|0
|
|The number of octas the character has.   
|-
|-
| mod_hitpoints
|
| float(10,2)
|money_hexas
| N
|int(10) unsigned
| The character's current hitpoint value.  
|
|0
|
|The number of hexas the character has.
|-
|-
| base_mana_max
|
| float(10,2)
|money_trias
| N
|int(10) unsigned
| The character's base manaIf set to 0 will use skills to determine max mana.
|
|0
|
|The number of trias the character has.   
|-
|-
| mod_mana
|
| float(10,2)
|bank_money_circles
| N
|int(10) unsigned
| The character's current mana value.  
|
|0
|
|The number of circles the character has (banked).
|-
|-
| stamina_physical
|
| float(10,2)
|bank_money_octas
| N
|int(10) unsigned
| The character's physical stamina
|
|0
|
|The number of octas the character has (banked). 
|-
|-
| stamina_mental
|
| float(10,2)
|bank_money_hexas
| N
|int(10) unsigned
| The character's mental stamina.  
|
|0
|
|The number of hexas the character has (banked).
|-
|-
| money_circles
|
| int(10)
|bank_money_trias
| N
|int(10) unsigned
| The number of circles the character has.
|
|0
|
|The number of trias the character has (banked).
|-
|-
| money_octas
|
| int(10)
|loc_instance
| N
|int(11) unsigned
| The number of octas the character has.
|
|0
|
|Instance number the character is in.
|-
|-
| money_hexas
|
| int(10)
|loc_sector_id
| N
|int(10) unsigned
| The number of hexas the character has.
|
|0
|
|The ID of the sector the character is in.
|-
|-
| money_trias
|
| int(10)
|loc_x
| N
|float(10,2)
| The number of trias the character has.
|
|0.00
|
|X location of character in world.
|-
|-
| bank_money_circles
|
| int(10)
|loc_y
| N
|float(10,2)
| The number of circles the character has (banked).
|
|0.00
|
|Y location of character in world.
|-
|-
| bank_money_octas
|
| int(10)
|loc_z
| N
|float(10,2)
| The number of octas the character has (banked).
|
|0.00
|
|Z location of character in world.
|-
|-
| bank_money_hexas
|
| int(10)
|loc_yrot
| N
|float(10,2)
| The number of hexas the character has (banked).
|
|0.00
|
|The direction the character is facing.
|-
|-
| bank_money_trias
|
| int(10)
|guild_member_of
| N
|int(10) unsigned
| The number of trias the character has (banked).
|
|0
|
|The ID key of the guild this character is a member of.
|-
|-
| loc_instance
|
| int(11)
|guild_level
| N
|tinyint(1) unsigned
| Instance number the character is in.
|
|0
|
|The rank this character is in their guild.
|-
|-
| loc_sector_id
|
| int(10)
|guild_additional_privileges
| Y
|smallint(3) unsigned
| The ID of the sector the character is in.
|
|0
|
|Contains a bitfield with the additional priviledges assigned to this char (additional to the guild level it's in)
|-
|-
| loc_x
|
| float(10,2)
|guild_denied_privileges
| N
|smallint(3) unsigned
| X location of character in world.
|
|0
|
|Contains a bitfield with the removed priviledges from this char (removed from the guild level it's in)
|-
|-
| loc_y
|
| float(10,2)
|guild_points
| N
|int(10) unsigned
| Y location of character in world.
|
|0
|
|Number of points character has in the guild.
|-
|-
| loc_z
|
| float(10,2)
|guild_public_notes
| N
|varchar(255)
| Z location of character in world.
|
|
|
|Character's public guild note.
|-
|-
| loc_yrot
|
| float(10,2)
|guild_private_notes
| N
|varchar(255)
| The direction the character is facing.
|
|0
|
|Character's private guild note.
|-
|-
| guild_member_of
|
| int(10)
|join_notifications
| Y
|tinyint(1) unsigned
| The ID key of the guild this character is a member of.
|
|0
|
|Contains a bitfield with the notifications being issued to this client about players login/logoff
|-
|-
| guild_level
|
| tinyint(1)
|last_login
| N
|datetime
| The rank this character is in their guild.
|
|
|
|The time this character last logged in.
|-
|-
| guild_points
|
| int(10)
|pet_elapsed_time
| N
|float(10,2)
| Number of points character has in the guild.
|
|0.00
|
|
|-
|-
| guild_public_notes
|
| varchar(255)
|progression_script
| N
|blob
| Character's public guild note.
|
|
|
|Script that needs to run on the player when they log back in.
|-
|-
| guild_private_notes
|
| float(10,2)
|npc_spawn_rule
| N
|int(10) unsigned
| Character's private guild note.
|
|0
|
|Key into spawn rules table for the rule to use.
|-
|-
| last_login
|
| datetime
|npc_master_id
| N
|int(10) unsigned
| The time this character last logged in.
|
|0
|
|Key into characters_table to use as the base stats for this character.
|-
|-
| faction_standings
|
| blob
|npc_impervious_ind
| N
|char(1)
| CSV string that holds faction ratings.  
|
|N
|
|Y/N if this character is allowed to be attacked.
|-
|-
| progression_script
|
| blob
|account_id
| N
|int(10) unsigned
| Script that needs to run on the player when they log back in.
|MUL
|0
|
|Key into accounts table for the owner of this character ( or npcclient owner )
|-
|-
| npc_spawn_rule
|
| int(10)
|time_connected_sec
| Y
|int(10) unsigned
| Key into [[Npc_spawn_rulesTable|spawn rules table]] for the rule to use.  
|
|0
|
|Total time this character has played.
|-
|-
| npc_master_id
|
| int(10)
|npc_addl_loot_category_id
| Y
|int(10) unsigned
| Key into characters_table to use as the base stats for this character.
|
|0
|
|Used to add additional looting category for this character.
|-
|-
| npc_impervious_ind
|
| char(1)
|experience_points
| N
|int(10) unsigned
| Y/N if this character is allowed to be attacked.
|
|0
|
|The amount of experience points this character has 
|-
|-
| account_id
|
| int(10)
|progression_points
| Y
|int(10) unsigned
| Key into accounts table for the owner of this character ( or npcclient owner )
|
|0
|
|The current number of progression_points this character has. 
|-
|-
| time_connected_sec
|
| int(10)
|description
| N
|text
| Total time this character has played.
|
|
|
|The characters description (bio) 
|-
|-
| npc_addl_loot_category_id
|
| int(10)
|description_ooc
| Y
|text
| Used to add additional looting category for this character.
|
|
|
|The characters out of character description 
|-
|-
| experience_points
|
| int(10)
|creation_info
| N
|text
| The amount of experience points this character has
|
|
|
|  
|-
|-
| progression_points
|
| int(10)
|description_life
| N
|text
| The current number of progression_points this character has.
|
|
|
|  
|-
|-
| description
|
| text
|kill_exp
| N
|int(5)
| The characters description (bio)
|
|10
|
|The amount of experience this character will give when killed. 
|-
|-
| kill_exp
|
| int(5)
|animal_affinity
| N
|text
| The amount of experience this character will give when killed.
|
|
|
|???
|-
|-
| animal_affinity
|
| text
|help_event_flags
| N
|int(11) unsigned
| ???
|
|0
|
|Bit field of which instruction events have played for him.
|-
|-
| help_event_flags
|DIF
| int(11)
|creation_time
| N
|timestamp
| Bit field of which instruction events have played for him.
|
|CURRENT_TIMESTAMP
|
|  Nullable used to be 'YES' in PSLegacy.
|-
|-
| creation_time
|
| timestamp
|banker
| N
|tinyint(1) unsigned
| The time this character was created.  
|
|0
|
|Flag if this is a banker character.
|-
|-
| banker
|
| tinyint(1)
|statue
| N
|tinyint(1) unsigned
| Flag if this is a banker character.
|
|0
|
|Determines if the character is a statue so will be put in STATUE mode
|}
|}


[[Category:Engine documents]]
[[Category:Engine documents]]

Latest revision as of 14:33, 11 January 2022

This table holds all the characters in the game. This includes players, monsters, bosses. Anything that can be thought of as an 'alive' object.

UE Field Type Key Type Default Extra Description
id int(10) unsigned PRI auto_increment unique character id
name varchar(30) MUL Character's first name in the game.
lastname varchar(30) MUL The last name of the character.
old_lastname varchar(30) The old last name ( used in termination of a marriage )
racegender_id smallint(5) unsigned 0 Key into the Race_infoTable for the race and gender of this character.
character_type int(10) unsigned 0 PLAYER = 0,NPC = 1, PET = 2, MOUNT = 3, MOUNTPET = 4
base_strength float(10,2) 0.00 Character strength (no buffs, but base strength value)
base_agility float(10,2) 0.00 Character agility (no buffs, but base value)
base_endurance float(10,2) 0.00 Character endurance (no buffs, but base value)
base_intelligence float(10,2) 0.00 Character intelligence (no buffs, but base value)
base_will float(10,2) 0.00 Character will (no buffs, but base value)
base_charisma float(10,2) 0.00 Character charisma (no buffs, but base value)
base_hitpoints_max float(10,2) 0.00 The max character hitpoints. If set to 0 it will use an equation to determine the max hitpoints from character skills.
mod_hitpoints float(10,2) 0.00 The character's current hitpoint value.
base_mana_max float(10,2) 0.00 The character's base mana. If set to 0 will use skills to determine max mana.
mod_mana float(10,2) 0.00 The character's current mana value.
stamina_physical float(10,2) 0.00 The character's physical stamina
stamina_mental float(10,2) 0.00 The character's mental stamina.
money_circles int(10) unsigned 0 The number of circles the character has.
money_octas int(10) unsigned 0 The number of octas the character has.
money_hexas int(10) unsigned 0 The number of hexas the character has.
money_trias int(10) unsigned 0 The number of trias the character has.
bank_money_circles int(10) unsigned 0 The number of circles the character has (banked).
bank_money_octas int(10) unsigned 0 The number of octas the character has (banked).
bank_money_hexas int(10) unsigned 0 The number of hexas the character has (banked).
bank_money_trias int(10) unsigned 0 The number of trias the character has (banked).
loc_instance int(11) unsigned 0 Instance number the character is in.
loc_sector_id int(10) unsigned 0 The ID of the sector the character is in.
loc_x float(10,2) 0.00 X location of character in world.
loc_y float(10,2) 0.00 Y location of character in world.
loc_z float(10,2) 0.00 Z location of character in world.
loc_yrot float(10,2) 0.00 The direction the character is facing.
guild_member_of int(10) unsigned 0 The ID key of the guild this character is a member of.
guild_level tinyint(1) unsigned 0 The rank this character is in their guild.
guild_additional_privileges smallint(3) unsigned 0 Contains a bitfield with the additional priviledges assigned to this char (additional to the guild level it's in)
guild_denied_privileges smallint(3) unsigned 0 Contains a bitfield with the removed priviledges from this char (removed from the guild level it's in)
guild_points int(10) unsigned 0 Number of points character has in the guild.
guild_public_notes varchar(255) Character's public guild note.
guild_private_notes varchar(255) 0 Character's private guild note.
join_notifications tinyint(1) unsigned 0 Contains a bitfield with the notifications being issued to this client about players login/logoff
last_login datetime The time this character last logged in.
pet_elapsed_time float(10,2) 0.00
progression_script blob Script that needs to run on the player when they log back in.
npc_spawn_rule int(10) unsigned 0 Key into spawn rules table for the rule to use.
npc_master_id int(10) unsigned 0 Key into characters_table to use as the base stats for this character.
npc_impervious_ind char(1) N Y/N if this character is allowed to be attacked.
account_id int(10) unsigned MUL 0 Key into accounts table for the owner of this character ( or npcclient owner )
time_connected_sec int(10) unsigned 0 Total time this character has played.
npc_addl_loot_category_id int(10) unsigned 0 Used to add additional looting category for this character.
experience_points int(10) unsigned 0 The amount of experience points this character has
progression_points int(10) unsigned 0 The current number of progression_points this character has.
description text The characters description (bio)
description_ooc text The characters out of character description
creation_info text
description_life text
kill_exp int(5) 10 The amount of experience this character will give when killed.
animal_affinity text ???
help_event_flags int(11) unsigned 0 Bit field of which instruction events have played for him.
DIF creation_time timestamp CURRENT_TIMESTAMP Nullable used to be 'YES' in PSLegacy.
banker tinyint(1) unsigned 0 Flag if this is a banker character.
statue tinyint(1) unsigned 0 Determines if the character is a statue so will be put in STATUE mode