Busco algún mod que haga sonar el navegador cuando esté recibiendo algún ataque o algo por el estilo. Muchas gracias de antemano.
Busco algún mod de alarma
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
tellez wrote:
Busco algún mod que haga sonar el navegador cuando esté recibiendo algún ataque o algo por el estilo. Muchas gracias de antemano.
VERY SAD -
yamilrh wrote:
tellez wrote:
Busco algún mod que haga sonar el navegador cuando esté recibiendo algún ataque o algo por el estilo. Muchas gracias de antemano.
-
tellez wrote:
yamilrh wrote:
tellez wrote:
Busco algún mod que haga sonar el navegador cuando esté recibiendo algún ataque o algo por el estilo. Muchas gracias de antemano.
HTML Source Code
- <div style="height:0; overflow:hidden;" loop="false;" id="music">
- <audio id="beepataks" preload="auto">
- <source src="{$dpath}/sound/sirena.mp3">
- <source src="{$dpath}/sound/sirena.ogg">
- </audio>
- <script type="text/javascript">
- var ataks = "{$totalAttacks}";
- var spio = "{$totalSpio}";
- var unic = "{$unicAttacks}";
- var rakets = "{$totalRockets}";
- document.getElementById('beepataks').volume={$sirena};
- setInterval(function() { AJAX() }, 5000);
- </script>
- </div>
VERY SAD -
-
this is what you will need e file creatShowScanPage.class.php
Source Code
- class ShowScanPage extends AbstractGamePage
- {
- function __construct()
- {
- parent::__construct();
- }
- function Show()
- {
- global $USER;
- $db = Database::get();
- $Alarm = $db->selectSingle("SELECT COUNT(`fleet_target_owner`) as nr FROM uni".$USER['universe']."_fleets WHERE `fleet_target_owner` = '". $USER['id'] ."' AND (`fleet_mission` = '1' OR `fleet_mission` = '2' OR `fleet_mission` = '9') AND `fleet_mess` ='0';");
- echo $Alarm['nr'];
- exit;
- }
- }
-
also create a script json.js place it in scripts/game
Source Code
- function AJAX()
- {
- jQuery.post("./json.php", {'ataks': ataks, 'spio': spio, 'unic': unic, 'rakets': rakets, 'ajax': 1, 'msg': msg}, function(data)
- {
- var indicators = document.getElementById('indicators');
- var newemail = document.getElementById('new_email');
- var beepataks = document.getElementById('beepataks');
- var msgaudio = document.getElementById('msgaudio');
- if(data.ICOFLEET)
- {
- indicators.innerHTML = data.ICOFLEET;
- if(data.SOUNDATAKS){
- beepataks.play();
- }
- if( msg < data.msg){
- if(data.SOUNDMSG){
- msgaudio.play();}
- }
- ataks = data.ataks;
- spio = data.spio;
- unic = data.unic;
- rakets = data.rakets;
- msg = data.msg;
- }
- }, "json"
- );
- }
-
in the main.navigation
at top of tpl
<script type="text/javascript">
setInterval(function() { AJAX() }, 5000);
</script>
<script type="text/javascript" src="./scripts/game/json.js"></script>
at bottom add
<div style="height:0; overflow:hidden;" loop="false;" id="music">
<audio id="beepataks" preload="auto">
<source src="./sound/sirena.mp3"></source>
<source src="./sound/sirena.ogg"></source>
</audio>
<audio id="msgaudio" preload="auto">
<source src="./sound/msg.mp3"></source>
<source src="./sound/msg.ogg"></source>
</audio>
<script type="text/javascript">
var ataks = "{$ataks}";
var spio = "{$spio}";
var unic = "{$unic}";
var rakets = "{$rakets}";
var msg = {$new_message};
document.getElementById('msgaudio').volume={$msgvolume};
document.getElementById('beepataks').volume={$volume};
</script> -
sorry for late reply
-
Russoll wrote:
sorry for late reply
-
-
whats the error?
-
Russoll wrote:
whats the error?
-
ok you need to post the errors , without seeing them you cant get the help needed
most of these errors are because you may not of added all the code in the mod -
Russoll wrote:
ok you need to post the errors , without seeing them you cant get the help needed
most of these errors are because you may not of added all the code in the mod
-
understood but i dont know what you have done to help you
-
Russoll wrote:
understood but i dont know what you have done to help you
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Users Online 1
1 Guest
-
Tags