Seite 4 von 7

Verfasst: 28.05.2003 20:10
von Snoopmore
doctormord hat geschrieben:so, die chinesische anleitung mal durch word und systran geschoben:

Code: Alles auswählen

水怪 the RPG 1,205 editions installments explanation
----------------------------- 
0. please first installs "ideal money
MOD" (inside bamboo cat star http://phpbb-tw.net to have)
 
 1. carries out in the watermonster.sql SQL narration, the
renewal information bank
 
 2. in the phpBB root table of contents, constructs rpg the
table of contents, and * php will duplicate this table of contents
besides rpg.php
 
 3. duplicates rpg.php phpBB the root table of contents
 
 4. * gif will duplicate /phpBB/images
 
 5. * tpl will duplicate /phpBB/templates/subSilver (generally
only to have attire one kind of style speech, should be subSilver)

6. opens /phpBB/includes/constants.php to seek: 

Define ('PAGE_GROUPCP', -11);

Increases a line: 

Define ('PAGE_RPG', -99);
	
 7. opens /phpBB/viewtopic.php to seek: 

Go ahead and pull all data for
this topic in under $sql (in the SQL narration, joins following fence
position) u.user_robfail, u.rpg_level, u.rpg_cur_hp, u.rpg_max_hp,
u.rpg_cur_mp, u.rpg_max_mp, u.rpg_cur_exp, u.rpg_max_exp,
u.rpg_attack, u.rpg_defense, u.rpg_magic, u.rpg_speed, u.rpg_medals,
	
Below that... $sql content probably can turn the appearance
(only to supply reference, if you have install other MOD, possible
meeting not to be  dissimilar)

//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, 
	u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_money, 
	u.user_robfail, u.rpg_level, u.rpg_cur_hp, u.rpg_max_hp, u.rpg_cur_mp, u.rpg_max_mp, u.rpg_cur_exp, u.rpg_max_exp, 
	u.rpg_attack, u.rpg_defense, u.rpg_magic, u.rpg_speed, u.rpg_medals, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid
	FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
	WHERE p.topic_id = $topic_id
		$limit_posts_time
		AND pt.post_id = p.post_id
		AND u.user_id = p.poster_id
	ORDER BY p.post_time $post_time_order
	LIMIT $start, ".$board_config['posts_per_page'];


Seeks:

//
	// Define the little post icon
	//

In front of these lines joins:

	if ($postrow[$i]['user_robfail'] > 0)
	{
		$poster_avatar .= '<br>';
		$robid = floor(($postrow[$i]['user_robfail'] - 1) / 4);
		$robcnt = (($postrow[$i]['user_robfail'] - 1) % 4) + 1;
		if ($robid <= 7)
		{
			for ($j=0; $j < $robcnt; $j++)
			{
				$poster_avatar .= '<img src="images/rob' . $robid . '.gif" />';
			}
		}
		else
		{
			$poster_avatar .= '<center><img src="images/rob7.gif" />× ' . ($postrow[$i]['user_robfail'] - 28) . '</center>';
		}
		$poster_avatar .= '<br><span class="gensmall">Stupid ~ defeat bandit ~</span>'; 
	} 


Seeks:

//
	// Again this will be handled by the templating
	// code at some point
	//

In front of these lines joins:

$rpgstatus = '<table width="142" class="bodyline" border="0" cellpadding="0" cellspacing="0">' .
			'<tr><td width="35%"><span class="gensmall"> &#32887;&#12288;&#29031;: </span></td><td><span class="gensmall">' . $postrow[$i]['rpg_medals'] . '</span></td></tr>' . 
			'<tr><td><span class="gensmall"> &#65324;&#65334;&#65324;: </span></td><td><span class="gensmall">' . $postrow[$i]['rpg_level'] . '</span></td></tr>' . 
			'<tr><td><span class="gensmall"> &#65320;&#12288;&#65328;: </span></td><td><span class="gensmall">' . $postrow[$i]['rpg_cur_hp'] . ' / ' . $postrow[$i]['rpg_max_hp'] . '</span></td></tr>' . 
			'<tr><td><span class="gensmall"> &#65325;&#12288;&#65328;: </span></td><td><span class="gensmall">' . $postrow[$i]['rpg_cur_mp'] . ' / ' . $postrow[$i]['rpg_max_mp'] . '</span></td></tr>' . 
			'<tr><td><span class="gensmall"> &#65317;&#65336;&#65328;: </span></td><td><span class="gensmall">' . $postrow[$i]['rpg_cur_exp'] . ' / ' . $postrow[$i]['rpg_max_exp'] . '</span></td></tr>' . 
			'<tr><td><span class="gensmall"> &#25915;&#25802;&#21147;: </span></td><td><span class="gensmall">' . $postrow[$i]['rpg_attack'] . '</span></td></tr>' . 
			'<tr><td><span class="gensmall"> &#38450;&#31142;&#21147;: </span></td><td><span class="gensmall">' . $postrow[$i]['rpg_defense'] . '</span></td></tr>' . 
			'<tr><td><span class="gensmall"> &#39764;&#12288;&#21147;: </span></td><td><span class="gensmall">' . $postrow[$i]['rpg_magic'] . '</span></td></tr>' . 
			'<tr><td><span class="gensmall"> &#36895;&#12288;&#24230;: </span></td><td><span class="gensmall">' . $postrow[$i]['rpg_speed'] . '</span></td></tr></table>';

