Atrinik Server 2.5
Data Fields
pl_player Struct Reference

#include <player.h>

Data Fields

struct pl_playerprev
struct pl_playernext
socket_struct socket
char maplevel [MAX_BUF]
char firemode_name [BIG_NAME *2]
char quick_name [BIG_NAME *3]
char savebed_map [MAX_BUF]
char ext_title [MAX_EXT_TITLE]
char levhp [MAXLEVEL+1]
char levsp [MAXLEVEL+1]
char levgrace [MAXLEVEL+1]
char killer [BIG_NAME]
char write_buf [MAX_BUF]
char password [PLAYER_PASSWORD_MAX+1]
char followed_player [BIG_NAME]
char ** cmd_permissions
shstr ** faction_ids
char map_info_name [HUGE_BUF]
char map_info_music [HUGE_BUF]
char map_info_weather [MAX_BUF]
struct mapdeflast_update
objectob
objectselected_weapon
objectskill_weapon
objecttarget_object
objectequipment [PLAYER_EQUIP_MAX]
objectskill_ptr [NROFSKILLS]
objectlast_skill_ob [MAX_EXP_CAT]
objectexp_ptr [MAX_EXP_CAT]
objectmark
objectmap_below
objectmap_above
objectcontainer
objectcontainer_above
objectcontainer_below
objectclass_ob
objectquest_container
objectready_object [READY_OBJ_MAX]
tag_t ready_object_tag [READY_OBJ_MAX]
int target_hp
int set_skill_weapon
int set_skill_archery
int bed_x
int bed_y
int firemode_type
int firemode_tag1
int firemode_tag2
int blocked_los [MAP_CLIENT_X][MAP_CLIENT_Y]
int last_skill_index
int map_update_cmd
int map_update_tile
int map_tile_x
int map_tile_y
int map_off_x
int map_off_y
int num_cmd_permissions
int num_faction_ids
sint64 * faction_reputation
sint64 fame
float action_timer
float last_action_timer
float last_speed
char target_hp_p
char weapon_sp
char last_weapon_sp
char last_skill_level [MAX_EXP_CAT]
uint8 last_skill_id [MAX_EXP_CAT]
unsigned char last_level
signed char digestion
signed char gen_sp_armour
signed char gen_hp
signed char gen_sp
signed char gen_grace
unsigned char state
unsigned char fire_on
unsigned char run_on
long last_weight
uint32 container_count
uint32 action_casting
uint32 action_range
uint32 mark_count
sint64 last_skill_exp [MAX_EXP_CAT]
sint64 skill_exp [NROFSKILLS]
uint64 stat_deaths
uint64 stat_kills_mob
uint64 stat_kills_pvp
uint64 stat_damage_taken
uint64 stat_damage_dealt
uint64 stat_hp_regen
uint64 stat_sp_regen
uint64 stat_grace_regen
uint64 stat_food_consumed
uint64 stat_food_num_consumed
uint64 stat_damage_healed
uint64 stat_damage_healed_other
uint64 stat_damage_heal_received
uint64 stat_steps_taken
uint64 stat_spells_cast
uint64 stat_prayers_cast
uint64 stat_time_played
uint64 stat_time_afk
time_t last_stat_time_played
uint64 stat_arrows_fired
uint64 stat_missiles_thrown
uint64 stat_books_read
uint64 stat_unique_books_read
uint64 stat_potions_used
uint64 stat_scrolls_used
uint64 stat_exp_gained
uint64 stat_items_dropped
uint64 stat_items_picked
uint64 stat_corpses_searched
uint64 stat_traps_found
uint64 stat_traps_disarmed
uint64 stat_traps_sprung
uint64 stat_afk_used
uint64 stat_formed_party
uint64 stat_joined_party
uint64 stat_renamed_items
uint64 stat_emotes_used
uint64 stat_books_inscribed
uint32 target_object_count
uint32 target_map_pos
uint32 last_weight_limit
uint32 update_los:1
uint32 combat_mode:1
uint32 praying:1
uint32 was_praying:1
uint32 dm_light:1
uint32 dm_removed_from_map:1
uint32 afk:1
uint32 ms_privacy:1
uint32 update_skills:1
uint32 count
sint32 last_ranged_ws
sint16 chosen_spell
uint16 last_flags
uint16 gen_hp_remainder
uint16 gen_sp_remainder
uint16 gen_grace_remainder
uint16 gen_client_hp
uint16 gen_client_sp
uint16 gen_client_grace
uint16 last_gen_hp
uint16 last_gen_sp
uint16 last_gen_grace
sint16 client_dam
sint16 skill_level [NROFSKILLS]
sint16 encumbrance
uint16 anim_flags
uint16 nrofknownspells
sint16 known_spells [NROFREALSPELLS]
sint16 item_power
sint16 spell_quickslots [MAX_QUICKSLOT]
sint16 last_ranged_dam
sint16 last_ranged_wc
sint8 last_protection [NROFATTACKS]
uint8 no_shout
uint8 dm_stealth
uint8 last_party_hp
uint8 last_party_sp
uint8 last_party_grace
rangetype shoottype
living orig_stats
living last_stats
party_structparty
player_pathmove_path
player_pathmove_path_end

