コード例 #1
0
ファイル: rabbitoshi.php プロジェクト: Nekrofage/FJR
                     message_die(GENERAL_ERROR, 'Unable to deduct user points.', '', __LINE__, __FILE__, $sql);
                 }
                 rabbitoshi_previous('Rabbitoshi_pet_dead_rebirth_ok', 'rabbitoshi', '');
             } else {
                 if ($resurrect_no) {
                     // why no ;(
                     // rabbitoshi_delete_pet($user_id);
                     rabbitoshi_previous('Rabbitoshi_pet_dead_rebirth_no', 'rabbitoshi', '');
                 } else {
                     rabbitoshi_template_file('rabbitoshi_confirm_body.tpl');
                     $template->assign_block_vars('resurrect', array());
                     $template->assign_vars(array('L_CONFIRM_TITLE' => $lang['Rabbitoshi_confirm'], 'L_PET_IS_DEAD' => $lang['Rabbitoshi_pet_is_dead'], 'L_PET_DEAD_COST' => $lang['Rabbitoshi_pet_is_dead_cost'], 'L_PET_DEAD_COST_EXPLAIN' => $lang['Rabbitoshi_pet_is_dead_cost_explain'], 'L_RESURRECT_OK' => $lang['Yes'], 'L_RESURRECT_NO' => $lang['No'], 'PET_DEAD_COST' => $rabbit_general['rebirth_price']));
                 }
             }
         } else {
             rabbitoshi_previous('Rabbitoshi_pet_dead_lack', 'rabbitoshi', '');
         }
     }
 }
 $rabbit_config = get_rabbitoshi_config($rabbit_user['owner_creature_id']);
 $template->assign_block_vars('pet', array());
 list($is_in_hotel, $hotel_time) = rabbitoshi_get_hotel();
 if ($hotel_time > 1) {
     $is_in_hotel = TRUE;
     $template->assign_block_vars('pet.pet_hotel', array());
 } else {
     $is_in_hotel = FALSE;
     $template->assign_block_vars('pet.pet_no_hotel', array());
 }
 if ($searchid == $user_id || $is_in_hotel == TRUE) {
     if ($searchid == $user_id) {
コード例 #2
0
ファイル: rabbitoshi_progress.php プロジェクト: Nekrofage/FJR
            $sql = "UPDATE " . RABBITOSHI_USERS_TABLE . "\r\n\t\t\t\tSET creature_magicattack_max = creature_magicattack_max + {$magicattack_raise},\r\n\t\t\t\t    creature_experience = creature_experience - {$magicattack_price}\r\n\t\t\t\tWHERE owner_id = {$user_id} ";
            if (!($result = $db->sql_query($sql))) {
                message_die(CRITICAL_ERROR, 'Error Updating Rabbitishi users stats!');
            }
            rabbitoshi_previous(Rabbitoshi_progress_ok, rabbitoshi_progress, '');
        }
    }
    if ($mp_action) {
        if ($price_mp < '0') {
            rabbitoshi_previous(Rabbitoshi_progress_experience_lack, rabbitoshi_progress, '');
        } else {
            $sql = "UPDATE " . RABBITOSHI_USERS_TABLE . "\r\n\t\t\t\tSET creature_max_mp = creature_max_mp + {$mp_raise},\r\n\t\t\t\t    creature_experience = creature_experience - {$mp_price}\r\n\t\t\t\tWHERE owner_id = {$user_id} ";
            if (!($result = $db->sql_query($sql))) {
                message_die(CRITICAL_ERROR, 'Error Updating Rabbitishi users stats!');
            }
            rabbitoshi_previous(Rabbitoshi_progress_ok, rabbitoshi_progress, '');
        }
    }
}
$template->assign_vars(array('ABILITY_HEALTH_PRICE' => $rabbit_general['health_transfert_price'], 'ABILITY_SACRIFICE_PRICE' => $rabbit_general['sacrifice_price'], 'ABILITY_MANA_PRICE' => $rabbit_general['mana_transfert_price'], 'ABILITY_REGENERATION_PRICE' => $rabbit_general['regeneration_price'], 'HEALTH_RAISE' => $rabbit_general['health_raise'], 'HUNGER_RAISE' => $rabbit_general['hunger_raise'], 'THIRST_RAISE' => $rabbit_general['thirst_raise'], 'HYGIENE_RAISE' => $rabbit_general['hygiene_raise'], 'LEVEL_RAISE' => $rabbit_general['level_raise'], 'POWER_RAISE' => $rabbit_general['power_raise'], 'MAGICPOWER_RAISE' => $rabbit_general['magicpower_raise'], 'ARMOR_RAISE' => $rabbit_general['armor_raise'], 'MP_RAISE' => $rabbit_general['mp_raise'], 'ATTACK_RAISE' => $rabbit_general['attack_raise'], 'MAGICATTACK_RAISE' => $rabbit_general['magicattack_raise'], 'HEALTH_PRICE' => $rabbit_general['health_price'], 'HUNGER_PRICE' => $rabbit_general['hunger_price'], 'THIRST_PRICE' => $rabbit_general['thirst_price'], 'HYGIENE_PRICE' => $rabbit_general['hygiene_price'], 'LEVEL_PRICE' => $rabbit_general['level_price'], 'POWER_PRICE' => $rabbit_general['power_price'], 'MAGICPOWER_PRICE' => $rabbit_general['magicpower_price'], 'ARMOR_PRICE' => $rabbit_general['armor_price'], 'MP_PRICE' => $rabbit_general['mp_price'], 'ATTACK_PRICE' => $rabbit_general['attack_price'], 'MAGICATTACK_PRICE' => $rabbit_general['magicattack_price'], 'ATTACK_RELOAD_PRICE' => $attack_price, 'MAGIC_RELOAD_PRICE' => $magic_price, 'L_PUBLIC_TITLE' => $lang['Rabbitoshi_pet_progress'], 'L_RETURN' => $lang['Rabbitoshi_shop_return'], 'L_PET_EXPERIENCE' => $lang['Rabbitoshi_pet_experience'], 'L_EXPERIENCE' => $lang['Rabbitoshi_experience_name'], 'L_NAME' => $lang['Rabbitoshi_progress_name'], 'L_ABILITY_NAME' => $lang['Rabbitoshi_ability_name'], 'L_EXPLAIN' => $lang['Rabbitoshi_progress_explain'], 'L_ABILITY_EXPLAIN' => $lang['Rabbitoshi_ability_explain'], 'L_NUMBER_RAISE' => $lang['Rabbitoshi_progress_number'], 'L_PRICE' => $lang['Rabbitoshi_progress_price'], 'L_ABILITY_PRICE' => $lang['Rabbitoshi_ability_price'], 'L_SUBMIT' => $lang['Rabbitoshi_progress_submit'], 'L_BATTLE' => $lang['Rabbitoshi_pet_characteristics'], 'L_ABILITY_SUBMIT' => $lang['Rabbitoshi_ability_submit'], 'L_ABILITY_SUBMIT_TITLE' => $lang['Rabbitoshi_ability_submit_title'], 'L_RELOAD' => $lang['Rabbitoshi_progress_reload'], 'L_SUBMIT_TITLE' => $lang['Rabbitoshi_progress_submit_title'], 'L_HEALTH' => $lang['Rabbitoshi_owner_pet_health'], 'L_HUNGER' => $lang['Rabbitoshi_owner_pet_hunger'], 'L_THIRST' => $lang['Rabbitoshi_owner_pet_thirst'], 'L_HYGIENE' => $lang['Rabbitoshi_owner_pet_hygiene'], 'L_LEVEL' => $lang['Rabbitoshi_owner_pet_level'], 'L_POWER' => $lang['Rabbitoshi_owner_pet_power'], 'L_MAGICPOWER' => $lang['Rabbitoshi_owner_pet_magicpower'], 'L_ARMOR' => $lang['Rabbitoshi_owner_pet_armor'], 'L_MP' => $lang['Rabbitoshi_owner_pet_mpmax'], 'L_ATTACK' => $lang['Rabbitoshi_owner_pet_attack'], 'L_ATTACK_RELOAD' => $lang['Rabbitoshi_owner_pet_attack_reload'], 'L_MAGIC_RELOAD' => $lang['Rabbitoshi_owner_pet_magic_reload'], 'L_MAGICATTACK' => $lang['Rabbitoshi_owner_pet_magicattack'], 'L_HEALTH_EXPLAIN' => $lang['Rabbitoshi_owner_pet_health_explain'], 'L_HUNGER_EXPLAIN' => $lang['Rabbitoshi_owner_pet_hunger_explain'], 'L_THIRST_EXPLAIN' => $lang['Rabbitoshi_owner_pet_thirst_explain'], 'L_HYGIENE_EXPLAIN' => $lang['Rabbitoshi_owner_pet_hygiene_explain'], 'L_LEVEL_EXPLAIN' => $lang['Rabbitoshi_owner_pet_level_explain'], 'L_POWER_EXPLAIN' => $lang['Rabbitoshi_owner_pet_power_explain'], 'L_MAGICPOWER_EXPLAIN' => $lang['Rabbitoshi_owner_pet_magicpower_explain'], 'L_ARMOR_EXPLAIN' => $lang['Rabbitoshi_owner_pet_armor_explain'], 'L_MP_EXPLAIN' => $lang['Rabbitoshi_owner_pet_mpmax_explain'], 'L_ATTACK_EXPLAIN' => $lang['Rabbitoshi_owner_pet_attack_explain'], 'L_MAGICATTACK_EXPLAIN' => $lang['Rabbitoshi_owner_pet_magicattack_explain'], 'L_ABILITY_REGENERATION' => $lang['Rabbitoshi_ability_regeneration'], 'L_ABILITY_REGENERATION_EXPLAIN' => $lang['Rabbitoshi_ability_regeneration_explain'], 'L_ABILITY_HEALTH' => $lang['Rabbitoshi_ability_health'], 'L_ABILITY_HEALTH_EXPLAIN' => $lang['Rabbitoshi_ability_health_explain'], 'L_ABILITY_MANA' => $lang['Rabbitoshi_ability_mana'], 'L_ABILITY_MANA_EXPLAIN' => $lang['Rabbitoshi_ability_mana_explain'], 'L_ABILITY_SACRIFICE' => $lang['Rabbitoshi_ability_sacrifice'], 'L_ABILITY_SACRIFICE_EXPLAIN' => $lang['Rabbitoshi_ability_sacrifice_explain'], 'POINTS' => $rabbit_user['creature_experience'], 'ABILITY_POINTS' => $rabbit_user['creature_experience_level'] . ' / ' . $experience_points_req, 'S_PET_ACTION' => append_sid("rabbitoshi_progress.{$phpEx}"), 'S_PET_RETURN' => append_sid("rabbitoshi.{$phpEx}"), 'S_HIDDEN_FIELDS' => $s_hidden_fields));
$template->pparse('body');
#==== Start Copyright ======================== |
?>
<script language="JavaScript">

function copyright()
{
	var popurl = "rabbitoshi/includes/rabbitoshi_copy.php"
	var winpops = window.open(popurl, "", "width=400, height=350,")
}
</script>