1 頁 (共 2 頁)

[問題]水怪RPG完整版

發表於 : 2003-12-28 07:12
andyexex
問題外掛:水怪RPG完整版
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=20786
使用版本:phpBB 2.0.2
網站位置:http://www.e104.org/~andyexex/phpBB2/
狀況描述:
如何把水怪RPG分開來裝 :?: 我只想裝其中的搶匪道具店(需要拔釘器) :mrgreen:

發表於 : 2003-12-28 10:13
atthis
gamble.php & rpg_gamble.tpl 樂透
items.php & rpg_items.tpl 道具店
joinjobs.php & rpg_joinjobs.tpl 打工排班\r
position.php & rpg_position.tpl 職業考照\r
richer.php & function_richer.php & rpg_richer.tpl 大富翁
rob.php & rpg_rob.tpl 搶劫\r
stat.php & rpg_stat.tpl 個人資料檢視
weapons.php & rpg_weapons.tpl 武器店
eol.php & function_eol.php & rpg_eol.tpl 蘿莉帝國刑場\r
magic.php & rpg_magic.tpl 魔法學園
不想裝什麼,就不要裝或刪除\r

然後打開
rpg_header.tpl

代碼: 選擇全部

  		<a href="rpg.php?action=menu" class="gen">檢視個人資料</a><br><br>
  		<a href="rpg.php?action=position" class="gen">職業考照檢定</a><br><br>
  		<a href="rpg.php?action=eol" class="gen">蘿莉帝國刑場</a><br><br>
	  	<a href="rpg.php?action=richer" class="gen">大大房屋仲介</a><br><br>
  		<a href="rpg.php?action=weapons" class="gen">黑暗的武器店</a><br><br>
  		<a href="{U_INDEX}" class="gen">沒光的防具店</a><br><br>
  		<a href="rpg.php?action=magic" class="gen">魔法特技學園</a><br><br>
  		<a href="rpg.php?action=items" class="gen">水怪的道具店</a><br><br>
  		<a href="{U_INDEX}" class="gen">訂製專用物品</a><br><br>
	  	<a href="rpg.php?action=gamble" class="gen">樂透致富中心</a><br><br>
	  	<a href="rpg.php?action=bank" class="gen">銀行往來調節</a><br><br>
	  	<a href="rpg.php?action=rob" class="gen">搶匪有限公司</a><br><br>
	  	<a href="rpg.php?action=stat" class="gen">RPG英雄榜</a><br><br>
	  	<a href="rpg.php?action=extra" class="gen">職業屬性一覽</a><br><br>
	  	<a href="rpg.php?action=joinjobs" class="gen">打工排班一覽</a><br><br>
不要的就刪掉

sql 的部分有說明,裝有需要的就好了
(建議sql全裝就好了,將來要其它功能只要將上面的放回去就行了)

發表於 : 2003-12-28 11:20
依夢兒
最簡單的作法:只要保留你要的單元連結在 rpg_header.tpl 就行了。

發表於 : 2003-12-28 12:14
andyexex
那如果我原本就裝有銀行、搶劫、樂透、排行然後我要裝這些是要先把舊的移除嗎?
那之前存的錢都會不見嗎?

發表於 : 2003-12-28 12:18
依夢兒
只要不去動資料庫把 user_bank 砍掉,存款不會不見。

發表於 : 2003-12-28 12:20
andyexex
那其他所有檔案直接覆蓋即可成功安裝嗎@@?

發表於 : 2003-12-28 12:22
依夢兒
覆蓋什麼?不懂你的意思。
你不是要把不要的部份拆掉嗎?

發表於 : 2003-12-28 12:26
雖然我沒裝過這個外掛!但你不是要拆開來嗎?
那你就裝你要的啊?幹麻再去覆蓋其他檔@@|

發表於 : 2003-12-28 12:27
andyexex
我重講一次好了~
我目前安裝的外掛有:銀行、搶劫、樂透、排行
我想新增的外掛:搶匪道具\r
但是上面的大大建議我整個安裝下去再刪除連結,但是我整個裝下去的時候會連銀行等等的通通都覆蓋到,所以我現在該先拆掉在重裝還是直接覆蓋即可?

發表於 : 2003-12-28 12:33
不是說的很清楚了嗎?
只要找到下面你想要的功能\r
再複製*.PHP & *.tpl 就好了阿!

gamble.php & rpg_gamble.tpl 樂透
items.php & rpg_items.tpl 道具店
joinjobs.php & rpg_joinjobs.tpl 打工排班
position.php & rpg_position.tpl 職業考照
richer.php & function_richer.php & rpg_richer.tpl 大富翁
rob.php & rpg_rob.tpl 搶劫
stat.php & rpg_stat.tpl 個人資料檢視
weapons.php & rpg_weapons.tpl 武器店
eol.php & function_eol.php & rpg_eol.tpl 蘿莉帝國刑場
magic.php & rpg_magic.tpl 魔法學園

