以解決 寫:這外掛(!?),說修改好了0_0
這修改,是從yahoo即時通得來的靈感 @_@
再參考 涅哥哥的公會訊息外掛 做出來的
目前有三個問題~
1。無法像 公會訊息 一樣,使用換行。(測試後整個玩家列表會掛掉)
2。無法在修改完狀態後,馬上更新玩家列表。
3。從 mysql 預覽wog_status資料 時,有些資料的刪除格會變成問號。如下圖
http://i11.tinypic.com/2cmsxsl.jpg
1&2不是什麼大問題,但還是希望有高手可以指教。
3的話,不曉得會不會使整個系統出錯,因此希望有高手可以解釋該狀況。
裝完後的畫面
http://i10.tinypic.com/40cy7nc.gif
圖片可能會有點看不懂,
左邊是讓您輸入您想要的狀態,
右邊顯示的黃色框框,就是您的狀態。
出現黃色框框的辦法,就是 將滑鼠游標 往旁邊在線列表的帳號上一擺,
莫約一秒鐘,即會出現。
而原本那位置,是出現PK所需金額的,改完後
PK所需金額,改至 將滑鼠遊標 往PK Y/N 一擺,
莫約一秒鐘,即會出現。
顯示在PK設定的修改方式
http://www.2233.idv.tw/viewtopic.php?p=3916133#3916133
顯示在情報中心的修改方式
由於要下載原版v3 再慢慢PO出修改.....
(非常麻煩.....因為一堆程式碼和我現在的不一樣 =.=)
可能會有漏掉,若裝完後,無法執行,請回覆告知
增加個人狀態 寫:輸入SQL語法 寫:ALTER TABLE `wog_player` ADD `p_status` VARCHAR( 100 ) CHARACTER SET big5 NOT NULL ;開啟 wog.js 寫:尋找下面,加上
- 代碼: 選擇全部
/*=====================================================
Copyright (C) ETERNAL<iqstar.tw@gmail.com>
Modify : 2005/09/17
URL : http://www.2233.idv.tw
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
===================================================== */
- 代碼: 選擇全部
var p_status="";
IN function system_view(s)尋找下面,加上
- 代碼: 選擇全部
var view_name=parent.wog_view;
- 代碼: 選擇全部
view_name.document.write(temp_table1);
view_name.document.write('<tr><td bgcolor="#4B689E">更改狀態</td></tr>');
view_name.document.write('<form action="wog_act.php" method="post" name="f3" target="mission">');
view_name.document.write('<tr><td><input type="text" name="p_status" size="80" maxlength="100" value="'+p_status+'"> <input type="button" value="改變狀態" onClick="parent.act_click(\'store\',\'status_save\',p_status.value)"></td></tr>');
view_name.document.write('</form>');
view_name.document.write(temp_table2);
view_name.document.write(hr);
尋找下面,加上
- 代碼: 選擇全部
function system_view(s)
{
..........
..........
..........
}
- 代碼: 選擇全部
function system_view2(s)
{
message_cls();
var view_name=parent.wog_view;
view_name.document.write(temp_table1);
view_name.document.write('<tr><td>內容</td><td>發生時間</td></tr>');
if(s!="")
{
var s1=s.split(";");
for(var i=0;i<s1.length;i++)
{
var s2=s1[i].split(",");
view_name.document.write('<tr><td>'+s2[0]+'</td><td>'+s2[1]+'</td></tr>');
}
}else
{
view_name.document.write('<tr><td colspan="8" >尚未發生任何事件</td></tr>');
}
view_name.document.write(temp_table2);
}
尋找覆蓋為
- 代碼: 選擇全部
f.write('<tr><td ><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" title="'+s2[4]+'"><b><font color="'+fcolor+'">'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td><td >'+s2[3]+'</td></tr>');
- 代碼: 選擇全部
f.write('<tr><td ><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" [color=red]title="'+s2[6]+'"[/color]><b><font color="'+fcolor+'">'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td><td >[color=red]<a title="'+s2[4]+'">[/color]'+s2[3]+'[color=red]</a>[/color]</td></tr>');
開啟 /class/wog_act_chara.php 寫:IN login()
尋找覆蓋為
- 代碼: 選擇全部
$p=$DB_site->query_first("select p_id,p_name,p_lock,p_bbsid,p_st,p_lock_time from wog_player where p_name='".$_POST["id"]."' and p_password='".$_POST["pass"]."' ");
- 代碼: 選擇全部
$p=$DB_site->query_first("select p_id,p_name,p_lock,p_bbsid,p_st,p_lock_time[color=red],p_status[/color] from wog_player where p_name='".$_POST["id"]."' and p_password='".$_POST["pass"]."' ");
尋找覆蓋為
- 代碼: 選擇全部
showscript("parent.peolist.document.location.reload()");
- 代碼: 選擇全部
showscript("[color=red]parent.p_status='".$p['p_status']."';[/color]parent.peolist.document.location.reload()");
開啟 /class/wog_act_store.php 寫:尋找上面,加上
- 代碼: 選擇全部
}
?>
- 代碼: 選擇全部
function p_status_save($user_id)
{
global $DB_site,$_POST,$lang;
$temp=htmlspecialchars($_POST["temp_id"]);
if(strlen($temp) > 200)
{
alertWindowMsg($lang['wog_act_chara_status_long']);
}
$DB_site->query("update wog_player set p_status='".$temp."' where p_id=".$user_id);
showscript("parent.p_status='".$_POST['temp_id']."';parent.job_end(11);parent.peolist.document.location.reload()");
}開啟 /class/wog_etc_peo.php 寫:尋找覆蓋為
- 代碼: 選擇全部
$online=$DB_site->query("select p_name,p_sex,p_lv,p_pk_s,p_pk_money,p_place from wog_player where p_online_time > $datecut and p_lock=0 order by p_lv desc");
- 代碼: 選擇全部
$online=$DB_site->query("select p_name,p_sex,p_lv,p_pk_s,p_pk_money,p_place[color=red],p_status[/color] from wog_player where p_online_time > $datecut and p_lock=0 order by p_lv desc");
尋找覆蓋為
- 代碼: 選擇全部
$temp_s.=";".$onlines[0].",".$onlines[1].",".$onlines[2].",".$onlines[3].",".$onlines[4].",".$onlines[5];
- 代碼: 選擇全部
$temp_s.=";".$onlines[0].",".$onlines[1].",".$onlines[2].",".$onlines[3].",".$onlines[4].",".$onlines[5][color=red].",".$onlines[6][/color];
儲存關閉所有檔案(完)
多謝涅哥哥的指教 [quote="涅魂"]<u>積分 +5</u>
新功能分享,還不錯用
at 2007-03-06 07:17 pm[/point]