viewing paste Guild Buffers | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
//https://rathena.org/board/topic/108844-looking-for-only-the-guild-name-and-all-players-get-buff~/
//Individual buffer for just the Emperor guild.
prontera,184,177,5  script  Guild Buffer    100,{
    setarray .@sc_effect,   SC_INCREASEAGI,     SC_BLESSING,        SC_ANGELUS;
    setarray .@skil_txt$,   "Increase Agility", "Blessing",         "Angelus";
    setarray .@ticks    ,   200000,             200000,             200000;
    setarray .@skil_num ,   29,                 34,                 33;
    setarray .@levels   ,   10,                 10,                 10;
    .@len = getarraysize(.@sc_effect);
 
    if( !strcmp( strcharinfo(2), "Emperor" ) ) {
        for( .@a = 0; .@a < .@len; .@a++ ) {
            misceffect 253;
            skilleffect .@skil_num[.@a], .@levels[.@a];
            sc_start .@sc_effect[.@a], .@ticks[.@a], .@levels[.@a];
            message strcharinfo(0),"Buff ["+.@skil_txt$[.@a]+"] Added.";
        }
    }
    end;
}
 
//If the guild master uses this npc all players in the guild will be buffed.
prontera,184,177,5  script  Guild All Buffer    100,{
    if( @h_last > gettimetick(2) ) end;
    set @h_last, gettimetick(2)+60;
    .@guild = getcharid(2);
 
    if( !strcmp( strcharinfo(2), "Emperor" ) && !strcmp( strcharinfo(0), getguildmaster( .@guild ) ) ) {
        addrid( 3, 0, .@guild );
        for( .@a = 0; .@a < .len; .@a++ ) {
            misceffect 253;
            skilleffect .skil_num[.@a], .levels[.@a];
            sc_start .sc_effect[.@a], .ticks[.@a], .levels[.@a];
            message strcharinfo(0),"Buff ["+.skil_txt$[.@a]+"] Added.";
        }
    }
    end;
    
OnInit:
    setarray .sc_effect,   SC_INCREASEAGI,      SC_BLESSING,        SC_ANGELUS;
    setarray .skil_txt$,   "Increase Agility""Blessing",         "Angelus";
    setarray .ticks    ,   200000,              200000,             200000;
    setarray .skil_num ,   29,                  34,                 33;
    setarray .levels   ,   10,                  10,                 10;
    .len = getarraysize(.sc_effect);
    end;
}
Viewed 1290 times, submitted by Skorm.