那是從日網抓下來的...所以才會
我日文"爛爆"了>_<....除了常看的根本不懂
這讓我想到親密度,如果要使用在論壇上應該大概是:
讓他掛.......負成長\r
打敗敵人與否&數目......正成長\r
是不是常常召喚他........正成長\r
是不是對他使用道具〈這比較麻煩〉........正成長\r
照顧的話要看性質,看看要不要特別弄一個部分來照顧
或是說看飼主潛水時間
[閒聊]召喚獸擬訂草案~~(木亥 火暴) 參照寵物外掛修改
版主: 版主管理群
-
GeniusKiKi
- 竹貓忠實會員

- 文章: 1086
- 註冊時間: 2003-10-28 14:50
-
u87104041d
- 星球公民

- 文章: 247
- 註冊時間: 2003-09-16 18:58
- 來自: 0101110101
美國才盛行咧.....
Nintendo都去片美國的小孩~齁齁
你沒看美國的小孩人手一台GAMEBOY~ (離題了??)
Nintendo都去片美國的小孩~齁齁
你沒看美國的小孩人手一台GAMEBOY~ (離題了??)
Helvetica is a feature-length independent film about typography.
現在eol 放圖是以32*32為準 然後橫的算會先算出頭然後算出身體
所以人物的範圍佔了兩格(如紅色的框)
我在想如果他算到身體時把下一格再加上寵物圖(綠色框)
這樣就可以帶寵物去打仗嚕
[php]// 產生資料頁面\r
$sql = "select * from phpbb_rpg_eol where map_id = $map_id and map_x >= $start_x and map_x <= $start_x + 19 and map_y >= $start_y and map_y <= $start_y + 19 order by map_y, map_x";
$map_data = '';
$result = $db->sql_query($sql);
if ( $row = $db->sql_fetchrow($result) )
{
$map_data = '<tr height="32">';
$old_y = $row['map_y'];
do
{
if ( $row['map_y'] != $old_y ) // 換行判斷\r
{
$old_y = $row['map_y'];
$map_data .= '</tr><tr height="32">';
}
$map_data .= '<td width="32" background="' . $eol_url . '/eol' . $row['tile_id'] . '.gif"';
if (($button_click == 1) && (! $AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']]) && (abs($row['map_x'] - $now_x) + abs($row['map_y'] - $now_y)) <= $max_point && !$row['can_not_pass'])
{
// 可移動的範圍
// $style_content = 'cursor=\'hand\'; border-Left=\'1 solid blue\';';
// $style_content = 'cursor=\'crosshair\';';
$style_content = 'cursor=\'hand\';';
$map_data .= ' style="' . $style_content . '" onclick="Click4Mouse(1, ' . $row['map_x'] . ', ' . $row['map_y'] . ')" ';
}
if ($now_x == $row['map_x'] && $now_y - 1 == $row['map_y'] )
{
// 目前格子所在的上一格,畫頭頂,順便判斷有沒有其他人或是移動的貓爪\r
if ( $AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']] )
{
// 有人\r
$npc_dir = intval(substr($AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']], -9, 1));
$npc_icon = substr($AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']], -11, 2);
$map_data .= ' ><img src="' . $eol_url . '/npc/npc' . $now_icon . '.' . $now_dir . '0.gif" alt="' . $AroundPro['x' . $row['map_x'] . 'y' . $row['map_y']] . '" style="background-image: url(\'' . $eol_url . '/npc/' . ($need_target ? 'x' : 'n') . 'pc' . $npc_icon . '.' . $npc_dir . '1.gif\'); ';
if ( $need_target )
{
// 有作其它動作,例如攻擊、魔法,要畫邊線
$map_data .= 'cursor=\'crosshair\';" onclick="Click4Mouse(' .
$button_click . ', ' . $row['map_x'] . ', ' . $row['map_y'] . ')';
}
$map_data .= '"></td>';
}
else if ( $button_click == 1 )
{
// 沒人,畫貓爪\r
$map_data .= ' ><img src="' . $eol_url . '/npc/npc' . $now_icon . '.' . $now_dir . '0.gif" ' . ($CanPass ? 'style="background-image: url(\'images/eol.gif\')"' : '') . '></td>';
}
else
{
// 什麼都沒有
$map_data .= ' ><img src="' . $eol_url . '/npc/npc' . $now_icon . '.' . $now_dir . '0.gif"></td>';
}
}
else if ($now_x == $row['map_x'] && $now_y == $row['map_y'] )
{
// 自己本身這一格\r
if ($AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1)])
{
// 剛好站在別人的頭頂
$npc_dir = intval(substr($AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1)], -9, 1));
$npc_icon = substr($AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1)], -11, 2);
$map_data .= ' ><img src="' . $eol_url . '/npc/' . ($need_target ? 'x' : 'n') . 'pc' . $npc_icon . '.' . $npc_dir . '0.gif" alt="' . $profiledata['username'] . '
等 級: ' . $profiledata['rpg_level'] . '
H P: ' . $profiledata['rpg_cur_hp'] . ' / ' . $profiledata['rpg_max_hp'] . '
M P: ' . $profiledata['rpg_cur_mp'] . ' / ' . $profiledata['rpg_max_mp'] . '
攻擊力: ' . $profiledata['rpg_attack'] . '
防禦力: ' . $profiledata['rpg_defense'] . '
魔 力: ' . $profiledata['rpg_magic'] . '
速 度: ' . $profiledata['rpg_speed'] . '" style="background-image: url(\'' . $eol_url . '/npc/npc' . $now_icon . '.' . $now_dir . '1.gif\')"></td>';
}
else
{
$map_data .= ' ><img src="' . $eol_url . '/npc/npc' . $now_icon . '.' . $now_dir . '1.gif" alt="' . $profiledata['username'] . '
等 級: ' . $profiledata['rpg_level'] . '
H P: ' . $profiledata['rpg_cur_hp'] . ' / ' . $profiledata['rpg_max_hp'] . '
M P: ' . $profiledata['rpg_cur_mp'] . ' / ' . $profiledata['rpg_max_mp'] . '
攻擊力: ' . $profiledata['rpg_attack'] . '
防禦力: ' . $profiledata['rpg_defense'] . '
魔 力: ' . $profiledata['rpg_magic'] . '
速 度: ' . $profiledata['rpg_speed'] . '"></td>';
}
}
else if (($button_click == 1) && (! $AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']]) && (! $AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1)]) && (abs($row['map_x'] - $now_x) + abs($row['map_y'] - $now_y)) <= $max_point && !$row['can_not_pass'])
{
// 這一格沒人,又有按移動
$map_data .= '><img src="images/eol.gif"></td>';
}
else if ($AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']]) // 這一格有人\r
{
if ($AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1)])
{
// 剛好站在某個人的頭上
$npc_dir = intval(substr($AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1)], -9, 1));
$npc_icon = substr($AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1)], -11, 2);
// 先畫這個人的頭\r
$map_data .= ' ><img src="' . $eol_url . '/npc/' . ( ($need_target) && ((abs($row['map_x'] - $now_x) + abs($row['map_y'] + 1 - $now_y)) <= $max_point) ? 'x' : 'n') . 'pc' . $npc_icon . '.' . $npc_dir . '0.gif" alt="' . $AroundPro['x' . $row['map_x'] . 'y' . $row['map_y']] . '" style="background-image: url(\'' . $eol_url . '/npc/' . ( ($need_target) && ((abs($row['map_x'] - $now_x) + abs($row['map_y'] - $now_y)) <= $max_point) ? 'x' : 'n') . 'pc';
// 再畫這個人的身體
$npc_dir = intval(substr($AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']], -9, 1));
$npc_icon = substr($AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']], -11, 2);
$map_data .= $npc_icon . '.' . $npc_dir . '1.gif\')';
// 有作其它動作,例如攻擊、魔法,而且在範圍內,要畫邊線
if ( ($need_target) && ((abs($row['map_x'] - $now_x) + abs($row['map_y'] - $now_y)) <= $max_point) ) $map_data .= '; cursor=\'crosshair\';" onclick="Click4Mouse(' . $button_click . ', ' . $row['map_x'] . ', ' . $row['map_y'] . ')';
}
else
{
$npc_dir = intval(substr($AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']], -9, 1));
$npc_icon = substr($AroundNPC['x' . $row['map_x'] . 'y' . $row['map_y']], -11, 2);
$map_data .= ' ><img src="' . $eol_url . '/npc/' . ( ($need_target) && ((abs($row['map_x'] - $now_x) + abs($row['map_y'] - $now_y)) <= $max_point) ? 'x' : 'n') . 'pc' . $npc_icon . '.' . $npc_dir . '1.gif" alt="' . $AroundPro['x' . $row['map_x'] . 'y' . $row['map_y']];
// 有作其它動作,例如攻擊、魔法,而且在範圍內,要畫邊線
if ( ($need_target) && ((abs($row['map_x'] - $now_x) + abs($row['map_y'] - $now_y)) <= $max_point) ) $map_data .= '"; style="cursor=\'crosshair\';" onclick="Click4Mouse(' . $button_click . ', ' . $row['map_x'] . ', ' . $row['map_y'] . ')';
}
$map_data .= '"></td>';
}
else if ($AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1) ])
{
// 這一格是某人的頭頂
$npc_dir = intval(substr($AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1)], -9, 1));
$npc_icon = substr($AroundNPC['x' . $row['map_x'] . 'y' . ($row['map_y'] + 1)], -11, 2);
if (($button_click == 1))
{
// 如果剛好有按移動,而且在範圍內,要把貓爪擋掉
if ( abs($row['map_x'] - $now_x) + abs($row['map_y'] - $now_y) <= $max_point )
{
$map_data .= ' ><img src="' . $eol_url . '/npc/npc' . $npc_icon . '.' . $npc_dir . '0.gif" style="background-image: url(\'images/eol.gif\')"></td>';
}
else
{
$map_data .= ' ><img src="' . $eol_url . '/npc/npc' . $npc_icon . '.' . $npc_dir . '0.gif"></td>';
}
}
else
{
$map_data .= ' ><img src="' . $eol_url . '/npc/' . ( ($need_target) && ((abs($row['map_x'] - $now_x) + abs($row['map_y'] + 1 - $now_y)) <= $max_point) ? 'x' : 'n') . 'pc' . $npc_icon . '.' . $npc_dir . '0.gif"></td>';
}
}
else
{
$map_data .= '> </td>';
}
}
while ( $row = $db->sql_fetchrow($result) );
$map_data .= '</tr>';
}
if ( $mydata != sprintf("%01d%02d%01d%02d%03d%03d", $now_act, $now_icon, $now_dir, $map_id, $now_x, $now_y) )
{
$mydata = sprintf("%01d%02d%01d%02d%03d%03d", $now_act, $now_icon, $now_dir, $map_id, $now_x, $now_y);
$sql = "update phpbb_users set rpg_eol_data = '$mydata' where user_id = " . $profiledata['user_id'];
$db->sql_query($sql);
}
$button_list = GetButtonList($profiledata['user_id'], intval($HTTP_POST_VARS['sp_skill']));
if ( $need_target || $button_click == 1 ) $button_list .= '<input type="hidden" name="next_x" value="' . $now_x . '"> <input type="hidden" name="next_y" value="' . $now_y . '"> <input type="hidden" name="next_act" value="' . $button_click . '">';[/php]
好像不太可能
-
GeniusKiKi
- 竹貓忠實會員

- 文章: 1086
- 註冊時間: 2003-10-28 14:50