Scripts e Jobs
Autor: Administrador | Publicado: 2011-10-20T11:12:00-07:00

Status do servidor:QUOTE&lt;br /&gt; &lt; ? $fp = @fsockopen("127.0.0.1", 55901, $errno, $errstr, 1); if($fp &gt;= 1){&lt;br /&gt; echo '&lt;font color=00FF00&gt;Online&lt;/font&gt;';}&lt;br /&gt; else{ echo '&lt;font color=990000&gt;Offline&lt;/font&gt;'; }&lt;br /&gt; ?&gt;&lt;br /&gt; &lt;br /&gt; Número de Usuários Banidos:&lt;br /&gt; QUOTE&lt;br /&gt; &lt; ?php $sql = mssql_query("SELECT count(*) FROM Character where ctlcode=1"); echo mssql_result($sql, 0, 0); ?&gt;&lt;br /&gt; &lt;br /&gt; Número de Usuários Online:&lt;br /&gt; QUOTE&lt;br /&gt; &lt; ?php $sql = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = 1"); if( mssql_result($sql, 0, 0) &lt;= 50){ //esse script da pra configurar a cor dos numeros echo "&lt;font color=black&gt;"; //de 0 a 50 fica preto de 50 a 100 fica laranja&lt;br /&gt; echo mssql_result($sql, 0, 0);} //e de 100 pra cima fica vermelho&lt;br /&gt; elseif( mssql_result($sql, 0, 0) &gt;= 50 AND mssql_result($sql, 0, 0) &lt;= 100){ echo "&lt;font color=FF6600&gt;";&lt;br /&gt; echo mssql_result($sql, 0, 0);}&lt;br /&gt; elseif( mssql_result($sql, 0, 0) &gt; 100){&lt;br /&gt; echo "&lt;font color=990000&gt;";&lt;br /&gt; echo mssql_result($sql, 0, 0);} ?&gt;


Número de Contas:QUOTE&lt;br /&gt; &lt; ?php $tacountresult= mssql_query("select memb___id from MEMB_INFO"); $tacount = mssql_num_rows ($tacountresult); ?&gt;&lt;br /&gt; &lt; ?php print "$tacount"; ?&gt;
Número de Personagens:QUOTE&lt;br /&gt; &lt; ?php $tcharsresult = mssql_query("select Name from Character"); $tchars = mssql_num_rows ($tcharsresult); ?&gt;&lt;br /&gt; &lt; ?php print "$tchars"; ?&gt;


Lembrando que para esses scripts funcionarem, é nesessario a conexão com o mssql. exemplo:
QUOTE&lt;br /&gt; &lt; ?php $alogin = "sa"; $apass = "Senha do SQL"; $db = "MuOnline"; $host = "Seu IP Aqui"; $msconnect=mssql_connect($host,$alogin,$apass); $msdb=mssql_select_db("$db",$msconnect); ?&gt;

Codigo do tempo para Abrir BC e DS :
Coloque o codico no lugar da pagina que você quiser ou se preferir criei um link
OBS: O codico é em php&lt; td width="134" class="texto" bgcolor="#000000"&gt;&lt;span class="texto"&gt;Devil Square:&lt;/span&gt;&lt;span class="textoR"&gt;&lt;span id=timespan&gt; &lt;/span&gt;&lt;br /&gt; &lt; script&gt;&lt;br /&gt; var czas;&lt;br /&gt; &lt; ? echo "var minuta = ".date("i").";"; echo "var sekunda = ".date("s").";"; ?&gt;&lt;br /&gt; //document.write(55-minuta);&lt;br /&gt; danagodzina = minuta * 60 + sekunda;&lt;br /&gt; function changetimea()&lt;br /&gt; {&lt;br /&gt; danagodzina = danagodzina + 1;&lt;br /&gt; czas = 55*60 - danagodzina;&lt;br /&gt; min = Math.floor(czas/60);&lt;br /&gt; sec = czas%60;&lt;br /&gt; if(czas &lt; 0) { document.getElementById("timespan").innerHTML="&lt;? echo 'Aberto'; ?&gt;";&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt; if(min &lt; 10) min = "0"+min; if(sec &lt; 10) sec = "0"+sec; document.getElementById("timespan").innerHTML=min+":"+sec; } window.setTimeout("changetimea()",1000); } changetimea(); &lt; /script&gt;&lt;br /&gt; &lt; /font&gt; &lt;/td&gt;&lt;br /&gt; &lt; /tr&gt;&lt;br /&gt; &lt; tr&gt;&lt;br /&gt; &lt; td width="115"&gt;&lt;font style=""&gt;&lt;span class="texto"&gt;Blood Castle:&lt;/span&gt;&lt;span class="textoR"&gt;&lt;span id=timespan2&gt;&lt;/span&gt;&lt;br /&gt; &lt; script&gt;&lt;br /&gt; &lt; ? echo "var minuta2 = ".date("i").";"; echo "var sekunda2 = ".date("s").";"; ?&gt;&lt;br /&gt; danagodzina2 = minuta2 * 60 + sekunda2;&lt;br /&gt; if(minuta2 &gt; 30) dopelnej = 3600 - danagodzina2;&lt;br /&gt; else dopelnej = -danagodzina2;&lt;br /&gt; dobc = dopelnej + 25*60;&lt;br /&gt; function changetimea2()&lt;br /&gt; {&lt;br /&gt; dobc = dobc - 1;&lt;br /&gt; if(dobc &lt; -5*60) { dobc = 3600 + 30*60; dobc = dobc-1; } min2 = Math.floor(dobc/60); sec2 = dobc%60; if(min2 &lt; 0) { document.getElementById("timespan2").innerHTML="&lt;? echo 'Aberto'; ?&gt;";&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt; if(min2 &lt; 10) min2 = "0"+min2; if(sec2 &lt; 10) sec2 = "0"+sec2; document.getElementById("timespan2").innerHTML=min2+":"+sec2; } window.setTimeout("changetimea2()",1000); } changetimea2(); &lt; /script&gt;

