第 1 頁 (共 1 頁)
[問題] 水怪RPG中 2 個問題
發表於 : 2004-04-09 09:19
由 help
其實水怪RPG已經在小弟我討論版行了有久
一向都沒有什麼大問題,不過近日大部分之用戶 Level 要去到 150 ...
150就已經頂點,有沒有得Set 高一些 ?
而第二個問題就係在起步點大新用戶行了一步 Block 了附近的路\r
好多用戶被 Block 在中心,走不出來......
有沒有方法去 Fix ?
發表於 : 2004-04-28 02:11
由 Ricky Zero
我的作法
1、限制低於lv10的人不得玩水怪\r
2、低於lv10的人強制回原點(永遠在起點上)
你可以透過調整ma points來修正或是直接改sql,讓起點附近的人全部回原點
還有一種是在語法中加入在起點附近強制不出現npc
等級上限可以自己改\r
找function_rpg.php中的//限制最高等級
就知了
發表於 : 2004-04-28 13:09
由 help
Ricky Zero 寫:我的作法
1、限制低於lv10的人不得玩水怪\r
2、低於lv10的人強制回原點(永遠在起點上)
你可以透過調整ma points來修正或是直接改sql,讓起點附近的人全部回原點
還有一種是在語法中加入在起點附近強制不出現npc
等級上限可以自己改\r
找function_rpg.php中的//限制最高等級
就知了
我想學 2 "低於lv10的人強制回原點(永遠在起點上)"
可否 detail 講解一下如何修改 ?
發表於 : 2004-04-29 00:16
由 Ricky Zero
打開function_eol.php找到\r
代碼: 選擇全部
// 升級
LevelUp($uid, true);
}
}
$sql = "update phpbb_users set rpg_cur_hp = rpg_max_hp, rpg_eol_data = concat('0', substring(rpg_eol_data, 2, 2), '000000086'),
rpg_cur_mp = rpg_max_mp where rpg_cur_hp <= 0";
$db->sql_query($sql);
在它的下方加入\r
代碼: 選擇全部
//lv10以下玩家回原點
$sql = "update phpbb_users set rpg_eol_data = NULL where rpg_level < 10";
$db->sql_query($sql);
$ret_msg .= "等級低於LV10的獵人將被貪婪on-line送回出發的地方";
請記得加入上方的語法後
下方的語法會變成是\r
代碼: 選擇全部
}
\n
unset($sql);
unset($row);
unset($row2);
unset($result);
return $ret_msg;
}
function AttackPercent($self, $target)
這是我的作法
不過那行訊息不一定會跑出來>"<
發表於 : 2004-04-29 13:25
由 help
好多謝你既指教,成功了
不過有一些路人頂住了,是否又有可以 Seting 路人不在原原附近出 ?
發表於 : 2004-04-29 19:58
由 Ricky Zero
一樣是改function_eol.php
找到路人那二段中的
代碼: 選擇全部
$sql = "select count(*) as map_count from phpbb_rpg_eol where map_id = 0 and can_not_pass = 0 and map_x < 44 and map_y > 10";
在裏面加入and map_x > 3
會變成
代碼: 選擇全部
$sql = "select count(*) as map_count from phpbb_rpg_eol where map_id = 0 and can_not_pass = 0 and map_x > 3 and map_x < 44 and map_y > 10";
其他段自己找吧^^y
改完後存檔後,進phpmyadmin中,重load一次npc的sql
再進一次eol就會出來了
發表於 : 2004-04-30 01:06
由 help
Ricky Zero 寫:一樣是改function_eol.php
找到路人那二段中的
代碼: 選擇全部
$sql = "select count(*) as map_count from phpbb_rpg_eol where map_id = 0 and can_not_pass = 0 and map_x < 44 and map_y > 10";
在裏面加入and map_x > 3
會變成
代碼: 選擇全部
$sql = "select count(*) as map_count from phpbb_rpg_eol where map_id = 0 and can_not_pass = 0 and map_x > 3 and map_x < 44 and map_y > 10";
其他段自己找吧^^y
改完後存檔後,進phpmyadmin中,重load一次npc的sql
再進一次eol就會出來了
再後一個問題,Sql 如何再一次 Npc 的 Sql ?
可否題共語句 ^^
發表於 : 2004-04-30 02:21
由 吉川拓也
先清掉 phpbb_rpg_npc 的欄位 !
再重新輸入一次 phpbb_rpg_npc 的 sql !