#239 Need GetStat functions

Đã đóng
%! (template.HTML=3 năm trước cách đây)đang mở bởi neatz09 · 2 ý kiến

lua functions needed for stats on charactersheet such as GetPotency, GetCrit, GetMultiAttack, etc.

lua functions needed for stats on charactersheet such as GetPotency, GetCrit, GetMultiAttack, etc.
image đã nhận xét 3 năm trước cách đây
Người hợp tác

LUA Implementation:

GetInfoStructString(Entity, fieldname)
GetInfoStructUInt(Entity, fieldname)
GetInfoStructSInt(Entity, fieldname)
GetInfoStructFloat(Entity, fieldname)

SetInfoStructString(Entity, fieldname, value)
SetInfoStructUInt(Entity, fieldname, value)
SetInfoStructSInt(Entity, fieldname, value)
SetInfoStructFloat(Entity, fieldname, value)
  • These changes can be made to Entities only, NPC and Players
  • These values will persist for a Player into their character sheet if they are part of character_details
LUA Implementation: ``` GetInfoStructString(Entity, fieldname) GetInfoStructUInt(Entity, fieldname) GetInfoStructSInt(Entity, fieldname) GetInfoStructFloat(Entity, fieldname) SetInfoStructString(Entity, fieldname, value) SetInfoStructUInt(Entity, fieldname, value) SetInfoStructSInt(Entity, fieldname, value) SetInfoStructFloat(Entity, fieldname, value) ``` - These changes can be made to Entities only, NPC and Players - These values will persist for a Player into their character sheet if they are part of character_details
image đã nhận xét 3 năm trước cách đây
Người hợp tác
String : name

UInt : class1

UInt : class2

UInt : class3

UInt : race

UInt : gender

UInt : level

UInt : max_level

UInt : effective_level

UInt : tradeskill_level

UInt : tradeskill_max_level

UInt : cur_concentration

UInt : max_concentration

UInt : cur_attack

UInt : attack_base

UInt : cur_mitigation

UInt : max_mitigation

UInt : mitigation_base

UInt : avoidance_display

Float : cur_avoidance

UInt : base_avoidance_pct

UInt : avoidance_base

UInt : max_avoidance

Float : parry

Float : parry_base

Float : deflection

UInt : deflection_base

Float : block

UInt : block_base

UInt : str

UInt : sta

UInt : agi

UInt : wis

UInt : intel

UInt : str_base -- persists in character_details DB

UInt : sta_base -- persists in character_details DB

UInt : agi_base -- persists in character_details DB

UInt : wis_base -- persists in character_details DB

UInt : intel_base -- persists in character_details DB

UInt : heat

UInt : cold

UInt : magic

UInt : mental

UInt : divine

UInt : disease

UInt : poison

UInt : disease_base -- persists in character_details DB

UInt : cold_base -- persists in character_details DB

UInt : divine_base -- persists in character_details DB

UInt : magic_base -- persists in character_details DB

UInt : mental_base -- persists in character_details DB

UInt : heat_base -- persists in character_details DB

UInt : poison_base -- persists in character_details DB

UInt : elemental_base -- persists in character_details DB

UInt : noxious_base -- persists in character_details DB

UInt : arcane_base -- persists in character_details DB

UInt : coin_copper -- persists in character_details DB

UInt : coin_silver -- persists in character_details DB

UInt : coin_gold -- persists in character_details DB

UInt : coin_plat -- persists in character_details DB

UInt : bank_coin_copper -- persists in character_details DB

UInt : bank_coin_silver -- persists in character_details DB

UInt : bank_coin_gold -- persists in character_details DB

UInt : bank_coin_plat -- persists in character_details DB

UInt : status_points

String : deity

UInt : weight

UInt : max_weight

UInt : tradeskill_class1

UInt : tradeskill_class2

UInt : tradeskill_class3

UInt : account_age_base

//NOT AVAILABLE: account_age_bonus_[19];

UInt : absorb

UInt : xp -- persists in character_details DB

UInt : xp_needed -- persists in character_details DB

Float : xp_debt -- persists in character_details DB

UInt : xp_yellow

UInt : xp_yellow_vitality_bar

UInt : xp_blue_vitality_bar

UInt : xp_blue

UInt : ts_xp -- persists in character_details DB

UInt : ts_xp_needed -- persists in character_details DB

UInt : tradeskill_exp_yellow

UInt : tradeskill_exp_blue

UInt : flags -- persists in character_details DB

UInt : flags2 -- persists in character_details DB

Float : xp_vitality -- persists in character_details DB

Float : tradeskill_xp_vitality -- persists in character_details DB

UInt : mitigation_skill1

UInt : mitigation_skill2

UInt : mitigation_skill3

Float : ability_modifier

Float : critical_mitigation

Float : block_chance

Float : uncontested_parry

Float : uncontested_block

Float : uncontested_dodge

