koe barricade

I think for some help need a description

 
i need barricades here everytime they destroy the emperium on koe the barricade respawns and you have to destroy all of the barricades in order enter and destroy the emperium.

image.png

 
If I understood right, you want to put the emperium in the middle of the area and spawn barricade monsters in the black line. And while the barricade is still up, no one can go through the cell?

I think you can follow how official servers does it (more or less), spawn barricade mosnters + set the cells to not walkable, when the barricade monster is killed, you trigger an event and change the cell to walkable.

check out setcell script command

 
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.

Code:
    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;
 
Back
Top