Detailed Description

The player structure.

Definition at line 201 of file player.h.


Field Documentation

Used for action timer for spell casting.

Definition at line 456 of file player.h.

Used for action timer for ranged attacks.

Definition at line 459 of file player.h.

weapon_speed_left * 1000 and cast from float to int for client.

Definition at line 389 of file player.h.

Is the player AFK?

Definition at line 614 of file player.h.

Some anim flags for special player animation handling.

Definition at line 671 of file player.h.

X coordinate of respawn (savebed).

Definition at line 336 of file player.h.

Y coordinate of respawn (savebed).

Definition at line 339 of file player.h.

int pl_player::blocked_los[MAP_CLIENT_X][MAP_CLIENT_Y]

Array showing what spaces the player can see. For maps smaller than MAP_CLIENT_.., the upper left is used.

Definition at line 353 of file player.h.

Type of readied spell.

Definition at line 629 of file player.h.

Object defining player's class. Can be NULL.

Definition at line 315 of file player.h.

Condition adjusted damage sent to client.

Definition at line 662 of file player.h.

DM command permissions.

Definition at line 251 of file player.h.

If true, player is in combat mode.

Definition at line 599 of file player.h.

Current container being used.

Definition at line 305 of file player.h.

First player accessing player::container.

Definition at line 308 of file player.h.

Last player accessing player::container.

Definition at line 311 of file player.h.

The count of the container.

Definition at line 453 of file player.h.

Any numbers typed before a command.

Definition at line 623 of file player.h.

signed char pl_player::digestion

Any bonuses/penalties to digestion.

Definition at line 416 of file player.h.

If true, all maps are shown in daylight for the player.

Definition at line 608 of file player.h.

Player was removed from a map. Used by /resetmap command.

Definition at line 611 of file player.h.

If true, no message to other players about entering the game, and no entry in /who list.

Definition at line 700 of file player.h.

How much our player is encumbered.

Definition at line 668 of file player.h.

object* pl_player::equipment[PLAYER_EQUIP_MAX]

Pointers to applied items in the player's inventory.

Definition at line 284 of file player.h.

object* pl_player::exp_ptr[MAX_EXP_CAT]

Experience objects.

Definition at line 293 of file player.h.

char pl_player::ext_title[MAX_EXT_TITLE]

For client: <Rank> <Name>
<Gender> <Race> <Profession>

Definition at line 227 of file player.h.

Faction IDs.

Definition at line 254 of file player.h.

Reputations with the various factions.

Definition at line 383 of file player.h.

Fame rating in the world.

Definition at line 386 of file player.h.

unsigned char pl_player::fire_on

Player should fire object, not move.

Definition at line 434 of file player.h.

char pl_player::firemode_name[BIG_NAME *2]

Skill used for fire mode.

Definition at line 218 of file player.h.

ID of the object being thrown.

Deprecated:

Definition at line 345 of file player.h.

ID of the object being used as ammunition for bow/crossbow/etc.

Deprecated:

Definition at line 348 of file player.h.

firemode_xxx are set from command_fire()

Definition at line 342 of file player.h.

Player the DM is following.

Definition at line 248 of file player.h.

Regeneration speed of grace.

Definition at line 650 of file player.h.

Regeneration speed of HP.

Definition at line 644 of file player.h.

Regeneration speed of mana.

Definition at line 647 of file player.h.

signed char pl_player::gen_grace

Bonuses to regeneration speed of grace.

Definition at line 428 of file player.h.

Remainder for grace regen.

Definition at line 641 of file player.h.

signed char pl_player::gen_hp

Bonuses to regeneration speed of hp.

Definition at line 422 of file player.h.

Remainder for HP regen.

Definition at line 635 of file player.h.

signed char pl_player::gen_sp

Bonuses to regeneration speed of sp.

Definition at line 425 of file player.h.

Penalty to sp regen from armour.

Definition at line 419 of file player.h.

Remainder for mana regen.

Definition at line 638 of file player.h.

Total item power of objects equipped.

Definition at line 680 of file player.h.

char pl_player::killer[BIG_NAME]

