$tool_list .= '<option value = "0" >' . $lang['Adr_forge_lumberjack_no_tool'] . '</option>'; for ($i = 0; $i < count($tools); $i++) { $tool_list .= '<option value = "' . $tools[$i]['item_id'] . '" >' . adr_get_lang($tools[$i]['item_name']) . ' ( ' . $lang['Adr_items_power'] . ' : ' . $tools[$i]['item_power'] . ' - ' . $lang['Adr_items_duration'] . ' : ' . $tools[$i]['item_duration'] . ' )' . '</option>'; } $tool_list .= '</select>'; $template->assign_vars(array('TOOL_LIST' => $tool_list, 'L_SELECT_TOOL' => $lang['Adr_forge_lumberjack_select_tool'], 'L_GO_LUMBERJACK' => $lang['Adr_forge_lumberjack_go'], 'L_LUMBERJACK_EXPLAIN' => $lang['Adr_forge_lumberjack_explain'])); break; case 'lumberjack_action': $tool = intval($HTTP_POST_VARS['item_tool']); // No tool , no lumberjacking if (!$tool) { adr_previous(Adr_forge_lumberjack_tool_needed, adr_lumberjack, "mode=lumberjacking"); } else { //Tool gets used even if character doesn't find anything adr_use_item($tool, $user_id); $item = drop_gather_loot($actual_zone, $user_id, 'herbalism', 8); if (!$item) { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $direction = append_sid("adr_lumberjack.{$phpEx}?mode=lumberjacking"); $message .= "Vous n'avez rien trouvé."; $message .= '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } else { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $message = $item . '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } } break; } } else {
$tool_list .= '<option value = "0" >' . $lang['Adr_forge_hunting_no_tool'] . '</option>'; for ($i = 0; $i < count($tools); $i++) { $tool_list .= '<option value = "' . $tools[$i]['item_id'] . '" >' . adr_get_lang($tools[$i]['item_name']) . ' ( ' . $lang['Adr_items_power'] . ' : ' . $tools[$i]['item_power'] . ' - ' . $lang['Adr_items_duration'] . ' : ' . $tools[$i]['item_duration'] . ' )' . '</option>'; } $tool_list .= '</select>'; $template->assign_vars(array('TOOL_LIST' => $tool_list, 'L_SELECT_TOOL' => $lang['Adr_forge_hunting_select_tool'], 'L_GO_HUNTING' => $lang['Adr_forge_hunting_go'], 'L_HUNTING_EXPLAIN' => $lang['Adr_forge_hunting_explain'])); break; case 'hunting_action': $tool = intval($HTTP_POST_VARS['item_tool']); // No tool , no hunting if (!$tool) { adr_previous(Adr_forge_hunting_tool_needed, adr_hunting, "mode=hunting"); } else { //Tool gets used even if character doesn't find anything adr_use_item($tool, $user_id); $item = drop_gather_loot($actual_zone, $user_id, 'hunting', 11); if (!$item) { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $direction = append_sid("adr_hunting.{$phpEx}?mode=hunting"); $message .= "Vous n'avez rien trouvé."; $message .= '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } else { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $message = $item . '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } } break; } } else {
$tool_list .= '<option value = "0" >' . $lang['Adr_forge_tailoring_no_tool'] . '</option>'; for ($i = 0; $i < count($tools); $i++) { $tool_list .= '<option value = "' . $tools[$i]['item_id'] . '" >' . adr_get_lang($tools[$i]['item_name']) . ' ( ' . $lang['Adr_items_power'] . ' : ' . $tools[$i]['item_power'] . ' - ' . $lang['Adr_items_duration'] . ' : ' . $tools[$i]['item_duration'] . ' )' . '</option>'; } $tool_list .= '</select>'; $template->assign_vars(array('TOOL_LIST' => $tool_list, 'L_SELECT_TOOL' => $lang['Adr_forge_tailoring_select_tool'], 'L_GO_TAILORING' => $lang['Adr_forge_tailoring_go'], 'L_TAILORING_EXPLAIN' => $lang['Adr_forge_tailoring_explain'])); break; case 'tailoring_action': $tool = intval($HTTP_POST_VARS['item_tool']); // No tool , no tailoring if (!$tool) { adr_previous(Adr_forge_tailoring_tool_needed, adr_tailor, "mode=tailoring"); } else { //Tool gets used even if character doesn't find anything adr_use_item($tool, $user_id); $item = drop_gather_loot($actual_zone, $user_id, 'tailor', 9); if (!$item) { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $direction = append_sid("adr_tailor.{$phpEx}?mode=tailoring"); $message .= "Vous n'avez rien trouvé."; $message .= '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } else { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $message = $item . '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } } break; } } else {
$tool_list .= '<option value = "0" >' . $lang['Adr_forge_alchemy_no_tool'] . '</option>'; for ($i = 0; $i < count($tools); $i++) { $tool_list .= '<option value = "' . $tools[$i]['item_id'] . '" >' . adr_get_lang($tools[$i]['item_name']) . ' ( ' . $lang['Adr_items_power'] . ' : ' . $tools[$i]['item_power'] . ' - ' . $lang['Adr_items_duration'] . ' : ' . $tools[$i]['item_duration'] . ' )' . '</option>'; } $tool_list .= '</select>'; $template->assign_vars(array('TOOL_LIST' => $tool_list, 'L_SELECT_TOOL' => $lang['Adr_forge_alchemy_select_tool'], 'L_ALCHEMY_EXPLAIN' => $lang['Adr_forge_alchemy_explain'])); break; case 'alchemy_action': $tool = intval($HTTP_POST_VARS['item_tool']); // No tool , no alchemy if (!$tool) { adr_previous(Adr_forge_alchemy_tool_needed, adr_alchemy, "mode=alchemy"); } else { //Tool gets used even if character doesn't find anything adr_use_item($tool, $user_id); $item = drop_gather_loot($area_id, $user_id, 'alchemy', 14); if (!$item) { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $direction = append_sid("adr_alchemy.{$phpEx}?mode=alchemy"); $message .= "Vous n'avez rien trouvé."; $message .= '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } else { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $message = $item . '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } } break; } } else {
$tool_list .= '<option value = "0" >' . $lang['Adr_forge_fishing_no_tool'] . '</option>'; for ($i = 0; $i < count($tools); $i++) { $tool_list .= '<option value = "' . $tools[$i]['item_id'] . '" >' . adr_get_lang($tools[$i]['item_name']) . ' ( ' . $lang['Adr_items_power'] . ' : ' . $tools[$i]['item_power'] . ' - ' . $lang['Adr_items_duration'] . ' : ' . $tools[$i]['item_duration'] . ' )' . '</option>'; } $tool_list .= '</select>'; $template->assign_vars(array('TOOL_LIST' => $tool_list, 'L_SELECT_TOOL' => $lang['Adr_forge_fishing_select_tool'], 'L_GO_FISHING' => $lang['Adr_forge_fishing_go'], 'L_FISHING_EXPLAIN' => $lang['Adr_forge_fishing_explain'])); break; case 'fishing_action': $tool = intval($HTTP_POST_VARS['item_tool']); // No tool , no fishing if (!$tool) { adr_previous(Adr_forge_fishing_tool_needed, adr_fish, "mode=fishing"); } else { //Tool gets used even if character doesn't find anything adr_use_item($tool, $user_id); $item = drop_gather_loot($actual_zone, $user_id, 'fishing', 15); if (!$item) { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $direction = append_sid("adr_fish.{$phpEx}?mode=fishing"); $message .= "Vous n'avez rien trouvé."; $message .= '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } else { include $phpbb_root_path . 'adr/includes/adr_header.' . $phpEx; $message = $item . '<br /><br />' . sprintf($lang['Adr_return'], "<a href=\"" . $direction . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); } } break; } } else {