你可以參考10度C大大發的"10度C修改版"的聊天室去加入。
打開chat.php找
- 代碼: 選擇全部
//儲存格式 發言玩家ID ### 輸出模式 ### 輸出對象ID ### 輸出內容
$s=$p['p_id'].'###'.$_POST['export_type'].'###'.$to_id.'###'.$export_title.'<b><font color='.$_POST['color'].'>'.strip_tags($_POST['message'],'<img>').'</font></b>';
$fp = fopen($_filename,'a+');
while(!is_writeable($_filename)){}
fputs($fp,$s."\r\n");
fclose($fp);
unset($s);
unset($fp);
echo "<script language=javascript>parent.chat_input.document.frm.message.value='';parent.chat_input.document.frm.sendtime.value=".time().";</script>"; // 刪除輸入訊息並寫入說話時間
改成
- 代碼: 選擇全部
[color=red]if($p['p_chatban'] == "1")
{
echo '<font color=red><b>系統訊息</b></font>:恭喜~~你已經被遊戲管理員禁言了...^.^<br>';
$_error = true;
$_rearrange=false;
}else
{[/color]
//儲存格式 發言玩家ID ### 輸出模式 ### 輸出對象ID ### 輸出內容
$s=$p['p_id'].'###'.$_POST['export_type'].'###'.$to_id.'###'.$export_title.'<b><font color='.$_POST['color'].'>'.strip_tags($_POST['message'],'<img>').'</font></b>';
$fp = fopen($_filename,'a+');
while(!is_writeable($_filename)){}
fputs($fp,$s."\r\n");
fclose($fp);
unset($s);
unset($fp);
echo "<script language=javascript>parent.chat_input.document.frm.message.value='';parent.chat_input.document.frm.sendtime.value=".time().";</script>"; // 刪除輸入訊息並寫入說話時間
[color=red] }[/color]
引用 齋月的話 寫:禁言 方面 紅色部分也要加一下
- 代碼: 選擇全部
$p = $DB_site->query_first('SELECT p_name,p_userlv[color=red],p_chatban[/color] FROM wog_player WHERE p_id = '.$p['p_id']);
停權玩家卻可以登入 :
打開wog_act_chara.php
在 function login()找
- 代碼: 選擇全部
if($p[p_lock]==1)
上面加上
- 代碼: 選擇全部
if($p[p_lock]==1)
{
alertWindowMsg($lang['wog_act_chara_nologin']); //登入時彈出"帳號被鎖"
}
if ($p[p_lock_time] !=0 and $p[p_lock_time] > time()){
alertWindowMsg("系統管理員將暫時封閉你的帳號至".date("Y,Md h:i a",$p[p_lock_time]));
}
已在線玩家會發生戰鬥不能的情況,不過其他動作好像正常...
因此有時候被禁玩家會用聊天室鬧場...,要解決這個問題可以另外在
acpmain.php有關把玩家停權那部分加一個p_chatban='1'
把玩家解除停權的部分加一個p_chatban='0'
記得精華區有這類文章喔@@
可以多翻翻找一下
另外那個職業熟練度加在後台 顯示方面
可以參考wog.js裡 對熟練度處理的function :)