Who killed this player.

Definition at line 239 of file player.h.

Spells known by the player.

Definition at line 677 of file player.h.

Previous value of action timer sent to the client.

Definition at line 392 of file player.h.

Last fire/run on flags sent to client.

Definition at line 632 of file player.h.

Last regeneration of grace sent to client.

Definition at line 659 of file player.h.

Last regeneration of HP sent to client.

Definition at line 653 of file player.h.

Last regeneration of mana sent to client.

Definition at line 656 of file player.h.

unsigned char pl_player::last_level

Last overall level sent to the client.

Definition at line 413 of file player.h.

Last grace sent to party members.

Definition at line 709 of file player.h.

Last HP sent to party members.

Definition at line 703 of file player.h.

Last SP sent to party members.

Definition at line 706 of file player.h.

Table of protections last sent to the client.

Definition at line 692 of file player.h.

Last ranged damage sent.

Definition at line 686 of file player.h.

Last ranged wc sent.

Definition at line 689 of file player.h.

Last ranged weapon speed sent.

Definition at line 626 of file player.h.

sint64 pl_player::last_skill_exp[MAX_EXP_CAT]

Last skill category experience sent to client.

Definition at line 465 of file player.h.

The CS_STATS_ id for client STATS cmd.

Definition at line 410 of file player.h.

This is initialized from init_player_exp().

Definition at line 356 of file player.h.

char pl_player::last_skill_level[MAX_EXP_CAT]

Last experience category level sent to client.

Definition at line 407 of file player.h.

The exp object table.

Definition at line 290 of file player.h.

Last speed value sent to client.

Definition at line 395 of file player.h.

Cache for value of ::stat_time_played.

Definition at line 525 of file player.h.

Last stats sent to the client.

Definition at line 718 of file player.h.

Last sent map.

Definition at line 267 of file player.h.

Last weapon speed index.

Definition at line 404 of file player.h.

Last weight sent to the player.

Definition at line 445 of file player.h.

Last weight limit sent to client.

Definition at line 593 of file player.h.

char pl_player::levgrace[MAXLEVEL+1]

How much grace the player gained on that level.

Definition at line 236 of file player.h.

char pl_player::levhp[MAXLEVEL+1]

How much HP the player gained on that level.

Definition at line 230 of file player.h.

char pl_player::levsp[MAXLEVEL+1]

How much SP the player gained on that level.

Definition at line 233 of file player.h.

Pointer used from local map player chain.

Definition at line 302 of file player.h.

Pointer used from local map player chain.

Definition at line 299 of file player.h.

char pl_player::map_info_music[HUGE_BUF]

Last map info music sent.

Definition at line 260 of file player.h.

char pl_player::map_info_name[HUGE_BUF]

Last map info name sent.

Definition at line 257 of file player.h.

Last map info weather sent.

Definition at line 263 of file player.h.

Scroll X offset between 2 map updates.

Definition at line 371 of file player.h.

Scroll Y offset between 2 map updates.

Definition at line 374 of file player.h.

Last X position we sent to client.

Definition at line 365 of file player.h.

Last Y position we sent to client.

Definition at line 368 of file player.h.

Map update command.

Definition at line 359 of file player.h.

Tile for map update.

Definition at line 362 of file player.h.

char pl_player::maplevel[MAX_BUF]

Name of the map the player is on.

Definition at line 215 of file player.h.

Marked object.

Definition at line 296 of file player.h.

Count of marked object.

Definition at line 462 of file player.h.

Start of the movement path queue.

Definition at line 724 of file player.h.

End of the movement path queue.

Definition at line 727 of file player.h.

Is metaserver privacy activated?

Definition at line 617 of file player.h.

Pointer to next player, NULL if this is last.

Definition at line 207 of file player.h.

If 1, the player is not able to shout.

Definition at line 695 of file player.h.

Number of known spells..

Definition at line 674 of file player.h.

Number of player::cmd_permissions.

Definition at line 377 of file player.h.

Number of faction IDs.

Definition at line 380 of file player.h.

The object representing the player.

Definition at line 270 of file player.h.

Can be less in case of poisoning.

Definition at line 715 of file player.h.

Pointer to the party this player is member of.

Definition at line 721 of file player.h.

char pl_player::password[PLAYER_PASSWORD_MAX+1]

The player's password. May be encrypted.

Definition at line 245 of file player.h.

If true, player is praying and regaining grace.

Definition at line 602 of file player.h.

Pointer to previous player, NULL if this is first.

Definition at line 204 of file player.h.

Player's quest container.

Definition at line 318 of file player.h.

char pl_player::quick_name[BIG_NAME *3]

