Jump to content

Other Graphic Releases

Sign in to follow this  

82 topics in this forum

  1. Graphics distortion

    • 0 replies
    • 958 views
    • 0 replies
    • 3760 views
    • 2 replies
    • 8317 views
  2. Modern Lord of Vermillion

    • 2 replies
    • 2543 views
  3. Modern Fire Pillar

    • 0 replies
    • 1451 views
  4. Modern Lightning Crash

    • 0 replies
    • 1153 views
  5. Modern Quagmire

    • 0 replies
    • 1125 views
  6. Modern Dragon Fear

    • 0 replies
    • 1054 views
  7. Modern Critical Wound

    • 0 replies
    • 977 views
  8. Modern Autocounter

    • 0 replies
    • 1044 views
  9. Modern Wide Bleeding

    • 0 replies
    • 1010 views
  10. Modern Safety Wall Spellcast

    • 1 reply
    • 1588 views
  11. Modern Fortune's Kiss

    • 0 replies
    • 938 views
  12. Modernized Voice of Siren

    • 2 replies
    • 1441 views
  13. Modern Apples of Idun

    • 0 replies
    • 1341 views
  14. Modernized Storm Gust

    • 2 replies
    • 2075 views
  15. Fixed Violet Torch

    • 0 replies
    • 889 views
    • 0 replies
    • 967 views
  16. Modern Lightning Bolt

    • 0 replies
    • 933 views
  17. Modernized Thunderstorm

    • 1 reply
    • 1126 views
  18. Official Level Up Animation

    • 0 replies
    • 1383 views
  19. Playing Cards Set

    • 0 replies
    • 1111 views
  20. Colorful Star Map Effect

    • 0 replies
    • 1203 views
    • 0 replies
    • 1005 views
  21. military sprite

    • 0 replies
    • 1226 views
Sign in to follow this  
  • Featured Topics

  • Latest Commits

  • Topics

  • Posts

    • Thanks. I did some messing around with skilltreeview.lub and now it seems to work.
    • Hello i have code here from cydh that changes the players race, this is working on rAthena. Although it's not compatible with herc. Anyone can help me with it? Thanks! https://www.dropbox.com/scl/fi/msiy4c6fu5uwok1e0fhtx/bonus_bRace.diff?rlkey=4c41esca9fewia9n8uartp0jd&e=1&dl=0   doc/item_bonus.txt | 1 + src/map/map.hpp | 1 + src/map/pc.cpp | 4 ++++ src/map/pc.hpp | 1 + src/map/script_constants.hpp | 1 + src/map/status.cpp | 5 +++++ 6 files changed, 13 insertions(+) diff --git a/doc/item_bonus.txt b/doc/item_bonus.txt index 7ffe172b5..08ef4a571 100644 --- a/doc/item_bonus.txt +++ b/doc/item_bonus.txt @@ -260,6 +260,7 @@ Atk/Def ------- bonus bAtkEle,e; Gives the player's attacks element e bonus bDefEle,e; Gives the player's defense element e +bonus bRace,r; Set the player's race to race r bonus2 bMagicAtkEle,e,x; Increases damage of e element magic by x% diff --git a/src/map/map.hpp b/src/map/map.hpp index 5200ff6b4..44073fbb2 100644 --- a/src/map/map.hpp +++ b/src/map/map.hpp @@ -429,6 +429,7 @@ enum _sp { // Mercenaries SP_MERCFLEE=165, SP_MERCKILLS=189, SP_MERCFAITH=190, + SP_RACE, // original 1000- SP_ATTACKRANGE=1000, SP_ATKELE,SP_DEFELE, // 1000-1002 diff --git a/src/map/pc.cpp b/src/map/pc.cpp index ab1040eca..be3d1cdee 100755 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3217,6 +3217,10 @@ void pc_bonus(struct map_session_data *sd,int type,int val) if (sd->state.lr_flag != 2) sd->special_state.no_mado_fuel = 1; break; + case SP_RACE: + PC_BONUS_CHK_RACE(val, SP_RACE); + sd->bonus.change_race = (enum e_race)val; + break; default: if (running_npc_stat_calc_event) { ShowWarning("pc_bonus: unknown bonus type %d %d in OnPCStatCalcEvent!\n", type, val); diff --git a/src/map/pc.hpp b/src/map/pc.hpp index 05e861c64..dfebca1d9 100644 --- a/src/map/pc.hpp +++ b/src/map/pc.hpp @@ -497,6 +497,7 @@ struct map_session_data { int ematk; // matk bonus from equipment int eatk; // atk bonus from equipment uint8 absorb_dmg_maxhp; // [Cydh] + enum e_race change_race; short critical_rangeatk; short weapon_atk_rate, weapon_matk_rate; } bonus; diff --git a/src/map/script_constants.hpp b/src/map/script_constants.hpp index 5d5066a4e..2c8a2f0e9 100644 --- a/src/map/script_constants.hpp +++ b/src/map/script_constants.hpp @@ -731,6 +731,7 @@ export_constant2("bRegenPercentHP", SP_REGEN_PERCENT_HP); export_constant2("bRegenPercentSP", SP_REGEN_PERCENT_SP); export_constant2("bSkillDelay",SP_SKILL_DELAY); + export_constant2("bRace", SP_RACE); /* equip indices */ export_constant(EQI_COMPOUND_ON); diff --git a/src/map/status.cpp b/src/map/status.cpp index d08be8e81..67546d1c2 100644 --- a/src/map/status.cpp +++ b/src/map/status.cpp @@ -3495,6 +3495,7 @@ int status_calc_pc_sub(struct map_session_data* sd, enum e_status_calc_opt opt) ); memset (&sd->bonus, 0, sizeof(sd->bonus)); + sd->bonus.change_race = RC_NONE_; // Autobonus pc_delautobonus(sd,sd->autobonus,ARRAYLENGTH(sd->autobonus),true); @@ -4208,6 +4209,10 @@ int status_calc_pc_sub(struct map_session_data* sd, enum e_status_calc_opt opt) if (sc->data[SC_LAUDARAMUS]) sd->bonus.crit_atk_rate += 5 * sc->data[SC_LAUDARAMUS]->val1; } + + if (sd->bonus.change_race != RC_NONE_) + base_status->race = sd->bonus.change_race; + status_cpy(&sd->battle_status, base_status); // ----- CLIENT-SIDE REFRESH -----  
    • Hello can you add change race of players? Thanks
    • Hello, is there an in-depth guide on how to add custom clans? Thanks!     nvm, I already figured it out. 
    • The supplied data/luafiles514/lua files/skillinfoz/skilltreeview.lub, or file similar for your client version, may contain mistakes. Confirm if the tree view has the proper syntax and skills entries are following the rules. Else, I would say to check if jobinheritlist.lub is correct.
  • Download Statistics

    • Files
      457
    • Comments
      154
    • Reviews
      240

    Latest File
    By Hyroshima

    53    0

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.