Advertisement
wrsi

ilimit.php

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