Rank + name +" the xxxx"

Definition at line 221 of file player.h.

Readied objects (arrows, quivers, bolts, etc).

Definition at line 321 of file player.h.

UIDs of the readied objects.

Definition at line 324 of file player.h.

unsigned char pl_player::run_on

Player should keep moving in dir until run is off.

Definition at line 437 of file player.h.

char pl_player::savebed_map[MAX_BUF]

Map where player will respawn after death.

Definition at line 224 of file player.h.

The weapon in our hand.

Definition at line 273 of file player.h.

Skill number of used archery skill for fast access.

Definition at line 333 of file player.h.

Skill number of used weapon skill for fast access.

Definition at line 330 of file player.h.

Which range attack is being used by player.

Definition at line 712 of file player.h.

sint64 pl_player::skill_exp[NROFSKILLS]

Skill experience for all skills.

Definition at line 468 of file player.h.

Table of last skill levels sent to client.

Definition at line 665 of file player.h.

Quick jump table to skill objects in the player's inventory.

Definition at line 287 of file player.h.

The hand-to-hand skill we use when we not using a weapon (like karate).

Definition at line 278 of file player.h.

Socket information for this player.

Definition at line 210 of file player.h.

IDs of spell quickslots.

Definition at line 683 of file player.h.

Number of times the player has enabled AFK mode.

Definition at line 567 of file player.h.

Number of arrows/bolts/etc fired.

Definition at line 528 of file player.h.

Number of times the player used inscription skill to write in a book.

Definition at line 584 of file player.h.

Number of books read.

Definition at line 534 of file player.h.

Total number of unique corpses searched.

Definition at line 555 of file player.h.

Total damage dealt.

Definition at line 483 of file player.h.

Amount of HP healed by receiving healing from friendly creatures.

Definition at line 507 of file player.h.

Amount of HP healed using heal spells.

Definition at line 501 of file player.h.

Amount of HP healed using heal spells on friendly targets.

Definition at line 504 of file player.h.

Total damage taken.

Definition at line 480 of file player.h.

Number of deaths.

Definition at line 471 of file player.h.

Number of times the player has used an emote command.

Definition at line 579 of file player.h.

Total experience gained.

Definition at line 546 of file player.h.

How many food points have been consumed.

Definition at line 495 of file player.h.

Number of food items consumed.

Definition at line 498 of file player.h.

Number of times the player has formed a party.

Definition at line 570 of file player.h.

Grace regenerated.

Definition at line 492 of file player.h.

HP regenerated.

Definition at line 486 of file player.h.

Total number of items dropped.

Definition at line 549 of file player.h.

Total number of items picked up.

Definition at line 552 of file player.h.

Number of times the player has joined a party.

Definition at line 573 of file player.h.

Number of monsters killed.

Definition at line 474 of file player.h.

Number of players killed in PvP.

Definition at line 477 of file player.h.

Number of missiles thrown.

Definition at line 531 of file player.h.

Number of potions used.

Definition at line 540 of file player.h.

Number of prayers cast.

Definition at line 516 of file player.h.

Number of items the player has renamed an item.

Definition at line 576 of file player.h.

Number of scrolls used.

Definition at line 543 of file player.h.

Mana regenerated.

Definition at line 489 of file player.h.

Number of spells cast.

Definition at line 513 of file player.h.

Number of steps taken.

Definition at line 510 of file player.h.

Number of seconds spent AFK.

Definition at line 522 of file player.h.

Number of seconds played.

Definition at line 519 of file player.h.

Number of traps successfully disarmed.

Definition at line 561 of file player.h.

Number of traps found using the find traps skill.

Definition at line 558 of file player.h.

Number of traps sprung.

Definition at line 564 of file player.h.

Number of unique books read (the ones that give exp).

Definition at line 537 of file player.h.

unsigned char pl_player::state

Input state of the player (name, password, etc).

Definition at line 431 of file player.h.

For the client target HP marker.

Definition at line 327 of file player.h.

For the client target HP real % value.

Definition at line 398 of file player.h.

Last target search position.

Definition at line 590 of file player.h.

Target object.

Definition at line 281 of file player.h.

Count of target.

Definition at line 587 of file player.h.

If true, update line of sight with update_los().

Definition at line 596 of file player.h.

Update skill list when set.

Definition at line 620 of file player.h.

Internal use by praying to send pray message to player.

Definition at line 605 of file player.h.

Weapon speed index (mainly used for client).

Definition at line 401 of file player.h.

char pl_player::write_buf[MAX_BUF]

Holds arbitrary input from client.

Definition at line 242 of file player.h.


The documentation for this struct was generated from the following file: