Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ POWER X 7 DECODER
- * @ Version : 1.1.4.0
- * @ Member : vv456
- * @ Official site : http://www.waraxe.us/forum-userprofile-8669.html
- *
- */
- function BlueWarMap2($bot) {
- if ($bot->firstrun) {
- return null;
- }
- $data = unserialize( file_get_contents( getcwd( ) . '\Plugins\BlueWarMapFasterEI\' . $bot->uid . '_settings.txt' ) );
- if ($data->wtfstart != 1) {
- $bot->SendMsg( '****************************************************' );
- $bot->SendMsg( '| >> BlueWarmapFasterEI: Haciendo XP para ti << |' );
- $bot->SendMsg( '****************************************************' );
- return null;
- }
- $bot->SendMsg( '*******************************************************' );
- $bot->SendMsg( '| >> BlueWarmapFasterEI By Rally Campos << |' );
- $bot->SendMsg( '| >> START WORKING << |' );
- $bot->SendMsg( '*******************************************************' );
- asu( $bot, $data );
- }
- function asu($bot, $data) {
- if ($bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['status'] != 7340032) {
- if ($bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['status'] == 7340547) {
- bangsat( $bot, $rindex );
- return null;
- }
- $bot->SendMsg( '| >> Probablemete tienes que desbloquear TERRA MAR IV isla 3......!!!!!!!' );
- }
- if (( 1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['UO58'] || 1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['world']['itemPlacementHistory']['UO58'] )) {
- $k = 930;
- while ($k <= 500) {
- if ($bot->energy <= 7) {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN7']) {
- $energy = 'EN7';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 25;
- $bot += 'energy';
- = 25;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN7'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN7'] - 1;
- }
- else {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6']) {
- $energy = 'EN6';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 15;
- $bot += 'energy';
- = 15;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'] - 1;
- }
- else {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5']) {
- $energy = 'EN5';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 10;
- $bot += 'energy';
- = 10;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'] - 1;
- }
- else {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4']) {
- $energy = 'EN4';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 5;
- $bot += 'energy';
- = 5;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'] - 1;
- }
- else {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3']) {
- $energy = 'EN3';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 3;
- $bot += 'energy';
- = 3;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'] - 1;
- }
- else {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2']) {
- $energy = 'EN2';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 2;
- $bot += 'energy';
- = 2;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'] - 1;
- }
- }
- }
- }
- }
- }
- }
- if ($bot->energy <= 7) {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6']) {
- $energy = 'EN6';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 15;
- $bot += 'energy';
- = 15;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'] - 1;
- }
- else {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5']) {
- $energy = 'EN5';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 10;
- $bot += 'energy';
- = 10;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'] - 1;
- }
- else {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4']) {
- $energy = 'EN4';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 5;
- $bot += 'energy';
- = 5;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'] - 1;
- }
- else {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3']) {
- $energy = 'EN3';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 3;
- $bot += 'energy';
- = 3;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'] - 1;
- }
- else {
- if (1 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2']) {
- $energy = 'EN2';
- $bot->GetEnergy( $energy );
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['energy'] = $bot->_value['data'][0]['data']['userInfo']['player']['energy'] + 2;
- $bot += 'energy';
- = 2;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'] - 1;
- $bot->SendMsg( '| >> Ciclo : ' . ( $k + 1 ) );
- bangsat( $bot, $rindex );
- }
- else {
- $bot->SendMsg( '| >> Energy Agotada...' );
- $bot->SendMsg( '| >> BlueWarMapFasterEI: FINISHED WORKING...' );
- $bot->SendMsg( '****************************************************' );
- return null;
- }
- }
- }
- }
- }
- }
- $bot->SendMsg( '| >> Ciclo : ' . ( $k + 1 ) );
- bangsat( $bot, $rindex );
- ++$k;
- }
- $bot->SendMsg( '| >> Energy Agotada...' );
- $bot->SendMsg( '| >> BlueWarMapFasterEI: FINISHED WORKING...' );
- $bot->SendMsg( '****************************************************' );
- }
- }
- function bangsat($bot, $rindex) {
- if (!isset( $bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['fleets'] )) {
- $gudalngasu = 'fleet' . $bot->cfg->_value['data'][0]['data']['userInfo']['world']['globalFleetId'] . '_' . $bot->uid;
- $ddd = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['globalFleetId'] + 1;
- $asubuntung = 'fleet' . $ddd . '_' . $bot->uid;
- $bot->cfg->_value['data'][0]['data']['userInfo']['world']['globalFleetId'] = $ddd + 1;
- jejek( $bot, $rindex, $gudalngasu, $asubuntung );
- return null;
- }
- $gudalngasu = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['fleets'][0];
- $asubuntung = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014']['fleets'][1];
- $fleets = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['fleets'];
- $btlStatus = $bot->cfg->_value['data'][0]['data']['userInfo']['world']['battleStatus'][$gudalngasu];
- foreach ($fleets as $fleet) {
- if (( ( $fleet['name'] == $gudalngasu && $fleet['status'] == 0 ) && !isset( $fleet['units'] ) )) {
- jembrut( $bot, $rindex, $gudalngasu, $asubuntung );
- break;
- }
- if (( ( ( $fleet['name'] == $gudalngasu && $btlStatus == 0 ) && $fleet['status'] == 104 ) && isset( $fleet['units'] ) )) {
- $status = 372;
- celek( $bot, $rindex, $gudalngasu, $asubuntung, $status );
- break;
- }
- if (( ( ( ( $fleet['name'] == $gudalngasu && 0 < $btlStatus ) && $fleet['status'] == 104 ) && isset( $fleet['units'] ) ) && isset( $fleet['consumables'] ) )) {
- $status = 373;
- foreach ($fleets as $fleet_enemy) {
- if ($fleet_enemy['name'] == $asubuntung) {
- $units = $fleet_enemy['units'];
- break;
- }
- }
- celek( $bot, $rindex, $gudalngasu, $asubuntung, $status );
- break;
- continue;
- }
- }
- }
- function jejek($bot, $rindex, $gudalngasu, $asubuntung) {
- $amf = new AMFObject( '' );
- $amf->_bodys[0] = new MessageBody( );
- $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader( );
- $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
- $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
- $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
- ++$rindex;
- $amf->_bodys[0]->_value[2] = 0;
- $sec = explode( ' ', microtime( ) )[1];
- [0];
- $usec = ;
- $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
- $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.beginNextCampaign';
- $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
- $amf->_bodys[0]->_value[1][0]['params'][0]['index'] = 2;
- $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
- $amf->_bodys[0]->_value[1][0]['transaction'] = null;
- $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense( );
- $serializer = new AMFSerializer( );
- $result = $serializer->serialize( $amf );
- $x = $bot->SendRequest( $result );
- if (isset( $bot->error_msg )) {
- exit( );
- }
- jembrut( $bot, $rindex, $gudalngasu, $asubuntung );
- }
- function jembrut($bot, $rindex, $gudalngasu, $asubuntung) {
- $f_unit_0 = 'UO58' . ',' . $bot->xmlsOb->GetStrength( 'UO58' ) . ',0,0,0';
- $amf = new AMFObject( '' );
- $amf->_bodys[0] = new MessageBody( );
- $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader( );
- $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
- $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
- $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
- ++$rindex;
- $sec = $amf->_bodys[0]->_value[2] = 0;
- [0];
- $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
- $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.addFleet';
- $amf->_bodys[0]->_value[1][0]['transaction'] = null;
- $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
- $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense( );
- $amf->_bodys[0]->_value[1][0]['params'][0]['units'][0] = $f_unit_0;
- $amf->_bodys[0]->_value[1][0]['params'][0]['status'] = 104;
- $amf->_bodys[0]->_value[1][0]['params'][0]['name'] = $gudalngasu;
- $amf->_bodys[0]->_value[1][0]['params'][0]['type'] = 'army';
- $ch_0 = $bot->ch( $amf->_bodys[0]->_value[1][0]['params'] ) + 1;
- $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch_0;
- $serializer = new AMFSerializer( );
- $serializer->serialize( $amf );
- list( , $result ) = explode( ' ', microtime( ) );
- $x = $usec = $bot->SendRequest( $result );
- if (isset( $bot->error_msg )) {
- exit( );
- }
- $status = 372;
- $units = null;
- celek( $bot, $rindex, $gudalngasu, $asubuntung, $status );
- }
- function celek($bot, $rindex, $gudalngasu, $asubuntung, $status) {
- if ($status == 1) {
- $amf = new AMFObject( '' );
- $amf->_bodys[0] = new MessageBody( );
- $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader( );
- $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
- $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
- $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
- ++$rindex;
- $amf->_bodys[0]->_value[2] = 0;
- $sec = explode( ' ', microtime( ) )[1];
- [0];
- $usec = ;
- $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
- $amf->_bodys[0]->_value[1][0]['transaction'] = null;
- $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
- $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense( );
- $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.resolveBattle';
- $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
- $amf->_bodys[0]->_value[1][0]['params'][0]['target'] = $asubuntung;
- $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = $gudalngasu;
- $ch_2 = $bot->ch( $amf->_bodys[0]->_value[1][0]['params'] );
- $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch_2;
- $serializer = new AMFSerializer( );
- $result = $serializer->serialize( $amf );
- $x = $bot->SendRequest( $result );
- foreach ($units as $unit_s) {
- $array_code = explode( ',', $unit_s );
- $tempe = $array_code[3];
- if ($tempe == 0) {
- $lontong_0 = 650;
- continue;
- }
- if ($tempe == 1) {
- $lontong_1 = 650;
- continue;
- }
- if ($tempe == 2) {
- $lontong_2 = 650;
- continue;
- }
- if ($tempe == 3) {
- $lontong_3 = 650;
- continue;
- }
- if ($tempe == 4) {
- $lontong_4 = 650;
- continue;
- }
- }
- unset( $$units );
- if ($lontong_1 == 1) {
- $turuq = 650;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- }
- if ($lontong_2 == 1) {
- $turuq = 651;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- }
- if ($lontong_3 == 1) {
- $turuq = 652;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- }
- if ($lontong_4 == 1) {
- $turuq = 653;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- }
- if ($lontong_0 == 1) {
- $turuq = 649;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- }
- }
- else {
- kopet( $bot, $rindex, $gudalngasu, $asubuntung );
- $turuq = 650;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- $turuq = 651;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- $turuq = 652;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- $turuq = 653;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- $turuq = 649;
- celekngasu( $bot, $rindex, $gudalngasu, $asubuntung, $turuq );
- }
- if (0 <= $bot->cfg->_value['data'][0]['data']['userInfo']['player']['xp']) {
- $xp = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['xp'];
- $nivel = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['level'];
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['level'] = $bot->_value['data'][0]['data']['userInfo']['player']['level'] + 121;
- $bot += 'xp';
- = 121;
- $bot->cfg->_value['data'][0]['data']['userInfo']['player']['level'] = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['level'] + 121;
- $bot->SendMsg( '| >> Energia = ' . $bot->energy = 60 . ' XP : ' . number_format( $bot->xp ) );
- }
- if ($bot->energy <= 7) {
- $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN7'];
- if (1 <= $a1) {
- }
- else {
- $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN6'];
- if (2 <= $a1) {
- }
- else {
- $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN5'];
- if (2 <= $a1) {
- }
- else {
- $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN4'];
- if (2 <= $a1) {
- }
- else {
- $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN3'];
- if (2 <= $a1) {
- }
- else {
- $a1 = $bot->cfg->_value['data'][0]['data']['userInfo']['player']['inventory']['items']['EN2'];
- if (2 <= $a1) {
- }
- }
- }
- }
- }
- }
- }
- unset( $bot->cfg->_value['data'][0]['data']['userInfo']['world']['campaign']['active']['C014'][fleets] );
- }
- function kopet($bot, $rindex, $gudalngasu, $asubuntung) {
- $amf = new AMFObject( '' );
- $amf->_bodys[0] = new MessageBody( );
- $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader( );
- $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
- $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
- $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
- ++$rindex;
- $sec = $amf->_bodys[0]->_value[2] = 0;
- [0];
- $usec = ;
- $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
- $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense( );
- $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.assignConsumable';
- $amf->_bodys[0]->_value[1][0]['transaction'] = null;
- $amf->_bodys[0]->_value[1][0]['params'][0]['code'] = 'N32';
- $amf->_bodys[0]->_value[1][0]['params'][0]['level'] = 0;
- $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = null;
- $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
- $amf->_bodys[0]->_value[1][0]['params'][0]['id'] = 0;
- $amf->_bodys[0]->_value[1][0]['params'][0]['name'] = $gudalngasu;
- $ch_1 = $bot->ch( $amf->_bodys[0]->_value[1][0]['params'] );
- $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch_1;
- $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
- $serializer = new AMFSerializer( );
- $result = $serializer->serialize( $amf );
- $bot->SendRequest( $result );
- list( , $x ) = explode( ' ', microtime( ) );
- if (isset( $bot->error_msg )) {
- exit( );
- }
- }
- function celekngasu($bot, $rindex, $gudalngasu, $asubuntung, $turuq) {
- $amf = new AMFObject( '' );
- $amf->_bodys[0] = new MessageBody( );
- $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader( );
- $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
- $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
- $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
- ++$rindex;
- $amf->_bodys[0]->_value[2] = 0;
- $sec = explode( ' ', microtime( ) )[1];
- [0];
- $usec = ;
- $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
- $amf->_bodys[0]->_value[1][0]['transaction'] = null;
- $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
- $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense( );
- $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.resolveBattle';
- $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
- $amf->_bodys[0]->_value[1][0]['params'][0]['target'] = $asubuntung;
- $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = $gudalngasu;
- $amf->_bodys[0]->_value[1][0]['params'][0]['id']['0'] = 0;
- $amf->_bodys[0]->_value[1][0]['params'][0]['id']['1'] = $turuq;
- if (( $turuq == 2 || $turuq == 4 )) {
- $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'][0] ) + 1;
- }
- else {
- $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'][0] );
- }
- $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch;
- if ($turuq != 0) {
- $amf->_bodys[0]->_value[1][1]['transaction'] = null;
- $amf->_bodys[0]->_value[1][1]['stamp'] = $time;
- $amf->_bodys[0]->_value[1][1]['sequence'] = $bot->GetSequense( );
- $amf->_bodys[0]->_value[1][1]['functionName'] = 'WorldService.resolveBattle';
- $amf->_bodys[0]->_value[1][1]['params'][0]['map'] = 'C014';
- $amf->_bodys[0]->_value[1][1]['params'][0]['target'] = $asubuntung;
- $amf->_bodys[0]->_value[1][1]['params'][0]['fleet'] = $gudalngasu;
- $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][1]['params'] );
- $amf->_bodys[0]->_value[1][1]['params'][0]['ch'] = (int)$ch;
- }
- $serializer = new AMFSerializer( );
- $result = $serializer->serialize( $amf );
- $x = $bot->SendRequest( $result );
- if (isset( $bot->error_msg )) {
- exit( );
- }
- unset( $$info );
- unset( $$rest );
- $amf = new AMFObject( $x );
- $deserializer = new AMFDeserializer( $amf->rawData );
- $deserializer->deserialize( $amf );
- $info = new MessageBody( );
- $info = $amf->_bodys[0];
- $rest = $info->_value['data'][0]['data']['es'];
- $nn = $info->_value['data'][0]['energy'];
- if ($nn == '') {
- exit( );
- }
- else {
- $bot->energy = $nn;
- }
- if (1 <= $rest) {
- $amf = new AMFObject( '' );
- $amf->_bodys[0] = new MessageBody( );
- $amf->_bodys[0]->_value[0] = $bot->GetAmfHeader( );
- $amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
- $amf->_bodys[0]->responseURI = ( '/' ) . $rindex . '/onStatus';
- $amf->_bodys[0]->responseIndex = ( '/' ) . $rindex;
- ++$rindex;
- $amf->_bodys[0]->_value[2] = 0;
- $sec = explode( ' ', microtime( ) )[1];
- [0];
- $usec = ;
- $time = (bool)$sec . substr( (bool)$usec, 2, 3 );
- if ($turuq == 0) {
- $amf->_bodys[0]->_value[1][0]['transaction'] = null;
- $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
- $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense( );
- $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.resolveBattle';
- $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
- $amf->_bodys[0]->_value[1][0]['params'][0]['target'] = $asubuntung;
- $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = $gudalngasu;
- $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'] );
- $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch;
- $amf->_bodys[0]->_value[1][1]['transaction'] = null;
- $amf->_bodys[0]->_value[1][1]['stamp'] = $time;
- $amf->_bodys[0]->_value[1][1]['sequence'] = $bot->GetSequense( );
- $amf->_bodys[0]->_value[1][1]['functionName'] = 'WorldService.resolveBattle';
- $amf->_bodys[0]->_value[1][1]['params'][0]['map'] = 'C014';
- $amf->_bodys[0]->_value[1][1]['params'][0]['target'] = $asubuntung;
- $amf->_bodys[0]->_value[1][1]['params'][0]['fleet'] = $gudalngasu;
- $amf->_bodys[0]->_value[1][1]['params'][0]['id']['0'] = 0;
- $amf->_bodys[0]->_value[1][1]['params'][0]['id']['1'] = $turuq;
- $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][1]['params'][0] );
- $amf->_bodys[0]->_value[1][1]['params'][0]['ch'] = (int)$ch;
- }
- else {
- $amf->_bodys[0]->_value[1][0]['transaction'] = null;
- $amf->_bodys[0]->_value[1][0]['stamp'] = $time;
- $amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense( );
- $amf->_bodys[0]->_value[1][0]['functionName'] = 'WorldService.resolveBattle';
- $amf->_bodys[0]->_value[1][0]['params'][0]['map'] = 'C014';
- $amf->_bodys[0]->_value[1][0]['params'][0]['target'] = $asubuntung;
- $amf->_bodys[0]->_value[1][0]['params'][0]['fleet'] = $gudalngasu;
- $amf->_bodys[0]->_value[1][0]['params'][0]['id']['0'] = 0;
- $amf->_bodys[0]->_value[1][0]['params'][0]['id']['1'] = $turuq;
- if (( $turuq == 2 || $turuq == 4 )) {
- $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'][0] ) + 1;
- }
- else {
- $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][0]['params'][0] );
- }
- $amf->_bodys[0]->_value[1][0]['params'][0]['ch'] = (int)$ch;
- $amf->_bodys[0]->_value[1][1]['transaction'] = null;
- $amf->_bodys[0]->_value[1][1]['stamp'] = $time;
- $amf->_bodys[0]->_value[1][1]['sequence'] = $bot->GetSequense( );
- $amf->_bodys[0]->_value[1][1]['functionName'] = 'WorldService.resolveBattle';
- $amf->_bodys[0]->_value[1][1]['params'][0]['map'] = 'C014';
- $amf->_bodys[0]->_value[1][1]['params'][0]['target'] = $asubuntung;
- $amf->_bodys[0]->_value[1][1]['params'][0]['fleet'] = $gudalngasu;
- $ch = (int)$bot->ch( $amf->_bodys[0]->_value[1][1]['params'] );
- $amf->_bodys[0]->_value[1][1]['params'][0]['ch'] = (int)$ch;
- }
- $serializer = new AMFSerializer( );
- $result = $serializer->serialize( $amf );
- $x = $bot->SendRequest( $result );
- if (isset( $bot->error_msg )) {
- exit( );
- }
- }
- }
- echo ' ';
- $this->AddHook( 'blueWarMap2', 'BlueWarMap2' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement