[外掛](2.08)重生館

版主: 涅魂, 簫哥

頭像
kelyiu3000
 
文章: 95
註冊時間: 2004-08-05 7:35 pm

文章kelyiu3000 » 2006-03-16 5:49 pm

有人答我嗎



頭像
~木林森~
 
文章: 446
註冊時間: 2005-01-20 12:28 pm
來自: 澎湖的某一處

文章~木林森~ » 2006-03-16 7:43 pm

是以重生次數計算能力 :)
重生次數越多,能力越強
至於想要依轉生前等級計算能力 :?
可以先自己研究一下 :o

還有並不是每個人時時都有空
有人看到自然會回覆 :D
並不用發問是否有人會回答 :roll:
除非是文章已經被推到很後面很後面...
很難被發現... :wink:


龜速吸收PHP知識中...
"新"[團結就是力量論壇]登場!歡迎大家加入
WOG Only v2.08 + else Mod (簡單的架設結合許多優秀外掛的WOG)

頭像
kelyiu3000
 
文章: 95
註冊時間: 2004-08-05 7:35 pm

文章kelyiu3000 » 2006-03-17 6:44 pm

想要依轉生前等級計算能力
和想要依轉生前能力計算能力
是怎改....><
我知是這個
if($p[p_rebirth]<1){
$basic=30;
}else{
$basic=$p[p_rebirth]*50;
}
還有我想問重生後
職業會怎樣?



minglo
 
文章: 250
註冊時間: 2004-01-17 10:05 am
來自: hong kong

文章minglo » 2006-04-11 12:33 pm

請問可不可以如果高LV的話,以減的方法來重生?
例如:重生第一次就要1000LV變回1LV,重生第二次就要1000LV變回1LV,如我比1000LV高(例如3500LV),重生第一次就減1000LV(接例如:重生第一次(減1000LV)後,即2500LV),重生第二次就減2000LV(接例如:重生第二次(減再2000LV)後即500LV),而不會直接回到1LV。

我的中文不好,如果看不明白,請通知我。thx



poil
 
文章: 43
註冊時間: 2004-04-08 6:29 pm

文章poil » 2006-04-18 9:55 pm

minglo 寫:請問可不可以如果高LV的話,以減的方法來重生?
例如:重生第一次就要1000LV變回1LV,重生第二次就要1000LV變回1LV,如我比1000LV高(例如3500LV),重生第一次就減1000LV(接例如:重生第一次(減1000LV)後,即2500LV),重生第二次就減2000LV(接例如:重生第二次(減再2000LV)後即500LV),而不會直接回到1LV。
我的中文不好,如果看不明白,請通知我。thx

是重生每一次就加附加等級
wog_act_rebirth.php
poil 寫:if($p[p_lv]<$wog_arry["rebirth_lv"]+$p[p_rebirth]*$wog_arry["rebirth_Attachment_lv"])



wog_act_config.php
poil 寫:$wog_arry["rebirth_Attachment_lv"]=1000;//重生所需附加等級