Reset QUOTE&lt;br /&gt; &lt; ?php $alogin = "sa"; $apass = "Senha do SQL"; $db = "MuOnline"; $host = "Seu IP Aqui"; $msconnect=mssql_connect($host,$alogin,$apass); $msdb=mssql_select_db("$db",$msconnect); $query = 'select Name,Class,cLevel,Strength,Dexterity,Vitality,Energy,LevelUpPoint,CtlCode,resets from Character order by resets desc , cLevel desc'; $result = mssql_query( $query ); echo '&lt;html&gt;';&lt;br /&gt; echo "&lt;head&gt;\n";&lt;br /&gt; echo '&lt;body&gt;';&lt;br /&gt; echo '&lt;font face=Verdana&gt;';&lt;br /&gt; echo '&lt;center&gt;&lt;table cellSpacing=1 width=100% align=center&gt;'; echo '&lt;tr&gt; &lt; td bgcolor=F5F5F5&gt;&lt;center&gt;&lt;b&gt;Rank&lt;/td&gt; &lt; td bgcolor=F5F5F5&gt;&lt;b&gt;Personagem&lt;/td&gt; &lt; td bgcolor=F5F5F5&gt;&lt;b&gt;Classe&lt;/td&gt; &lt; td bgcolor=F5F5F5&gt;&lt;b&gt;Level&lt;/td&gt; &lt; td bgcolor=F5F5F5&gt;&lt;b&gt;Strenght&lt;/td&gt; &lt; td bgcolor=F5F5F5&gt;&lt;b&gt;Agility&lt;/td&gt; &lt; td bgcolor=F5F5F5&gt;&lt;b&gt;Vitality&lt;/td&gt; &lt; td bgcolor=F5F5F5&gt;&lt;b&gt;Energy&lt;/font&gt;&lt;/td&gt; &lt; td bgcolor=F5F5F5&gt;&lt;b&gt;Resets&lt;/font&gt;&lt;/td&gt;'; //Aqui voce coloca o numero do rank //no caso esta top 100 //se quiser mudar eh soh trocar o 100 pelo numero desejado for($i=0;$i &lt; 100;++$i) { $row = mssql_fetch_row($result); $personag = htmlentities($row[0]); echo '&lt;tr&gt;&lt;td width=5% bgcolor=F5F5F5&gt;&lt;center&gt;&lt;b&gt;';&lt;br /&gt; echo $i + 1;&lt;br /&gt; echo 'º&lt;/td&gt;&lt;td width=21% bgcolor=F5F5F5&gt;&lt;table&gt;'; echo $personag; echo '&lt;/table&gt;&lt;/td&gt;&lt;td width=19% bgcolor=F5F5F5&gt;';&lt;br /&gt; if($row[8] == 8){&lt;br /&gt; echo 'Game Master';&lt;br /&gt; }&lt;br /&gt; else {&lt;br /&gt; if($row[1] == 0){&lt;br /&gt; echo 'Dark Wizard';&lt;br /&gt; }&lt;br /&gt; if($row[1] == 1){&lt;br /&gt; echo 'Soul Master';&lt;br /&gt; }&lt;br /&gt; if($row[1] == 16){&lt;br /&gt; echo 'Dark Knight';&lt;br /&gt; }&lt;br /&gt; if($row[1] == 17){&lt;br /&gt; echo 'Blade Knight';&lt;br /&gt; }&lt;br /&gt; if($row[1] == 32){&lt;br /&gt; echo 'Elf';&lt;br /&gt; }&lt;br /&gt; if($row[1] == 33){&lt;br /&gt; echo 'Muse Elf';&lt;br /&gt; }&lt;br /&gt; if($row[1] == 48){&lt;br /&gt; echo 'Magic Gladiator';&lt;br /&gt; }&lt;br /&gt; if($row[1] == 64){&lt;br /&gt; echo 'Dark Lord';&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt; echo '&lt;/td&gt;&lt;td width=8% bgcolor=F5F5F5&gt;';&lt;br /&gt; echo $row[2];&lt;br /&gt; echo '&lt;/td&gt;&lt;td width=9% bgcolor=F5F5F5&gt;';&lt;br /&gt; echo $row[3];&lt;br /&gt; echo '&lt;/td&gt;&lt;td width=9% bgcolor=F5F5F5&gt;';&lt;br /&gt; echo $row[4];&lt;br /&gt; echo '&lt;/td&gt;&lt;td width=9% bgcolor=F5F5F5&gt;';&lt;br /&gt; echo $row[5];&lt;br /&gt; echo '&lt;/td&gt;&lt;td width=9% bgcolor=F5F5F5&gt;';&lt;br /&gt; echo $row[6];&lt;br /&gt; echo '&lt;/td&gt;&lt;td width=9% bgcolor=F5F5F5&gt;';&lt;br /&gt; echo $row[9];&lt;br /&gt; echo'&lt;/td&gt;&lt;/tr&gt;'; } echo '&lt;/table&gt;';&lt;br /&gt; echo '&lt;/body&gt;';&lt;br /&gt; echo '&lt;/html&gt;';&lt;br /&gt; $conn=mssql_close();&lt;br /&gt; ?&gt;
Corrigindo Bug PHP :
Na pasta de seu site, tem o config.php, abra-o após abri-lo vc terá q adicionar esse codigo após o &lt;?php(uma linha abaixo):$xa = getenv('REMOTE_ADDR');&lt;br /&gt; $badwords = array(";","'","\"","*","union","del","DEL","insert","update","=","drop","sele","$");&lt;br /&gt; foreach($_POST as $value)&lt;br /&gt; foreach($badwords as $word)&lt;br /&gt; if(substr_count($value, $word) &gt; 0)&lt;br /&gt; die("Security Warning!&lt;br /&gt;

Forbidden simbols are included, please remove them and try again -&gt; $xa");
Assim ele bloqeará os codigos usados para hakear usando o sql injection


Jobs :
Para se criar uma Job va ate microsoft SQL interprise manager
Management &gt; SQL agent &gt; Jobs &gt;
clique botao direito e depois em new Job

GM Rico
Adiciona zen no bau dos GM´s de 1 em 1 hora o valor pode ser alterado para odesejado. O tempo do job e de 1 em 1 hora.General:Name: Mesada de GMCategory: Uncategorized (Local)Owner: MUONLINE\AdministratorDatabase: muonlineUpdate CharacterSet Money=850120120Where CtlCode=8ANTI GMS falsos ou seja editadosBloqueia falsos GMs de 1 em 1 minuto checa se e verdadeiro o GM pode ser alteradopara o desejado. O tempo do job e de 1 em 1 minuto.E necessario criar uma coluna com o nome "Is_Valid_GM" na tabela Character e poro valor padrao = 0 para todos os personagens e para o Gm valor 1 manualmenteGeneral:Name: Anti-Injection de Falso GMCategory: Uncategorized (Local)Owner: MUONLINE\AdministratorDatabase: muonline
UPDATE CharacterSET CtlCode=('1')WHERE CtlCode=('8') and Is_Valid_GM=('0')Bloquiados todas accsUpdate MEMB_INFOSet bloc_code=1Liberando todas accsUpdate MEMB_INFOSet bloc_code=0
Auto Quest
auto quest , faiz virar sm / bk / me assim q xega no lvl 150update characterset class = ('1') , clevel = ('151') , leveluppoint = ('20')where clevel = ('150')and class = ('2')Update characterset class = ('17') , clevel = ('151') , leveluppoint = ('20')where clevel = ('150')and class = ('16')update characterset class = ('32') , clevel = ('151') , leveluppoint = ('20')where clevel = ('150')and class = ('33')
Em Breve mais scripts e jobs