[問題]商店街新增LV分類

WOG設定安裝教學

版主: 涅魂, 簫哥

頭像
Kagami
 
文章: 256
註冊時間: 2005-07-01 2:38 pm
來自: HongKong    

[問題]商店街新增LV分類

文章Kagami » 2005-07-07 8:13 am

請問如何在商店街加入lv?
謝謝...




涅魂
 
文章: 4463
註冊時間: 2004-01-04 11:17 am
來自: Taiwan
性別: 男生

文章涅魂 » 2005-07-07 8:25 am

如果是指新的LV的話請透過wog.js修改,並且還要在wog_act_shop.php中加入新的等級的判斷。 :wink:



maxjbl
 
文章: 178
註冊時間: 2005-05-03 4:20 am

文章maxjbl » 2005-07-09 9:22 am

那是否也要在數據庫 wog_df 增加對應的欄位 !!!



頭像
Kagami
 
文章: 256
註冊時間: 2005-07-01 2:38 pm
來自: HongKong    

文章Kagami » 2005-07-09 10:37 am

maxjbl 寫:那是否也要在數據庫 wog_df 增加對應的欄位 !!!
不用,但要在./class/wog_act_shop.php中加入新的lv上限

加入了之後還要在default這個等級中的上限,修改為你的最高lv能力中的上限。
p.s.wog.js中可以加入道具lv的功能。



maxjbl
 
文章: 178
註冊時間: 2005-05-03 4:20 am

文章maxjbl » 2005-07-09 5:36 pm

wog.js

尋找
代碼
function select_store()
內的 [紅色就是你要的代碼啦]

代碼: 選擇全部
view_name.document.write('<tr><td >武器裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,0)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,0)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,0)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,0)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,0)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,0)"> <input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,0)"> </td></tr>');

代碼: 選擇全部
view_name.document.write('<tr><td >頭部裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,1)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,1)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,1)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,1)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,1)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,1)"> [color=red]<input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,1)"> [/color]</td></tr>');


代碼: 選擇全部
view_name.document.write('<tr><td >身體裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,2)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,2)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,2)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,2)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,2)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,2)"> [color=red]<input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,2)"> [/color]</td></tr>');

代碼: 選擇全部
view_name.document.write('<tr><td >手部裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,3)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,3)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,3)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,3)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,3)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,3)"> [color=red]<input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,3)"> [/color]</td></tr>');

代碼: 選擇全部
view_name.document.write('<tr><td >腳部裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,4)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,4)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,4)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,4)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,4)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,4)"> [color=red]<input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,4)"> [/color]</td></tr>');




頭像
Kagami
 
文章: 256
註冊時間: 2005-07-01 2:38 pm
來自: HongKong    

文章Kagami » 2005-07-09 5:43 pm

maxjbl 寫:wog.js

尋找
代碼
function select_store()
內的 [紅色就是你要的代碼啦]

代碼: 選擇全部
view_name.document.write('<tr><td >武器裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,0)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,0)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,0)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,0)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,0)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,0)"> <input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,0)"> </td></tr>');

代碼: 選擇全部
view_name.document.write('<tr><td >頭部裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,1)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,1)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,1)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,1)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,1)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,1)"> [color=red]<input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,1)"> [/color]</td></tr>');


代碼: 選擇全部
view_name.document.write('<tr><td >身體裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,2)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,2)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,2)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,2)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,2)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,2)"> [color=red]<input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,2)"> [/color]</td></tr>');

代碼: 選擇全部
view_name.document.write('<tr><td >手部裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,3)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,3)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,3)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,3)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,3)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,3)"> [color=red]<input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,3)"> [/color]</td></tr>');

代碼: 選擇全部
view_name.document.write('<tr><td >腳部裝具</td><td><input type="button" value="LV1" onClick="parent.th_submit(document.f1,1,4)"> <input type="button" value="LV2" onClick="parent.th_submit(document.f1,2,4)"> <input type="button" value="LV3" onClick="parent.th_submit(document.f1,3,4)"> <input type="button" value="LV4" onClick="parent.th_submit(document.f1,4,4)"> <input type="button" value="LV5" onClick="parent.th_submit(document.f1,5,4)"> <input type="button" value="LV6" onClick="parent.th_submit(document.f1,6,4)"> [color=red]<input type="button" value="LV7" onClick="parent.th_submit(document.f1,7,4)"> [/color]</td></tr>');

謝了...^^



FLOKY﹏。
 

文章FLOKY﹏。 » 2005-07-09 8:21 pm

冇問題,,,照著樓主修改便可




回到 精華區

誰在線上

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