Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.10.0
- * @ Author : DeZender
- * @ Release on : 09.04.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function isWild($sym)
- {
- global $wild_img;
- if ($sym === $wild_img) {
- return true;
- }
- else {
- return false;
- }
- }
- function GiveMeStroku($x)
- {
- $x = (int) $x;
- $y = 3;
- $у = $x % $y;
- if ($у == 0) {
- $у = 3;
- }
- $у--;
- return $у;
- }
- include $_SERVER['DOCUMENT_ROOT'] . '/games/script_header.php';
- $psym[0] = [0, 0, 5, 25, 100];
- $psym[1] = [0, 0, 5, 25, 100];
- $psym[2] = [0, 0, 5, 25, 100];
- $psym[3] = [0, 0, 5, 40, 150];
- $psym[4] = [0, 0, 5, 40, 150];
- $psym[5] = [0, 5, 30, 100, 750];
- $psym[6] = [0, 5, 30, 100, 750];
- $psym[7] = [0, 5, 40, 400, 2000];
- $psym[8] = [0, 10, 100, 1000, 5000];
- $psym[9] = [0, 0, 2, 20, 200];
- $lin[0] = [2, 5, 8, 11, 14];
- $lin[1] = [1, 4, 7, 10, 13];
- $lin[2] = [3, 6, 9, 12, 15];
- $lin[3] = [1, 5, 9, 11, 13];
- $lin[4] = [3, 5, 7, 11, 15];
- $lin[5] = [2, 6, 9, 12, 14];
- $lin[6] = [2, 4, 7, 10, 14];
- $lin[7] = [3, 6, 8, 10, 13];
- $lin[8] = [1, 4, 8, 12, 15];
- $wild_img = 9;
- $scatter_img = 9;
- $scatters_count = 2;
- $scatters_count_for_bonus = 3;
- foreach ($psym as $key4 => $allshit) {
- $row65[] = $key4;
- }
- $data = json_decode(stripcslashes($_POST['data']), true);
- $action = $data['action'];
- $user_balance = get_balance($userId);
- if ($action != 'error') {
- $line = (isset($data['lines']) ? $data['lines'] : 9);
- $bet12 = (isset($data['bet']) ? $data['bet'] : 1);
- $allbet7 = $bet12 * $line;
- array_splice($lin, $line);
- if ($user_balance < 0) {
- $errorMessage = 'error|Ошибка! Ваш баланс (' . $user_balance . ') недостаточен для игры';
- $action = 'error';
- }
- else if (($action != 'state') && (($bet12 < 0.0001) || (10000 < $bet12))) {
- $action = 'error';
- $errorMessage = 'error|Ошибка! Ваша ставка (' . $bet12 . ') должна быть от 0.01 до 10000';
- }
- else if (($action != 'state') && ($action != 'double') && !in_array($line, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30])) {
- $action = 'error';
- $errorMessage = 'error|Ошибка! Выбранное вами количество линий игры (' . $line . ') должно быть от 1 до 20';
- }
- else if (($action == 'spin') && ($user_balance < $allbet7)) {
- $action = 'error';
- $errorMessage = 'error|Ошибка! Ваш баланс (' . $user_balance . ') недостаточен для игры по сделанной ставке (' . $allbet7 . ')';
- }
- }
- if ($action == 'error') {
- $msg = (isset($errorMessage) ? $errorMessage : 'error|Ошибка! Неверное действие');
- ge_serv_show_str($msg);
- }
- if ($action == 'init') {
- if ($demomode) {
- $currnecy = 'DEMO';
- }
- else {
- $currnecy = 'RUB';
- }
- echo '{"balance":{"before":' . $user_balance . ',"after":' . $user_balance . '},"denomination":1,"init":{"bet":' . $bet12 . ',"lines":' . $line . ',"ranges":{"bet":{"0.5":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100,"11":200},"1":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100,"11":200},"2":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100,"11":200},"5":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100,"11":200},"10":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":10,"6":20,"7":30,"8":40,"9":50,"10":100}},"denomination":{"0":0.5,"1":1,"2":2,"3":5,"4":10}},"currency":"' . $currnecy . '","restorestate":false,"extra":{"max_multiplier":500},"next_request_id":2,"directory":{"paytable":{"0":{"3":5,"4":25,"5":100},"1":{"3":5,"4":25,"5":100},"2":{"3":5,"4":25,"5":100},"3":{"3":5,"4":40,"5":150},"4":{"3":5,"4":40,"5":150},"5":{"2":5,"3":30,"4":100,"5":750},"6":{"2":5,"3":30,"4":100,"5":750},"7":{"2":5,"3":40,"4":400,"5":2000},"8":{"2":10,"3":100,"4":1000,"5":5000},"9":{"3":{"onetime_win":2,"freespin_count":10},"4":{"onetime_win":20,"freespin_count":10},"5":{"onetime_win":200,"freespin_count":10}}},"lines":{"0":{"0":1,"1":1,"2":1,"3":1,"4":1},"1":{"0":0,"1":0,"2":0,"3":0,"4":0},"2":{"0":2,"1":2,"2":2,"3":2,"4":2},"3":{"0":0,"1":1,"2":2,"3":1,"4":0},"4":{"0":2,"1":1,"2":0,"3":1,"4":2},"5":{"0":1,"1":2,"2":2,"3":2,"4":1},"6":{"0":1,"1":0,"2":0,"3":0,"4":1},"7":{"0":2,"1":2,"2":1,"3":0,"4":0},"8":{"0":0,"1":0,"2":1,"3":2,"4":2}},"available_lines_count":{"0":1,"1":2,"2":3,"3":4,"4":5,"5":6,"6":7,"7":8,"8":9}},"start_symbols":{"0":{"0":{"code":1},"1":{"code":0},"2":{"code":3}},"1":{"0":{"code":2},"1":{"code":4},"2":{"code":0}},"2":{"0":{"code":3},"1":{"code":4},"2":{"code":0}},"3":{"0":{"code":3},"1":{"code":5},"2":{"code":4}},"4":{"0":{"code":3},"1":{"code":4},"2":{"code":2}}},"collect":1},"macro_round":{"wins":{"total":0}}}';
- }
- if ($action == 'collect') {
- $afterbf = $user_balance - $_SESSION['book_CurBWin'];
- $totaler = 0;
- echo '{"balance":{"before":' . $user_balance . ',"after":' . $user_balance . '},"denomination":1,"macro_round":{"wins":{"total":' . $totaler . '}}}';
- }
- if (($action == 'spin') || ($action == 'initspin')) {
- $win_lines = [];
- $rnd_bonus = 0;
- $rnd_result = 0;
- $mas_win = 0;
- $winall = 0;
- $_SESSION['bookofra_last_win'] = 0;
- if ($action == 'spin') {
- $gset = spin_all('spin', $bet12, $line);
- if ($gset['type'] == 'bon') {
- $rnd_bonus = 1;
- }
- if ($gset['type'] == 'win') {
- $rnd_result = $mas_win = 1;
- }
- $casbank = $gset['sum'];
- $minwin = $gset['sum'] * 0.5;
- $new_out['a_bank'] = $casbank;
- if ($rnd_bonus == 1) {
- $rnd_result = 0;
- $mas_win = 0;
- $_SESSION['book_FullBWin'] = $casbank;
- $_SESSION['book_freeGameCount'] = 10;
- $_SESSION['book_CurBWin'] = 0;
- $_SESSION['walk_wild_map'] = [];
- $casbank = 0;
- $minwin = 0;
- }
- }
- else if ($action == 'initspin') {
- $rnd_result = 0;
- $rnd_bonus = 0;
- $mas_win = 0;
- $casbank = 0;
- $minwin = 0;
- }
- $srand = rand(1, 100);
- ...........................................................................
- ...........................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement