Advertisement
wrsi

ilimit_new.php

Apr 12th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 25.32 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ POWER X 7 DECODER
  5. * @ Version         :   1.1.4.0
  6. * @ Member          :   vv456
  7. * @ Official site   :   http://www.waraxe.us/forum-userprofile-8669.html
  8. *
  9. */
  10.  
  11.     function BlueWarMap2($bot) {
  12.         if ($bot->firstrun) {
  13.             return null;
  14.         }
  15.  
  16.         $data = unserialize( file_get_contents( getcwd(  ) . '\Plugins\BlueWarMapFasterEI\' . $bot->uid . '_settings.txt' ) );
  17.  
  18.         if ($data->wtfstart != 1) {
  19.             $bot->SendMsg( '****************************************************' );
  20.             $bot->SendMsg( '| >> BlueWarmapFasterEI: Haciendo XP para ti << |' );
  21.             $bot->SendMsg( '****************************************************' );
  22.             return null;
  23.         }
  24.  
  25.         $bot->SendMsg( '*******************************************************' );
  26.         $bot->SendMsg( '| >> BlueWarmapFasterEI By Rally Campos << |' );
  27.         $bot->SendMsg( '| >>                 START WORKING               << |' );
  28.         $bot->SendMsg( '*******************************************************' );
  29.         asu( $bot, $data );
  30.     }
  31.  
  32.     function asu($bot, $data) {
  33.         if ($bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['status'] != 7340032) {
  34.             if ($bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['status'] == 7340547) {
  35.                 bangsat( $bot, $rindex );
  36.                 return null;
  37.             }
  38.  
  39.             $bot->SendMsg( '| >> Probablemete tienes que desbloquear TERRA MAR IV isla 3......!!!!!!!' );
  40.         }
  41.  
  42.  
  43.         if (( 1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['UO58'] || 1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['world']['itemPlacementHistory']['UO58'] )) {
  44.             $k = 930;
  45.  
  46.             while ($k <= 500) {
  47.                 if ($bot->energy <= 7) {
  48.                     if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN7']) {
  49.                         $energy = 'EN7';
  50.                         $bot->GetEnergy( $energy );
  51.                         $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 25;
  52.                         $bot += 'energy';
  53.                          = 25;
  54.                         $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN7'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN7'] - 1;
  55.                     }
  56. else {
  57.                         if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6']) {
  58.                             $energy = 'EN6';
  59.                             $bot->GetEnergy( $energy );
  60.                             $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 15;
  61.                             $bot += 'energy';
  62.                              = 15;
  63.                             $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'] - 1;
  64.                         }
  65. else {
  66.                             if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5']) {
  67.                                 $energy = 'EN5';
  68.                                 $bot->GetEnergy( $energy );
  69.                                 $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 10;
  70.                                 $bot += 'energy';
  71.                                  = 10;
  72.                                 $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'] - 1;
  73.                             }
  74. else {
  75.                                 if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4']) {
  76.                                     $energy = 'EN4';
  77.                                     $bot->GetEnergy( $energy );
  78.                                     $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 5;
  79.                                     $bot += 'energy';
  80.                                      = 5;
  81.                                     $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'] - 1;
  82.                                 }
  83. else {
  84.                                     if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3']) {
  85.                                         $energy = 'EN3';
  86.                                         $bot->GetEnergy( $energy );
  87.                                         $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 3;
  88.                                         $bot += 'energy';
  89.                                          = 3;
  90.                                         $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'] - 1;
  91.                                     }
  92. else {
  93.                                         if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2']) {
  94.                                             $energy = 'EN2';
  95.                                             $bot->GetEnergy( $energy );
  96.                                             $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 2;
  97.                                             $bot += 'energy';
  98.                                              = 2;
  99.                                             $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'] - 1;
  100.                                         }
  101.                                     }
  102.                                 }
  103.                             }
  104.                         }
  105.                     }
  106.                 }
  107.  
  108.  
  109.                 if ($bot->energy <= 7) {
  110.                     if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6']) {
  111.                         $energy = 'EN6';
  112.                         $bot->GetEnergy( $energy );
  113.                         $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 15;
  114.                         $bot += 'energy';
  115.                          = 15;
  116.                         $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'] - 1;
  117.                     }
  118. else {
  119.                         if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5']) {
  120.                             $energy = 'EN5';
  121.                             $bot->GetEnergy( $energy );
  122.                             $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 10;
  123.                             $bot += 'energy';
  124.                              = 10;
  125.                             $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'] - 1;
  126.                         }
  127. else {
  128.                             if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4']) {
  129.                                 $energy = 'EN4';
  130.                                 $bot->GetEnergy( $energy );
  131.                                 $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 5;
  132.                                 $bot += 'energy';
  133.                                  = 5;
  134.                                 $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'] - 1;
  135.                             }
  136. else {
  137.                                 if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3']) {
  138.                                     $energy = 'EN3';
  139.                                     $bot->GetEnergy( $energy );
  140.                                     $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 3;
  141.                                     $bot += 'energy';
  142.                                      = 3;
  143.                                     $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'] - 1;
  144.                                 }
  145. else {
  146.                                     if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2']) {
  147.                                         $energy = 'EN2';
  148.                                         $bot->GetEnergy( $energy );
  149.                                         $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 2;
  150.                                         $bot += 'energy';
  151.                                          = 2;
  152.                                         $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'] - 1;
  153.                                         $bot->SendMsg( '| >> Ciclo : ' . ( $k + 1 ) );
  154.                                         bangsat( $bot, $rindex );
  155.                                     }
  156. else {
  157.                                         $bot->SendMsg( '| >> Energy Agotada...' );
  158.                                         $bot->SendMsg( '| >> BlueWarMapFasterEI: FINISHED WORKING...' );
  159.                                         $bot->SendMsg( '****************************************************' );
  160.                                         return null;
  161.                                     }
  162.                                 }
  163.                             }
  164.                         }
  165.                     }
  166.                 }
  167.  
  168.                 $bot->SendMsg( '| >> Ciclo : ' . ( $k + 1 ) );
  169.                 bangsat( $bot, $rindex );
  170.                 ++$k;
  171.             }
  172.  
  173.             $bot->SendMsg( '| >> Energy Agotada...' );
  174.             $bot->SendMsg( '| >> BlueWarMapFasterEI: FINISHED WORKING...' );
  175.             $bot->SendMsg( '****************************************************' );
  176.         }
  177.  
  178.     }
  179.  
  180.     function bangsat($bot, $rindex) {
  181.         if (!isset( $bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['fleets'] )) {
  182.             $gudalngasu = 'fleet' . $bot->cfg->_value['data'][0]['data']['userInfo']['world']['globalFleetId'] . '_' . $bot->uid;
  183.             $ddd = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['globalFleetId'] + 1;
  184.             $asubuntung = 'fleet' . $ddd . '_' . $bot->uid;
  185.             $bot->cfg->_value['data'][0]['data']['userInfo']['world']['globalFleetId'] = $ddd + 1;
  186.             jejek( $bot, $rindex, $gudalngasu, $asubuntung );
  187.             return null;
  188.         }
  189.  
  190.         $gudalngasu = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['fleets'][0];
  191.         $asubuntung = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['fleets'][1];
  192.         $fleets = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['fleets'];
  193.         $btlStatus = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['battleStatus'][$gudalngasu];
  194.         foreach ($fleets as $fleet) {
  195.  
  196.             if (( ( $fleet['name'] == $gudalngasu && $fleet['status'] == 0 ) && !isset( $fleet['units'] ) )) {
  197.                 jembrut( $bot, $rindex, $gudalngasu, $asubuntung );
  198.                 break;
  199.             }
  200.  
  201.  
  202.             if (( ( ( $fleet['name'] == $gudalngasu && $btlStatus == 0 ) && $fleet['status'] == 104 ) && isset( $fleet['units'] ) )) {
  203.                 $status = 372;
  204.                 celek( $bot, $rindex, $gudalngasu, $asubuntung, $status );
  205.                 break;
  206.             }
  207.  
  208.  
  209.             if (( ( ( ( $fleet['name'] == $gudalngasu && 0 < $btlStatus ) && $fleet['status'] == 104 ) && isset( $fleet['units'] ) ) && isset( $fleet['consumables'] ) )) {
  210.                 $status = 373;
  211.                 foreach ($fleets as $fleet_enemy) {
  212.  
  213.                     if ($fleet_enemy['name'] == $asubuntung) {
  214.                         $units = $fleet_enemy['units'];
  215.                         break;
  216.                     }
  217.                 }
  218.  
  219.                 celek( $bot, $rindex, $gudalngasu, $asubuntung, $status );
  220.                 break;
  221.                 continue;
  222.             }
  223.         }
  224.  
  225.     }
  226.  
  227.     function jejek($bot, $rindex, $gudalngasu, $asubuntung) {
  228.         $amf = new AMFObject( '' );
  229.         $amf->_bodys[0] = new MessageBody(  );
  230.         $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader(  );
  231.         $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
  232.         $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
  233.         $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
  234.         ++$rindex;
  235.         $amf->_bodys[0]->_value[2] = 0;
  236.         $sec = explode( ' ', microtime(  ) )[1];
  237.         [0];
  238.         $usec = ;
  239.         $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
  240.         $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.beginNextCampaign';
  241.         $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
  242.         $amf->_bodys[0]->_value[1][0]['params'][0]['index'] = 2;
  243.         $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
  244.         $amf->_bodys[0]->_value[1][0]['transaction'] = null;
  245.         $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense(  );
  246.         $serializer = new AMFSerializer(  );
  247.         $result = $serializer->serialize( $amf );
  248.         $x = $bot->SendRequest( $result );
  249.  
  250.         if (isset( $bot->error_msg )) {
  251.             exit(  );
  252.         }
  253.  
  254.         jembrut( $bot, $rindex, $gudalngasu, $asubuntung );
  255.     }
  256.  
  257.     function jembrut($bot, $rindex, $gudalngasu, $asubuntung) {
  258.         $f_unit_0 = 'UO58' . ',' . $bot->xmlsOb->GetStrength( 'UO58' ) . ',0,0,0';
  259.         $amf = new AMFObject( '' );
  260.         $amf->_bodys[0] = new MessageBody(  );
  261.         $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader(  );
  262.         $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
  263.         $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
  264.         $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
  265.         ++$rindex;
  266.         $sec = $amf->_bodys[0]->_value[2] = 0;
  267.         [0];
  268.         $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
  269.         $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.addFleet';
  270.         $amf->_bodys[0]->_value[1][0]['transaction'] = null;
  271.         $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
  272.         $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense(  );
  273.         $amf->_bodys[0]->_value[1][0]['params'][0]['units'][0] = $f_unit_0;
  274.         $amf->_bodys[0]->_value[1][0]['params'][0]['status'] = 104;
  275.         $amf->_bodys[0]->_value[1][0]['params'][0]['name'] = $gudalngasu;
  276.         $amf->_bodys[0]->_value[1][0]['params'][0]['type'] = 'army';
  277.         $ch_0 = $bot->ch( $amf->_bodys[0]->_value[1][0]['params'] ) + 1;
  278.         $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch_0;
  279.         $serializer = new AMFSerializer(  );
  280.         $serializer->serialize( $amf );
  281.         list( , $result ) = explode( ' ', microtime(  ) );
  282.         $x = $usec = $bot->SendRequest( $result );
  283.  
  284.         if (isset( $bot->error_msg )) {
  285.             exit(  );
  286.         }
  287.  
  288.         $status = 372;
  289.         $units = null;
  290.         celek( $bot, $rindex, $gudalngasu, $asubuntung, $status );
  291.     }
  292.  
  293.     function celek($bot, $rindex, $gudalngasu, $asubuntung, $status) {
  294.         if ($status == 1) {
  295.             $amf = new AMFObject( '' );
  296.             $amf->_bodys[0] = new MessageBody(  );
  297.             $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader(  );
  298.             $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
  299.             $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
  300.             $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
  301.             ++$rindex;
  302.             $amf->_bodys[0]->_value[2] = 0;
  303.             $sec = explode( ' ', microtime(  ) )[1];
  304.             [0];
  305.             $usec = ;
  306.             $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
  307.             $amf->_bodys[0]->_value[1][0]['transaction'] = null;
  308.             $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
  309.             $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense(  );
  310.             $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.resolveBattle';
  311.             $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
  312.             $amf->_bodys[0]->_value[1][0]['params'][0]['target'] = $asubuntung;
  313.             $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = $gudalngasu;
  314.             $ch_2 = $bot->ch( $amf->_bodys[0]->_value[1][0]['params'] );
  315.             $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch_2;
  316.             $serializer = new AMFSerializer(  );
  317.             $result = $serializer->serialize( $amf );
  318.             $x = $bot->SendRequest( $result );
  319.             foreach ($units as $unit_s) {
  320.                 $array_code = explode( ',', $unit_s );
  321.                 $tempe = $array_code[3];
  322.  
  323.                 if ($tempe == 0) {
  324.                     $lontong_0 = 650;
  325.                     continue;
  326.                 }
  327.  
  328.  
  329.                 if ($tempe == 1) {
  330.                     $lontong_1 = 650;
  331.                     continue;
  332.                 }
  333.  
  334.  
  335.                 if ($tempe == 2) {
  336.                     $lontong_2 = 650;
  337.                     continue;
  338.                 }
  339.  
  340.  
  341.                 if ($tempe == 3) {
  342.                     $lontong_3 = 650;
  343.                     continue;
  344.                 }
  345.  
  346.  
  347.                 if ($tempe == 4) {
  348.                     $lontong_4 = 650;
  349.                     continue;
  350.                 }
  351.             }
  352.  
  353.             unset( $$units );
  354.  
  355.             if ($lontong_1 == 1) {
  356.                 $turuq = 650;
  357.                 celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  358.             }
  359.  
  360.  
  361.             if ($lontong_2 == 1) {
  362.                 $turuq = 651;
  363.                 celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  364.             }
  365.  
  366.  
  367.             if ($lontong_3 == 1) {
  368.                 $turuq = 652;
  369.                 celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  370.             }
  371.  
  372.  
  373.             if ($lontong_4 == 1) {
  374.                 $turuq = 653;
  375.                 celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  376.             }
  377.  
  378.  
  379.             if ($lontong_0 == 1) {
  380.                 $turuq = 649;
  381.                 celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  382.             }
  383.         }
  384. else {
  385.             kopet( $bot, $rindex, $gudalngasu, $asubuntung );
  386.             $turuq = 650;
  387.             celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  388.             $turuq = 651;
  389.             celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  390.             $turuq = 652;
  391.             celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  392.             $turuq = 653;
  393.             celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  394.             $turuq = 649;
  395.             celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
  396.         }
  397.  
  398.  
  399.         if (0 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['xp']) {
  400.             $xp = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['xp'];
  401.             $nivel = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['level'];
  402.             $bot->cfg->_value['data'][0]['data']['userInfo']['player']['level'] = $bot->_value['data'][0]['data']['userInfo']['player']['level'] + 121;
  403.             $bot += 'xp';
  404.              = 121;
  405.             $bot->cfg->_value['data'][0]['data']['userInfo']['player']['level'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['level'] + 121;
  406.             $bot->SendMsg( '| >> Energia = ' . $bot->energy = 60 . '  XP : ' . number_format( $bot->xp ) );
  407.         }
  408.  
  409.  
  410.         if ($bot->energy <= 7) {
  411.             $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN7'];
  412.  
  413.             if (1 <= $a1) {
  414.             }
  415. else {
  416.                 $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'];
  417.  
  418.                 if (2 <= $a1) {
  419.                 }
  420. else {
  421.                     $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'];
  422.  
  423.                     if (2 <= $a1) {
  424.                     }
  425. else {
  426.                         $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'];
  427.  
  428.                         if (2 <= $a1) {
  429.                         }
  430. else {
  431.                             $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'];
  432.  
  433.                             if (2 <= $a1) {
  434.                             }
  435. else {
  436.                                 $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'];
  437.  
  438.                                 if (2 <= $a1) {
  439.                                 }
  440.                             }
  441.                         }
  442.                     }
  443.                 }
  444.             }
  445.         }
  446.  
  447.         unset( $bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014'][fleets] );
  448.     }
  449.  
  450.     function kopet($bot, $rindex, $gudalngasu, $asubuntung) {
  451.         $amf = new AMFObject( '' );
  452.         $amf->_bodys[0] = new MessageBody(  );
  453.         $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader(  );
  454.         $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
  455.         $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
  456.         $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
  457.         ++$rindex;
  458.         $sec = $amf->_bodys[0]->_value[2] = 0;
  459.         [0];
  460.         $usec = ;
  461.         $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
  462.         $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense(  );
  463.         $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.assignConsumable';
  464.         $amf->_bodys[0]->_value[1][0]['transaction'] = null;
  465.         $amf->_bodys[0]->_value[1][0]['params'][0]['code'] = 'N32';
  466.         $amf->_bodys[0]->_value[1][0]['params'][0]['level'] = 0;
  467.         $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = null;
  468.         $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
  469.         $amf->_bodys[0]->_value[1][0]['params'][0]['id'] = 0;
  470.         $amf->_bodys[0]->_value[1][0]['params'][0]['name'] = $gudalngasu;
  471.         $ch_1 = $bot->ch( $amf->_bodys[0]->_value[1][0]['params'] );
  472.         $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch_1;
  473.         $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
  474.         $serializer = new AMFSerializer(  );
  475.         $result = $serializer->serialize( $amf );
  476.         $bot->SendRequest( $result );
  477.         list( , $x ) = explode( ' ', microtime(  ) );
  478.  
  479.         if (isset( $bot->error_msg )) {
  480.             exit(  );
  481.         }
  482.  
  483.     }
  484.  
  485.     function celekngasu($bot, $rindex, $gudalngasu, $asubuntung, $turuq) {
  486.         $amf = new AMFObject( '' );
  487.         $amf->_bodys[0] = new MessageBody(  );
  488.         $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader(  );
  489.         $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
  490.         $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
  491.         $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
  492.         ++$rindex;
  493.         $amf->_bodys[0]->_value[2] = 0;
  494.         $sec = explode( ' ', microtime(  ) )[1];
  495.         [0];
  496.         $usec = ;
  497.         $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
  498.         $amf->_bodys[0]->_value[1][0]['transaction'] = null;
  499.         $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
  500.         $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense(  );
  501.         $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.resolveBattle';
  502.         $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
  503.         $amf->_bodys[0]->_value[1][0]['params'][0]['target'] = $asubuntung;
  504.         $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = $gudalngasu;
  505.         $amf->_bodys[0]->_value[1][0]['params'][0]['id']['0'] = 0;
  506.         $amf->_bodys[0]->_value[1][0]['params'][0]['id']['1'] = $turuq;
  507.  
  508.         if (( $turuq == 2 || $turuq == 4 )) {
  509.             $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'][0] ) + 1;
  510.         }
  511. else {
  512.             $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'][0] );
  513.         }
  514.  
  515.         $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch;
  516.  
  517.         if ($turuq != 0) {
  518.             $amf->_bodys[0]->_value[1][1]['transaction'] = null;
  519.             $amf->_bodys[0]->_value[1][1]['stamp'] = $time;
  520.             $amf->_bodys[0]->_value[1][1]['sequence'] = $bot->GetSequense(  );
  521.             $amf->_bodys[0]->_value[1][1]['functionName'] = 'WorldService.resolveBattle';
  522.             $amf->_bodys[0]->_value[1][1]['params'][0]['map'] = 'C014';
  523.             $amf->_bodys[0]->_value[1][1]['params'][0]['target'] = $asubuntung;
  524.             $amf->_bodys[0]->_value[1][1]['params'][0]['fleet'] = $gudalngasu;
  525.             $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][1]['params'] );
  526.             $amf->_bodys[0]->_value[1][1]['params'][0]['ch'] = (int)$ch;
  527.         }
  528.  
  529.         $serializer = new AMFSerializer(  );
  530.         $result = $serializer->serialize( $amf );
  531.         $x = $bot->SendRequest( $result );
  532.  
  533.         if (isset( $bot->error_msg )) {
  534.             exit(  );
  535.         }
  536.  
  537.         unset( $$info );
  538.         unset( $$rest );
  539.         $amf = new AMFObject( $x );
  540.         $deserializer = new AMFDeserializer( $amf->rawData );
  541.         $deserializer->deserialize( $amf );
  542.         $info = new MessageBody(  );
  543.         $info = $amf->_bodys[0];
  544.         $rest = $info->_value['data'][0]['data']['es'];
  545.         $nn = $info->_value['data'][0]['energy'];
  546.  
  547.         if ($nn == '') {
  548.             exit(  );
  549.         }
  550. else {
  551.             $bot->energy = $nn;
  552.         }
  553.  
  554.  
  555.         if (1 <= $rest) {
  556.             $amf = new AMFObject( '' );
  557.             $amf->_bodys[0] = new MessageBody(  );
  558.             $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader(  );
  559.             $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
  560.             $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
  561.             $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
  562.             ++$rindex;
  563.             $amf->_bodys[0]->_value[2] = 0;
  564.             $sec = explode( ' ', microtime(  ) )[1];
  565.             [0];
  566.             $usec = ;
  567.             $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
  568.  
  569.             if ($turuq == 0) {
  570.                 $amf->_bodys[0]->_value[1][0]['transaction'] = null;
  571.                 $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
  572.                 $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense(  );
  573.                 $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.resolveBattle';
  574.                 $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
  575.                 $amf->_bodys[0]->_value[1][0]['params'][0]['target'] = $asubuntung;
  576.                 $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = $gudalngasu;
  577.                 $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'] );
  578.                 $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch;
  579.                 $amf->_bodys[0]->_value[1][1]['transaction'] = null;
  580.                 $amf->_bodys[0]->_value[1][1]['stamp'] = $time;
  581.                 $amf->_bodys[0]->_value[1][1]['sequence'] = $bot->GetSequense(  );
  582.                 $amf->_bodys[0]->_value[1][1]['functionName'] = 'WorldService.resolveBattle';
  583.                 $amf->_bodys[0]->_value[1][1]['params'][0]['map'] = 'C014';
  584.                 $amf->_bodys[0]->_value[1][1]['params'][0]['target'] = $asubuntung;
  585.                 $amf->_bodys[0]->_value[1][1]['params'][0]['fleet'] = $gudalngasu;
  586.                 $amf->_bodys[0]->_value[1][1]['params'][0]['id']['0'] = 0;
  587.                 $amf->_bodys[0]->_value[1][1]['params'][0]['id']['1'] = $turuq;
  588.                 $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][1]['params'][0] );
  589.                 $amf->_bodys[0]->_value[1][1]['params'][0]['ch'] = (int)$ch;
  590.             }
  591. else {
  592.                 $amf->_bodys[0]->_value[1][0]['transaction'] = null;
  593.                 $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
  594.                 $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense(  );
  595.                 $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.resolveBattle';
  596.                 $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
  597.                 $amf->_bodys[0]->_value[1][0]['params'][0]['target'] = $asubuntung;
  598.                 $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = $gudalngasu;
  599.                 $amf->_bodys[0]->_value[1][0]['params'][0]['id']['0'] = 0;
  600.                 $amf->_bodys[0]->_value[1][0]['params'][0]['id']['1'] = $turuq;
  601.  
  602.                 if (( $turuq == 2 || $turuq == 4 )) {
  603.                     $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'][0] ) + 1;
  604.                 }
  605. else {
  606.                     $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'][0] );
  607.                 }
  608.  
  609.                 $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch;
  610.                 $amf->_bodys[0]->_value[1][1]['transaction'] = null;
  611.                 $amf->_bodys[0]->_value[1][1]['stamp'] = $time;
  612.                 $amf->_bodys[0]->_value[1][1]['sequence'] = $bot->GetSequense(  );
  613.                 $amf->_bodys[0]->_value[1][1]['functionName'] = 'WorldService.resolveBattle';
  614.                 $amf->_bodys[0]->_value[1][1]['params'][0]['map'] = 'C014';
  615.                 $amf->_bodys[0]->_value[1][1]['params'][0]['target'] = $asubuntung;
  616.                 $amf->_bodys[0]->_value[1][1]['params'][0]['fleet'] = $gudalngasu;
  617.                 $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][1]['params'] );
  618.                 $amf->_bodys[0]->_value[1][1]['params'][0]['ch'] = (int)$ch;
  619.             }
  620.  
  621.             $serializer = new AMFSerializer(  );
  622.             $result = $serializer->serialize( $amf );
  623.             $x = $bot->SendRequest( $result );
  624.  
  625.             if (isset( $bot->error_msg )) {
  626.                 exit(  );
  627.             }
  628.         }
  629.  
  630.     }
  631.  
  632.     echo '          ';
  633.     $this->AddHook( 'blueWarMap2', 'BlueWarMap2' );
  634. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement