viewing paste Unknown #17876 | Athena

Posted on the | Last edited on
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
-   script  Agit_Event  -1,{
    end;
 
OnClock2100:    //start time for Tues(2), Thurs(4)
OnClock2230:    //end time for Tues(2), Thurs(4)
 
OnAgitInit:
    // starting time checks
    if((gettime(4)==3) && (gettime(3)==21 && gettime(2)==00) )
        {
        if (!agitcheck()) {
setmapflag      "alde_gld",     mf_bg_consume;
setmapflag  "aldeg_cas02",  mf_bg_consume;
            agitstart;
            callsub S_DisplayOwners;
        }
        end;
    }
    // end time checks
    if ((gettime(4)==3) && (gettime(3)==22 && gettime(2)==30) )
    {
        if (agitcheck()) {
removemapflag   "alde_gld",     mf_bg_consume;
removemapflag   "aldeg_cas02",  mf_bg_consume;
            agitend;
            callsub S_DisplayOwners;
        }
        end;
    }
    end;
 
S_DisplayOwners:
    setarray .@maps$[0],"aldeg_cas02";
        if (getcastledata("aldeg_cas02",1))
            announce "Замком [" + getcastlename("aldeg_cas02") + "] владеет гильдия [" + getguildname(getcastledata("aldeg_cas02",1)) + "].",bc_all|bc_woe;
        else
            announce "Замок [" + getcastlename("aldeg_cas02") + "] сейчас свободен.",bc_all|bc_woe;
    end;
}
Viewed 955 times, submitted by milk.