Float : uncontested_riposte

Float : crit_chance

Float : crit_bonus

Float : potency

Float : hate_mod

Float : reuse_speed

Float : casting_speed

Float : recovery_speed

Float : spell_reuse_speed

Float : spell_multi_attack

Float : dps

Float : dps_multiplier

Float : attackspeed

Float : haste

Float : multi_attack

Float : flurry

Float : melee_ae

Float : strikethrough

Float : accuracy

Float : offensivespeed

Float : rain

Float : wind

SInt : alignment

UInt : pet_id

String : pet_name

Float : pet_health_pct

Float : pet_power_pct

UInt : pet_movement

UInt : pet_behavior

UInt : vision

UInt : breathe_underwater

String : biography -- our code has two places for biography right now.. why (another is built into the Client class)

Float : drunk

SInt : power_regen

SInt : hp_regen

UInt : power_regen_override

UInt : hp_regen_override

``` String : name UInt : class1 UInt : class2 UInt : class3 UInt : race UInt : gender UInt : level UInt : max_level UInt : effective_level UInt : tradeskill_level UInt : tradeskill_max_level UInt : cur_concentration UInt : max_concentration UInt : cur_attack UInt : attack_base UInt : cur_mitigation UInt : max_mitigation UInt : mitigation_base UInt : avoidance_display Float : cur_avoidance UInt : base_avoidance_pct UInt : avoidance_base UInt : max_avoidance Float : parry Float : parry_base Float : deflection UInt : deflection_base Float : block UInt : block_base UInt : str UInt : sta UInt : agi UInt : wis UInt : intel UInt : str_base -- persists in character_details DB UInt : sta_base -- persists in character_details DB UInt : agi_base -- persists in character_details DB UInt : wis_base -- persists in character_details DB UInt : intel_base -- persists in character_details DB UInt : heat UInt : cold UInt : magic UInt : mental UInt : divine UInt : disease UInt : poison UInt : disease_base -- persists in character_details DB UInt : cold_base -- persists in character_details DB UInt : divine_base -- persists in character_details DB UInt : magic_base -- persists in character_details DB UInt : mental_base -- persists in character_details DB UInt : heat_base -- persists in character_details DB UInt : poison_base -- persists in character_details DB UInt : elemental_base -- persists in character_details DB UInt : noxious_base -- persists in character_details DB UInt : arcane_base -- persists in character_details DB UInt : coin_copper -- persists in character_details DB UInt : coin_silver -- persists in character_details DB UInt : coin_gold -- persists in character_details DB UInt : coin_plat -- persists in character_details DB UInt : bank_coin_copper -- persists in character_details DB UInt : bank_coin_silver -- persists in character_details DB UInt : bank_coin_gold -- persists in character_details DB UInt : bank_coin_plat -- persists in character_details DB UInt : status_points String : deity UInt : weight UInt : max_weight UInt : tradeskill_class1 UInt : tradeskill_class2 UInt : tradeskill_class3 UInt : account_age_base //NOT AVAILABLE: account_age_bonus_[19]; UInt : absorb UInt : xp -- persists in character_details DB UInt : xp_needed -- persists in character_details DB Float : xp_debt -- persists in character_details DB UInt : xp_yellow UInt : xp_yellow_vitality_bar UInt : xp_blue_vitality_bar UInt : xp_blue UInt : ts_xp -- persists in character_details DB UInt : ts_xp_needed -- persists in character_details DB UInt : tradeskill_exp_yellow UInt : tradeskill_exp_blue UInt : flags -- persists in character_details DB UInt : flags2 -- persists in character_details DB Float : xp_vitality -- persists in character_details DB Float : tradeskill_xp_vitality -- persists in character_details DB UInt : mitigation_skill1 UInt : mitigation_skill2 UInt : mitigation_skill3 Float : ability_modifier Float : critical_mitigation Float : block_chance Float : uncontested_parry Float : uncontested_block Float : uncontested_dodge Float : uncontested_riposte Float : crit_chance Float : crit_bonus Float : potency Float : hate_mod Float : reuse_speed Float : casting_speed Float : recovery_speed Float : spell_reuse_speed Float : spell_multi_attack Float : dps Float : dps_multiplier Float : attackspeed Float : haste Float : multi_attack Float : flurry Float : melee_ae Float : strikethrough Float : accuracy Float : offensivespeed Float : rain Float : wind SInt : alignment UInt : pet_id String : pet_name Float : pet_health_pct Float : pet_power_pct UInt : pet_movement UInt : pet_behavior UInt : vision UInt : breathe_underwater String : biography -- our code has two places for biography right now.. why (another is built into the Client class) Float : drunk SInt : power_regen SInt : hp_regen UInt : power_regen_override UInt : hp_regen_override ```
Đăng nhập để tham gia bình luận.
Đang tải...
Hủy bỏ
Lưu
Ở đây vẫn chưa có nội dung nào.