Jump to content

fiction

Members
  • Content Count

    153
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by fiction


  1. if you want to do in specific map, maybe getunits can help.

     

    something like...

     

        .@count = getunits((BL_PC), .@units, false, "pay_fild01");
    
        for(.@i = 0; .@i < .@count; .@i++) {
            attachrid(.@units[.@i]);
            sc_end(SC_END);
        }

    But this piece of code need to be trigger by some way, like, Ontimer events, npc talk event, on touch event or whatever things that trigger this.

     

    Like..

     

    OnTimer5000:
    
    	.@count = getunits((BL_PC), .@units, false, "pay_fild01");
    
    	for(.@i = 0; .@i < .@count; .@i++) {
    		attachrid(.@units[.@i]);
    		sc_end(SC_END);
    	}
    	stopnpctimer();
    	initnpctimer();
    end;
    
    OnInit:
    	initnpctimer();
    end;

    This will remove all the buffs that all players have in pay_fild01 each 5seconds.


  2. i use setwall to accomplish that are you looking for.

     

    https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt#L9692C4-L9692C71

     

    something like..


    Note: ra_koe is a custom map that i'm using, but use this base as an example.

     

        setwall "ra_koe", 52, 32, 6, 2, 0, "Barricade";
    
    
        // ======================
        //    Barricade
        // ======================
    
        monster "ra_koe",47,30, "BARRICADE", 1905, 1, "KoE::OnBarrDead";
        monster "ra_koe",48,30, "BARRICADE", 1905, 1, "KoE::OnBarrDead";
        monster "ra_koe",51,30, "BARRICADE", 1905, 1, "KoE::OnBarrDead";
        monster "ra_koe",52,30, "BARRICADE", 1905, 1, "KoE::OnBarrDead";
    
    
    OnBarrDead:
        mapannounce(("ra_koe"), _("[KoE]: A barricade in the South sector has been destroyed!"), bc_map, C_SILVER, FW_NORMAL, 18);
    
        if (.BarricadaSur) { end; }
        if (mobcount("ra_koe", "KoE::OnBarrDead") < 3) {
            delwall("Barricade");
            set .BarricadaSur, 1;
        mapannounce(("ra_koe"), _("[KoE]: The South access is vulnerable!"), bc_map, C_RED, FW_NORMAL, 18);
        }
        end;

     


  3. client side

     

    System/OngoingQuestInfoList_True.lub (make sure what ongoinquest is reading your client)

     

    Server side

     

    db/quest_db.conf

     

    If you want to display the time, you need to use the setting called "TimeLimit".

     

    For example..

     

    {
        Id: 12317
        Name: "Trace of Time Travel"
        TimeLimit: 82800
    },


  4. Hi exist a way to make a calculation in decimal and the result round off?.

     

    For example...

     

    .@chance1 = (1/(1+10 **(((1580 - 1500)/400))));

    .@chance2 = (1/(1+10 **(((1500 - 1580)/400))));

     

    .@score1_new = 1500 + 32(1 - .@chance1);

    .@score2_new = 1580 + 32(0 - .@chance2);

     

    _____

     

    .@chance1 = 0.38686317984

    .@chance2 = 0.61313682015

    .@score1_new = 1519.62037825 round off to 1520

     

    Currently all numbers are round off to 0 when decimals exist :[


  5. On 2/2/2022 at 12:20 AM, Origami said:

    Good day ! I have some questions regarding Herc ? Im from rA .. Does Herc already implemented the KRO Mass Skill Balance ? Also another Question, does Herc already implemented 4th jobs ?? Thanks ! I hope someone notice my post 

     

    Hello, no for both. Herc, is more oriented to optimize resources in a high level.

×
×
  • Create New...

Important Information

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