音樂下載點:CLICK HERE!
開啟檔案wog/wog.js 寫:尋找
- 代碼: 選擇全部
var temp_m_hpmax=0;
後面,加上
- 代碼: 選擇全部
var bgm_set=0; //背景音樂 開關
var bgm_src="",m_a="",m_b="",bgm_lev="battle",bgm_num="",bgm_type=".mid";
尋找
- 代碼: 選擇全部
Sookie("wog_set_cookie", thisfrom.temp_id.value+","+thisfrom.act.value+","+thisfrom.temp_id2.value)
改成
- 代碼: 選擇全部
//BGM set cookies
if(f.s_mode[0].checked==true)
{
thisfrom.temp_id3.value=1;
}
if(f.s_mode[1].checked==true)
{
thisfrom.temp_id3.value=2;
}
//BGM set cookies end
Sookie("wog_set_cookie", thisfrom.temp_id.value+","+thisfrom.act.value+","+thisfrom.temp_id2.value+","+thisfrom.temp_id3.value)
尋找
- 代碼: 選擇全部
view_name.document.write('<tr><td ><input type="radio" name="a_mode" value="1" checked>快速模式 <input type="radio" name="a_mode" value="2" >一般模式</td></tr>');
後面,加上
- 代碼: 選擇全部
view_name.document.write('<tr><td >戰鬥音樂<input type="radio" name="s_mode" value="1" checked>開啟 <input type="radio" name="s_mode" value="2" >關閉</td></tr>');
尋找
- 代碼: 選擇全部
if(s1[2]==1)
{
view_name.document.write('<script>document.forms[0].a_mode[0].checked=true;document.forms[0].a_mode[1].checked=false;</script>');
}else
{
view_name.document.write('<script>document.forms[0].a_mode[1].checked=true;document.forms[0].a_mode[0].checked=false;</script>');
}
後面,加上
- 代碼: 選擇全部
if(s1[3]==1)
{
view_name.document.write('<script>document.forms[0].s_mode[0].checked=true;document.forms[0].s_mode[1].checked=false;</script>');
}else
{
view_name.document.write('<script>document.forms[0].s_mode[1].checked=true;document.forms[0].s_mode[0].checked=false;</script>');
}
尋找
- 代碼: 選擇全部
view_name.document.write(fight_temp_table1+'<tr><td colspan="2">'+p_name+'</td><td colspan="2" >'+m_name+'</td></tr>');
改成
- 代碼: 選擇全部
if(bgm_set==1)
{
if(bgm_num<10){bgm_num="0"+bgm_num;}
bgm_src=bgm_lev+bgm_num+bgm_type;
}
view_name.document.write(fight_temp_table1+'<tr><td colspan="2">'+p_name+'</td><td colspan="2" >'+m_a+m_name+m_b+'<span id=bgm><bgsound src="bgm/'+bgm_src+'" loop=-1></span></td></tr>');
開啟檔案wog/class/wog_fight_select.php 寫:尋找
- 代碼: 選擇全部
if($m[m_at] > 3500 || $m[m_mat] > 3500)
前面,加上
- 代碼: 選擇全部
//BGM_check_ability_start
if($_POST["temp_id3"]==1)
{
echo "parent.bgm_set=1;parent.bgm_lev='battle';";
if($_POST["act"]>=1 && $_POST["act"]<=4){$bgm_num=4;}
if($_POST["act"]>=5 && $_POST["act"]<=8){$bgm_num=6;}
if($_POST["act"]>=9 && $_POST["act"]<=12){$bgm_num=8;}
if($_POST["act"]>=13 && $_POST["act"]<=16){$bgm_num=9;}
$p_ab=round(($p[p_at]+$p[p_mat])/2);
$m_db=round(($m[m_df]+$m[m_mdf])/2);
$p_db=round(($p[p_df]+$p[p_mdf])/2);
$m_ab=round(($m[m_at]+$m[m_mat])/2);
if($p_ab*0.7>$m_db && $p_db*0.7>$m_ab){$bgm_num-=3;}
elseif($p_ab*0.8>$m_db && $p_db*0.8>$m_ab){$bgm_num-=2;}
elseif($p_ab*0.9>$m_db && $p_db*0.9>$m_ab){$bgm_num-=1;}
elseif($p_ab*1.1>$m_db && $p_db*1.1>$m_ab){echo "parent.bgm_lev='boss';";}
if($bgm_num<1){$bgm_num=1;}
echo "parent.bgm_num=".$bgm_num.";";
}
else
{echo "parent.bgm_set=0,parent.bgm_src='';";}
//BGM_check_ability_end
儲存,關閉所有檔案
完畢,有問題請提出。