Then following several lines (may see again has several lines of mode
of writing with following this line similar), casually looks for a
place, the insertion:

'POSTER_RPG' => $rpgstatus,

8. opens /phpBB/templates/subSilver/viewtopic_body.tpl to seek: <! --
BEGIN postrow --> <tr> in its next row, in front of </td>, insertion:
{postrow.POSTER_RPG}

9. if does not like big house Zhong lying between supposes the map/to
suppose the value in advance in advance, after may voluntarily revise
function_richer.php CreateRicherMap () to revise, the archive, and
opens richer.php, after (is //) picks off 35-36th line of Mark,
carries out time: Http://xxx.xxx.xxx.xxx/phpBB/rpg.php? Action=richer
then, carries out, please again returns Mark...

10. &#27700;&#24618; RPG URL is http://xxx.xxx.xxx.xxx/phpBB/rpg.php?
Action=menu please voluntarily revises the place which wants to lay
aside, generally all puts in overall_header.tpl
    

Writed by Pai-Kang Hsiao # dark &#27700;&#24618; mainland #
http://www.watermonster.org
ich merke grade das mein englisch nicht sehr gut ist. kann mir das vielleicht einer übersetzen?

Verfasst: 28.05.2003 20:17
von doctormord
ja wie, du kennst den ? warum sagst du nichts *gg*

wer den mod mal testen möchte:

http://doc.wanken.de/premod/

Verfasst: 28.05.2003 21:01
von Snoopmore
also, irgendwie raff ich dieses "game" nicht. man sollte mal versuchen selbiges auf deutsch umzuschreiben. ansonsten ist dieser mod für mich uninterressant..

Verfasst: 28.05.2003 23:01
von doctormord
nun eigentlich ist er doch ganz einfach.

du sammelst punkte, hp, mp, exp am board wenn du schreibst und aktiv bist.

davon kannst du dir dinge kaufen. allerdings nur wenn sie zu deinem level passen. desweiteren kannsr du titel kaufen, die du brauchst um bestimmte waffen zu haben. (elfen, orcs, etc.) du kannst lotto spielen, geld an der bank anlegen. die bank ausrauben, andere leute ausrauben, leute bekämpfen, dir bodyguards mieten, jobs annehmen, etc.

=D...

ich guck mal ob man den übersetzt bekommt. =D das ist ja nicht wenig.

Verfasst: 28.05.2003 23:09
von Snoopmore
versuch lieber mal die install-anleitung zu übersetzen (ins deutsche), dann kann ich mal versuchen den mod in ein anderes forum einzubauen, und diesen dann eventuell auch in nem zip-file zum download frei geben..

Verfasst: 28.05.2003 23:25
von doctormord
nun ich hab das ding komplett als premodded eingebaut, also mit frischem board. mal gucken wie das läuft, weil so wie es aussieht, läuft das rpg-mod autonom und ist nur vom points-mod abhängig soweit ich das gesehen habe.

ich kümmer mich mal drum ... :D

übersetz du schonmal die sql-injections 8)

doc

Verfasst: 28.05.2003 23:28
von Snoopmore
doctormord hat geschrieben:übersetz du schonmal die sql-injections 8)
ämmmm, was? ich bin in mysql-fachausdrücken nicht so die leuchte..

Verfasst: 29.05.2003 00:30
von doctormord
:wink: ich mein die texte die per sql befehle in die tabelle wandern =D

beim mod sind 2 files mit sql-befehlen bei, ~700kb nur text =D...


egal.. ich fang mal irgendwo an.

Verfasst: 29.05.2003 13:06
von Snoopmore
axo, ich habe mir diese datei mal durgelesen, und finde das da NUR syl-befehle drin stehen... was soll man da übersetzen? funzen ausserdem einwandfrei, ich habe die schon mal ausprobiert...

Verfasst: 30.05.2003 01:26
von doctormord
in der rpg.sql1 sind die ganzen ränge und die waffen + items drin, die kann man z.b. übersetzen.