發表於 : 2003-12-28 12:33
依夢兒
andyexex 寫:我重講一次好了~
我目前安裝的外掛有:銀行、搶劫、樂透、排行
我想新增的外掛:搶匪道具\r
但是上面的大大建議我整個安裝下去再刪除連結,但是我整個裝下去的時候會連銀行等等的通通都覆蓋到,所以我現在該先拆掉在重裝還是直接覆蓋即可?
你的意思是,你現在已經安裝的不是完整的水怪,而是零散的遊戲外掛。
現在你想要水怪的道具功能,所以打算將完整版裝起來,但是又不想要一堆你不要的單元,是這個意思嗎?

如果你有動到資料庫,銀行存款就可能會被覆蓋。
你看一下水怪完整版的 SQL 安裝部份,也就是 SQL.sql 這個檔案,請跳過下面這個步驟不要去執行就行了。

代碼: 選擇全部

ADD `user_bank` int(11) unsigned NOT NULL default '0',
因為你現在資料庫內已經有銀行的存款資料了,如果再新增這一筆資料,可能會發生錯誤。

發表於 : 2003-12-28 12:37
atthis
因為不知道你之前有裝什麼\r

直接裝道具店,然後新增道具店方面的sql,應該就可以用了
不過打工排班那部份就不知道要怎麼改了XD

發表於 : 2003-12-28 12:45
andyexex
我直接只把道具店的檔案放過去之後輸入SQL來試試看 ;-)
rpg_header.tpl在哪?

發表於 : 2003-12-28 13:09
atthis
在templates/{你的風格} 裡( 一般是templates/subSilver/)
還有如果你的rpg.php裡沒有

代碼: 選擇全部

	if ( $mode == 'items' )
	{
		if ( !$userdata['session_logged_in'] )
		{
			$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
			header($header_location . append_sid("login.$phpEx?redirect=rpg.$phpEx&action=items", true));
			exit;
		}
		include($phpbb_root_path . 'rpg/items.'.$phpEx);
		exit;
的話要記得加上

發表於 : 2003-12-28 13:25
andyexex
我的風格裡面沒有rpg_header.tpl耶.......
我的道具店不能用,我是直接把兩個檔案傳放進rpg和風格資料夾之後執行SQL(應該沒做錯吧)
還有安裝說明裡面的都不用改嗎?
道具店的SQL是不是這段?↓

代碼: 選擇全部

CREATE TABLE `phpbb_rpg_items` (
  `item_id` mediumint(8) unsigned NOT NULL auto_increment,
  `item_name` varchar(60) default NULL,
  `item_description` varchar(255) default NULL,
  `in_which_store` tinyint(1) default '0',
  `need_level` smallint(5) default '0',
  `custom_made` mediumint(8) default '0',
  `need_class` varchar(10) default NULL,
  `item_addition1` varchar(60) default NULL,
  `item_addition2` varchar(60) default NULL,
  `item_price` int(11) NOT NULL default '0',
  `item_spec_price` smallint(5) NOT NULL default '0',
  `item_type` tinyint(4) NOT NULL default '0',
  `item_position` tinyint(4) NOT NULL default '0',
  `item_order` smallint(5) default '0',
  `need_to_use` tinyint(1) default '0',
  `attack_property` decimal(4,1) default '0.0',
  `defense_property` decimal(4,1) default '0.0',
  `magic_property` decimal(4,1) default '0.0',
  `speed_property` decimal(4,1) default '0.0',
  `hp_property` decimal(4,1) default '0.0',
  `mp_property` decimal(4,1) default '0.0',
  PRIMARY KEY  (`item_id`)
) TYPE=MyISAM;

INSERT INTO phpbb_rpg_items VALUES("1", "拔釘器", "解除草人的詛咒", "0", "0", "0", "", "", "", "10000", "1", "0", "0", "0", "1", "0.0", "0.0", "0.0", "0.0", "0.0", "0.0");
INSERT INTO phpbb_rpg_items VALUES("2", "頭銜名片", "建立自己專屬的頭銜名稱", "0", "0", "0", "", "請輸入頭銜名稱", "請輸入圖示網址", "50000", "0", "0", "0", "0", "1", "0.0", "0.0", "0.0", "0.0", "0.0", "0.0");
INSERT INTO phpbb_rpg_items VALUES("4", "神偷手套", "無視對手保鑣防禦力,百分之百成功\\偷到對手 20% 的存款,若對方有草人每隻可多偷 2% 現金,但自己會多十隻草人", "0", "0", "0", "", "請輸入行竊對象", "", "300000", "0", "0", "0", "0", "1", "0.0", "0.0", "0.0", "0.0", "0.0", "0.0");
INSERT INTO phpbb_rpg_items VALUES("5", "草人禮盒", "詛咒草人娃娃禮盒,送禮自用兩相宜,但是有二成的失敗率,失敗則自己增加一隻草人", "0", "0", "0", "", "請輸入送禮對象,送禮對象必須人在線上", "", "10000", "0", "0", "0", "0", "1", "0.0", "0.0", "0.0", "0.0", "0.0", "0.0");