Jump to content

Daegaladh

Developer
  • Posts

    239
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by Daegaladh

  1. On 4/5/2025 at 5:37 AM, Bes said:

    Ifthe player forget their password how can they reset their pass?

     

    Now that you mention, if the server admin didn't set the maxfail parameter, there's no way to recover it, I'll fix that.

    Otherwise when you reach the maximum number of tries, it changes your account password to a random one and kicks you out, resetting the code, so only the account owner can restore the account via web panel.

  2. On 9/18/2024 at 2:40 PM, drigoguille said:

    Hello! this warning appeared on the console like this even using the old_clearunit version

    In file included from ../common/cbasetypes.hpp:338:0,
                     from atcommand.hpp:7,
                     from atcommand.cpp:4:
    ../custom/atcommand.inc: In function int atcommand_hidepet_sub(block_list*, __va_list_tag*)’:
    ../custom/atcommand.inc:449:18: warning: bool is promoted to int when passed through ‘...’
      if (!va_arg(ap, bool) && sd->pd != nullptr && sd->pd->bl.id == bl->id) {
                      ^
    ../custom/atcommand.inc:449:18: note: (so you should pass int not bool to va_arg’)
    ../custom/atcommand.inc:449:18: note: if this code is reached, the program will abort
    ../custom/atcommand.inc:450:17: warning: uint8 {aka unsigned char}’ is promoted to int when passed through ‘...’
       if(va_arg(ap, uint8) == 2)
                     ^
    ../custom/atcommand.inc:450:17: note: if this code is reached, the program will abort

    @edit

    Solvet change bool and unit8 to int.  "If this will break I don't know but it worked"

    +	if (!va_arg(ap, bool) && sd->pd != nullptr && sd->pd->bl.id == bl->id) {
    +		if(va_arg(ap, uint8) == 2)
    +			clif_spawn(&sd->pd->bl, true);
    +		return 0;
    +	}
    +
    
    TO
    
    +	if (!va_arg(ap, int) && sd->pd != nullptr && sd->pd->bl.id == bl->id) {
    +		if(va_arg(ap, int) == 2)
    +			clif_spawn(&sd->pd->bl, true);
    +		return 0;
    +	}
    +

     

    When is your rAthena from? I used one from January 1st 2024 as a base for the old clif_clearunit_single version.

    Not sure why you get that warning, since all and prev_state are defined as bool and uint8 respectively.

     

    It seems to be an issue with the compiler, I'll fix it on the next version

  3. @hidepet / @hidepetall commands


    @hidepet allows to hide all pets except the player's, whereas @hidepetall hides all pets, including the player's.

    This mod also allows to set a default parameter in battle_conf, just add

    hide_pet: 1

    To set all pets hidden except the player's, or 2 for all pets period.

     

     


     

    • Upvote 2
    • Love 1
    • MVP 1
  4. EBM View (Emblem viewer/exporter)


    A really old emblem viewer / exporter I had somewhere in a backup and want to share so it won't be forever forgotten.

    I don't know the original author, only that was brazilian (the original file had the buttons in brazilian portuguese, but I translated them), so if anyone knows, please tell me and I'll give them proper credits.


     

    • Upvote 1
  5. 10 hours ago, InnosTM said:

    With all Data you mean all investments? Strengh Guardians and other Guild Information?

    Yes.

    10 hours ago, InnosTM said:

    It's possible to set weekly random? And deactivate last active castle from random list? So the Player have every Week another Castle?

    Atm it's set on 2 weeks, but will be fully configurable in the future. And yes, if there are 10 or less castles active, the last active ones will be excluded from the new random ones.

×
×
  • Create New...