以下不一定可行,因為未試驗
poil 寫:$DB_site->query("update wog_player set p_lv=$p[p_rebirth]<1=$p[p_rebirth]*250,p_exp=0,p_nextexp=1000,p_at=".rand($p[p_rebirth]*2,$p[p_rebirth]*10)."+".($_POST["str"]+$basic).",



最後由 poil 於 2006-04-19 3:43 am 編輯,總共編輯了 2 次。

poil
 
文章: 43
註冊時間: 2004-04-08 6:29 pm

文章poil » 2006-04-19 2:00 am

以下是我進行線上名單顯示後出現問題
線上名單顯示重生次數

尋找
代碼:
p_place

後面加上
代碼:
,p_rebirth

尋找
代碼:
$onlines[7]

後面加上
代碼:
.",".$onlines[8]




function peo_view($userid)
{
global $DB_site,$wog_arry;
$p_ip=get_ip();
phpbb_check($p_ip);// phpbb論壇專用
$datecut = time() - $wog_arry["offline_time"];

$show_ip = false;

if(!empty($userid) && $userid != 0) {
$p=$DB_site->query_first("select pe_dateline from wog_pet where pe_p_id='".$userid."'");

if($p) {
if(time()-$p["pe_dateline"] > $wog_arry["pet_fu_time"]*60) {
$DB_site->query("update wog_pet set pe_dateline=".time().",pe_he=pe_he-1,pe_fu=pe_fu-".rand(5,18).",pe_hu=pe_hu+1 where pe_p_id=".$userid." and pe_st=0 ");
}
}

if($userid!=300) {
if($p=$DB_site->query_first("SELECT a.p_online_time,a.p_name,a.p_ip,a.p_st,COUNT(b.p_id) as num_online FROM wog_player a
LEFT JOIN wog_player b ON b.p_ip LIKE '".get_ip()."' AND b.p_online_time > $datecut
WHERE a.p_id=$userid GROUP BY b.p_ip")) {
//if($p=$DB_site->query_first("SELECT a.p_online_time,a.p_name,a.p_ip,a.p_st FROM wog_player a
// WHERE a.p_id=$userid")) {
if($p["p_online_time"] < $datecut) {
// 閒設太久要被登出
$filename="/home/web/apache/htdocs/wog/chatlog/chatlog".date("ymda",time()+$wog_arry["server_time_offset"]).".txt";
$fp=fopen($filename,"a");
$word_say=date("H:i:s",time()+$wog_arry["server_time_offset"])."&&".$p["p_name"]."&&0&&".get_ip()."&&&&1&&閒設太久登出了&&\n";
while(!is_writeable($filename)){ }
fputs($fp,$word_say);
fclose($fp);

setcookie("wog_cookie","");
setcookie("wog_cookie_name","");
setcookie("wog_bbs_id","");
showscript("parent.document.URL='".$wog_arry["logout_url"]."';");
}
if($p["p_st"]==1) { $show_ip = true; }
if($p["p_ip"] != $p_ip) {
$DB_site->query("UPDATE wog_player SET p_ip='$p_ip' WHERE p_id=$userid");
}
if($p["num_online"]>2) {
AddName ($p["p_name"],4320,"於 $p_ip 重覆登入了 ".$p["num_online"]." 個帳號 by 系統","list-ban.txt");
//AddName ($p_ip.",IP",1440,"重覆登入了 ".$p["num_online"]." 個帳號 by 系統","list-ban.txt");

// 重覆登入要被登出
$DB_site->query("update wog_player set p_online_time=".(time() - $wog_arry["offline_time"])." WHERE p_id=".$userid);
$filename="/home/web/apache/htdocs/wog/chatlog/chatlog".date("ymda",time()+$wog_arry["server_time_offset"]).".txt";
$fp=fopen($filename,"a");
$word_say=date("H:i:s",time()+$wog_arry["server_time_offset"])."&&".$p["p_name"]."&&0&&".$p["p_ip"]."->".get_ip()."&&&&1&&因為 IP 登入超過 2 個帳號而被系統踢飛及放遂了&&\n";
//$word_say=date("H:i:s",time()+$wog_arry["server_time_offset"])."&&".$p["p_name"]."&&0&&".$p["p_ip"]."->".get_ip()."&&&&1&&IP轉換了&&\n";
while(!is_writeable($filename)){ }
fputs($fp,$word_say);
fclose($fp);

setcookie("wog_cookie","");
setcookie("wog_cookie_name","");
setcookie("wog_bbs_id","");
showscript("alert('你的 IP 登入超過限制,請先登出別的帳號再登入');parent.document.URL='".$wog_arry["logout_url"]."';");
}
}
} else {
$show_ip = true;
}
}

$online=$DB_site->query("SELECT a.p_name,a.p_sex,a.p_lv,a.p_pk_s,a.p_pk_money,a.p_place,a.p_rebirth,a.p_ip,COUNT(b.p_id) as num_online
FROM wog_player a
LEFT JOIN wog_player b ON b.p_ip LIKE a.p_ip AND b.p_online_time > $datecut
WHERE a.p_online_time > $datecut
GROUP BY a.p_id
ORDER BY a.p_place DESC, a.p_lv DESC");
$temp_s="";
while($onlines=$DB_site->fetch_array($online))
{
$temp_s.=";".$onlines[0].",".$onlines[1].",".$onlines[2].",".$onlines[3].",".$onlines[4].",".$onlines[5];
if($show_ip==true) {
$temp_s.=",".$onlines[6]." (x".$onlines[7].",".$onlines[8].")";
}
}

$DB_site->free_result($online);
unset($onlines);
$temp_s=substr($temp_s,1,strlen($temp_s));
showscript("parent.onlinelist('$temp_s')");
unset($temp_s);
}


wog.js

尋找
代碼:
<td >LV</td>

後面加上
代碼:
<td>重生次數</td>

尋找
代碼:
<font color=green>'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td>

後面加上
代碼:
<td >'+s2[7]+'</td>

尋找
代碼:
<font color="'+fcolor+'">'+s2[0]+'</font></b></a></td><td >'+s2[2]+'</td>

後面加上
代碼:
<td >'+s2[7]+'</td>

function onlinelist中
尋找所有的
代碼:
colspan="3"

全部替換成
代碼:
colspan="4"


//########## online peo begin ###########
function onlinelist(peo)
{
var peo_name=parent.wog_peo;
message_cls(peo_name,0);
peo_name.document.write(online_temp_table1);
var c_place=0;
var c_ppl=0;
if(peo!="")
{
peo_name.document.write('<tr class="heading"><td>名稱</td><td>LV</td><td>重生次數</td><td>PK</td></tr>\n');
var s1=peo.split(";");
for(var i=0;i<s1.length;i++)
{
var s2=s1[i].split(",");
if (c_place==0) { c_place = s2[5]; }
if (c_place==s2[5]) {
c_ppl++;
} else {
peo_name.document.write('<tr><td class="heading" colspan="4">↑'+c_ppl+' 人在 '+c_place+' 樓↑</td></tr>\n');
c_place=s2[5];
c_ppl=1;
}
var fcolor=psex(s2[1]);
(s2[3]==1)?s2[3]="Y":s2[3]="N";
peo_name.document.write('<tr><td><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" title="');
if (s2[5]==0) {
peo_name.document.write('未開始練功');
} else {
peo_name.document.write('正在'+s2[5]+'樓');
}
peo_name.document.write('"><font color="'+fcolor+'">'+s2[0]+'</font></a></td>');
if (s2.length>6) {
peo_name.document.write('<td style="font-size:8pt;"><a title="IP:'+s2[6]+'">'+s2[2]+'</a></td>');
} else {
peo_name.document.write('<td style="font-size:8pt;">'+s2[2]+'</td>');
}
peo_name.document.write('<td style="font-size:8pt;">'+s2[7]+'</td>');
peo_name.document.write('<td style="font-size:8pt;"><a href=javascript:parent.yesname("'+s2[0]+'") target="foot" title="PK金額:'+s2[4]+'">'+s2[3]+'</a></td></tr>\n');
}
peo_name.document.write('<tr><td class="heading" colspan="4"><a href="http://www.adlandpro.com/partner.asp?ref=202547&pg=main" target="_blank">線上人數 '+s1.length+' 人</a></td></tr>\n');
}else
{
peo_name.document.write('<tr><td class="heading" colspan="4"><a href="http://www.adlandpro.com/partner.asp?ref=202547&pg=main" target="_blank">線上人數 0 人</a></td></tr>\n');
}
peo_name.document.write(temp_table2);
}



lts
 
文章: 126
註冊時間: 2005-04-23 9:51 am
來自: 緣份

文章lts » 2006-04-19 7:31 am

看到眼花=o="(希望樓上加上code).但我裝上是沒問題的@@"

試試留意每一字眼@@"...我有空看看=V=


http://lts.sytes.net

失敗的我..................

minglo
 
文章: 250
註冊時間: 2004-01-17 10:05 am
來自: hong kong

文章minglo » 2006-04-19 10:46 am

poil 寫:
minglo 寫:請問可不可以如果高LV的話,以減的方法來重生?
例如:重生第一次就要1000LV變回1LV,重生第二次就要1000LV變回1LV,如我比1000LV高(例如3500LV),重生第一次就減1000LV(接例如:重生第一次(減1000LV)後,即2500LV),重生第二次就減2000LV(接例如:重生第二次(減再2000LV)後即500LV),而不會直接回到1LV。
我的中文不好,如果看不明白,請通知我。thx

是重生每一次就加附加等級
wog_act_rebirth.php
poil 寫:if($p[p_lv]<$wog_arry["rebirth_lv"]+$p[p_rebirth]*$wog_arry["rebirth_Attachment_lv"])



wog_act_config.php
poil 寫:$wog_arry["rebirth_Attachment_lv"]=1000;//重生所需附加等級

以下不一定可行,因為未試驗
poil 寫:$DB_site->query("update wog_player set p_lv=$p[p_rebirth]<1=$p[p_rebirth]*250,p_exp=0,p_nextexp=1000,p_at=".rand($p[p_rebirth]*2,$p[p_rebirth]*10)."+".($_POST["str"]+$basic).",

請問大大可不可以告訴我在那裡和那一句下加這些句子,我不是太明白在那裡改 :?: :?:
先謝謝大大的幫忙!



poil
 
文章: 43
註冊時間: 2004-04-08 6:29 pm

文章poil » 2006-04-19 4:12 pm

poil 寫:
minglo 寫:請問可不可以如果高LV的話,以減的方法來重生?
例如:重生第一次就要1000LV變回1LV,重生第二次就要1000LV變回1LV,如我比1000LV高(例如3500LV),重生第一次就減1000LV(接例如:重生第一次(減1000LV)後,即2500LV),重生第二次就減2000LV(接例如:重生第二次(減再2000LV)後即500LV),而不會直接回到1LV。
我的中文不好,如果看不明白,請通知我。thx

是重生每一次就加附加等級
wog_act_rebirth.php
poil 寫:找尋
if($p[p_lv]<$wog_arry["rebirth_lv"]){

修改後
if($p[p_lv]<$wog_arry["rebirth_lv"]+$p[p_rebirth]*$wog_arry["rebirth_Attachment_lv"])



wog_act_config.php

poil 寫:$wog_arry["rebirth_Attachment_lv"]=1000;//重生所需附加等級

以下不一定可行,因為未試驗
poil 寫:wog_act_rebirth.php

找尋
$DB_site->query("update wog_player set p_lv=1,p_exp=0,p_nextexp=1000,p_at=".rand($p[p_rebirth]*2,$p[p_rebirth]*10)."+".($_POST["str"]+$basic).",

修改後
$DB_site->query("update wog_player set p_lv=$p[p_rebirth]<1=$p[p_rebirth]*250,p_exp=0,p_nextexp=1000,p_at=".rand($p[p_rebirth]*2,$p[p_rebirth]*10)."+".($_POST["str"]+$basic).",




阿澄
 
文章: 31
註冊時間: 2005-10-09 9:32 pm

文章阿澄 » 2006-04-22 11:36 pm

請問如果要設定一種裝備只有重生過的人才可裝備要怎樣做 @@?



minglo
 
文章: 250
註冊時間: 2004-01-17 10:05 am
來自: hong kong

文章minglo » 2006-04-24 6:08 pm

可不可以重生時,以原能力+可增加能力值(自行分配)來重生。

以重生前的各能力+可增加能力值(自行分配):
例現有各能力為2000,如我設定各能力+10(即是2000+10=2010)這樣可以嗎?



上一頁

回到 外掛區

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 2 位訪客

cron