Advertisement
wrsi

limit.php

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