viewing paste GVG Switch ? | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
prontera,155,181,5      script  Sample  757,{
set .CastleMap$,"prtg_cas03";
 
if( strcharinfo(0) != getguildmaster( getcastledata( .CastleMap$,1 ) ) || !getcharid(2) ){
        mes "Only Guild Master of "+getguildname( getcastledata( .CastleMap$,1 ) );
        mes "Can use my services.";
}else{
        if( select("Turn ON GVG:Turn OFF GVG") == 1 ){
                atcommand "@GvgOn";
                mes "Done GVG Enabled.";
        }else{
                atcommand "GvgOff";
                mes "Done.. GVG Disabled.";
        }
}
}
Viewed 541 times, submitted by Emistry.