piątek, 14 sierpnia 2015

Witch Script and album by Ilnezid


Baza: 
Spoiler 
-- phpMyAdmin SQL Dump
-- version 4.4.12
--
-- Host: localhost
-- Czas generowania: 27 Lip 2015, 19:44
-- Wersja serwera: 5.6.26-log
-- Wersja PHP: 5.5.27
 
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
 
 
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
 
--
-- Baza danych: `rivendel_s2`
--
 
-- --------------------------------------------------------
 
--
-- Struktura tabeli dla tabeli `witch`
--
 
CREATE TABLE IF NOT EXISTS `witch` (
  `id` bigint(20) unsigned NOT NULL,
  `work` tinyint(4) NOT NULL DEFAULT '0',
  `id_donation` tinyint(4) NOT NULL DEFAULT '1',
  `progress` bigint(20) NOT NULL DEFAULT '0',
  `users` bigint(20) NOT NULL DEFAULT '10000',
  `scroll_1` int(11) NOT NULL DEFAULT '51',
  `scroll_2` int(11) NOT NULL,
  `scroll_3` int(11) NOT NULL,
  `scroll_4` int(11) NOT NULL,
  `scroll_5` int(11) NOT NULL,
  `scroll_6` int(11) NOT NULL,
  `scroll_7` int(11) NOT NULL,
  `scroll_8` int(11) NOT NULL,
  `scroll_9` int(11) NOT NULL,
  `scroll_10` int(11) NOT NULL,
  `scroll_1_time` bigint(24) NOT NULL DEFAULT '1436778900',
  `scroll_2_time` bigint(24) NOT NULL,
  `scroll_3_time` bigint(24) NOT NULL,
  `scroll_4_time` bigint(24) NOT NULL,
  `scroll_5_time` bigint(24) NOT NULL,
  `scroll_6_time` bigint(24) NOT NULL,
  `scroll_7_time` bigint(24) NOT NULL,
  `scroll_8_time` bigint(24) NOT NULL,
  `scroll_9_time` bigint(24) NOT NULL,
  `scroll_10_time` bigint(24) NOT NULL,
  `scroll_max` int(11) NOT NULL DEFAULT '1'
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
 
--
-- Zrzut danych tabeli `witch`
--
 
INSERT INTO `witch` (`id`, `work`, `id_donation`, `progress`, `users`, `scroll_1`, `scroll_2`, `scroll_3`, `scroll_4`, `scroll_5`, `scroll_6`, `scroll_7`, `scroll_8`, `scroll_9`, `scroll_10`, `scroll_1_time`, `scroll_2_time`, `scroll_3_time`, `scroll_4_time`, `scroll_5_time`, `scroll_6_time`, `scroll_7_time`, `scroll_8_time`, `scroll_9_time`, `scroll_10_time`, `scroll_max`) VALUES
(1, 1, 9, 250, 250, 51, 101, 71, 91, 41, 61, 81, 31, 11, 0, 1437399030, 1437415245, 1437418605, 1437472405, 1437491600, 1437526895, 1437568170, 1437654080, 1437663265, 0, 9);
 
--
-- Indeksy dla zrzutów tabel
--
 
--
-- Indexes for table `witch`
--
ALTER TABLE `witch`
  ADD PRIMARY KEY (`id`);
 
--
-- AUTO_INCREMENT for dumped tables
--
 
--
-- AUTO_INCREMENT dla tabeli `witch`
--
ALTER TABLE `witch`
  MODIFY `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Oraz dodajcie do bazy danych items enchant oraz enchant_power.
Tyle.
 
Oraz wyszukujecie
foreach ( $items as $item ) {
 
i zamieniacie:
 
  #AND RESPONSE FOR STATS ITEMS
foreach ( $items as $item ) {
        $i = $item ['slot'];
        $GLOBALS ['ret'] [$i] = $item['enchant'] + $item ['item_type'];
        $GLOBALS ['ret'] [$i + 1] = $item['enchant_power'] + $item['item_id'];
        $GLOBALS ['ret'] [$i + 2] = $item ['dmg_min'];
        $GLOBALS ['ret'] [$i + 3] = $item ['dmg_max'];
        $GLOBALS ['ret'] [$i + 4] = $item ['atr_type_1'];
        $GLOBALS ['ret'] [$i + 5] = $item ['atr_type_2'];
        $GLOBALS ['ret'] [$i + 6] = $item ['atr_type_3'];
        $GLOBALS ['ret'] [$i + 7] = $item ['atr_val_1'];
        $GLOBALS ['ret'] [$i + 8] = $item ['atr_val_2'];
        $GLOBALS ['ret'] [$i + 9] = $item ['atr_val_3'];
        $GLOBALS ['ret'] [$i + 10] = $item ['gold'];
        $GLOBALS ['ret'] [$i + 11] = $item ['mush'];
 
 
Dodajecie jeszcze to:  $GLOBALS['ret'][438] = 0; - nie można kliknąć w album, 0%
lub to  $GLOBALS['ret'][438] = 10000; można kliknąć w album, 0% lub to  $GLOBALS['ret'][438] = 100000; można kliknąć w album, 100%.

Brak komentarzy:

Prześlij komentarz