Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > Facebook > Dragon City
You last visited: Today at 03:12

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



what is wrong with this script?

Discussion on what is wrong with this script? within the Dragon City forum part of the Facebook category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2015
Posts: 22
Received Thanks: 0
Wink what is wrong with this script?

what is wrong with this script , please professionals edit this script because i dont know what is wrong ?

PHP Code:
<title>Result</title>
<style>
body{font:12px Arial;}
.regards{position:absolute;bottom:0;}
</style>
<center>
<?PHP
if(isset($_POST['n1sterz_epvp_member'])){
    
$playerinfo=ambilplayerinfo($_POST['fbid']);
    
$data.='+====================+
'
;
    
$data.= "FBID : ".$_POST['fbid']."
"
;
    
$data.='+ Gold Before +
'
;
    
$data.=infomolfreegold($playerinfo);
    
$data.='+ Gold After +
'
;
    
$data.=molfreegold($_POST['fbid'],$_POST['jumlah'],$playerinfo);
    
$data.='+====================+
'
;
    echo 
$data;
}
function 
ambilkodedc($kode,$playerinfo){
    foreach (
$playerinfo['map']['items'] as $kode => $isi) {
        if (
$isi[0]==49){
            return 
$kode;
        }
    }
}
function 
ambilplayerinfo($id){
    
$result=sendPost("http://mc.socialpointgames.com/srv/get_player_info.php?USERID=$_POST[fbid]&spdebug=1",$postdata);
    
$result explode(";",$result);
    
$result json_decode($result[1],true);
    return 
$result;
}
function 
sendPost($url,$data=null){
    if(
$data!=null){
        
$postdata=http_build_query($data);
        
$opts = array('http' =>
            array(
                
'method'  => 'POST',
                
'timeout' => 120,
                
'header'  => "Content-type: application/x-www-form-urlencoded\r\n"."Content-Length: ".strlen($postdata)."\r\n",
                
'content' => $postdata
            
)
        );
    }else 
$opts = array('http'=>array('timeout'=>120));
    
$result=file_get_contents($url,false,stream_context_create($opts));
    return 
$result;        
}
function 
infomolfreegold($data){
    
$return.= 'GEMS : '.number_format($data['playerInfo']['cash'],0,',','.').'
'
;
    
$return.= 'GOLD : '.number_format($data['playerInfo']['gold'],0,',','.').'
'
;
    
$return.= 'FOOD : '.number_format($data['playerInfo']['food'],0,',','.').'
'
;
    
$return.= 'XP : '.number_format($data['playerInfo']['xp'],0,',','.').'
'
;
    
$return.= 'LEVEL : '.$data['playerInfo']['level'].'
'
;
return 
$return;    
}
function 
kirimperintah($id,$cmd){
    
$cmd json_encode(array({"first_number":5,"ts":1446999193,"commands":[{"cmd":"dungeon_reward_accepted","urgent":true,"args":[],"model":{"resources":{"f":1500}},"number":5,"time":1446999193}]})
    
$hash hash_hmac('sha256',$cmd,'RGhXbiy4xEeDnSNX1oBG');
    
$cmd=array('data'=>$hash.';'.$cmd,'id'=>$id);
    
$result=sendPost("http://mc.socialpointgames.com/srv/packet.php?USERID=$_POST[fbid]&spdebug=1",$cmd) ;
    
$result explode(";",$result);
    
$result json_decode($result[1],true);
    return 
$result;
}
function 
ambil1mgold($id,$kodetavern,$jum){
    
$cmd=array();
    
$i=1;
    
$num=2*$jum;
    for(
$i=1;$i<=$num;$i++){    
        
$cmd[]=array('number'=>$i,'time'=>time(),'args'=>array($kodetavern),'cmd'=>'finish_si');
        
$i++;
        
$cmd[]=array('number'=>$i,'time'=>time(),'args'=>array(1041,0,0),'cmd'=>'sell_stored_dragon');
        
$i++;
    }
    return 
$cmd;
}
function 
molfreegold($id,$jumlah,$playerinfo){
    
$kodetavern=ambilkodedc(49,$playerinfo);
    
$result=array();
    
$cmd=array();
    
    
$cmd=ambil1mgold($id,$kodetavern,$jumlah);
    
$result=kirimperintah($id,$cmd);
    
$ret='';
    if(
$result['result']==true){
        
$data=ambilplayerinfo($id);
        
$ret.=infomolfreegold($data);
    }else{
        
$ret.='ERROR : '.$result['error'].'
'
;
    }
    return 
$ret;
}

?>
yousefamr2001 is offline  
Old 01/04/2016, 10:40   #2
 
CruzMeynard's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 1,018
Received Thanks: 424
Quote:
Originally Posted by yousefamr2001 View Post
what is wrong with this script , please professionals edit this script because i dont know what is wrong ?

PHP Code:
<title>Result</title>
<style>
body{font:12px Arial;}
.regards{position:absolute;bottom:0;}
</style>
<center>
<?PHP
if(isset($_POST['n1sterz_epvp_member'])){
    
$playerinfo=ambilplayerinfo($_POST['fbid']);
    
$data.='+====================+
'
;
    
$data.= "FBID : ".$_POST['fbid']."
"
;
    
$data.='+ Gold Before +
'
;
    
$data.=infomolfreegold($playerinfo);
    
$data.='+ Gold After +
'
;
    
$data.=molfreegold($_POST['fbid'],$_POST['jumlah'],$playerinfo);
    
$data.='+====================+
'
;
    echo 
$data;
}
function 
ambilkodedc($kode,$playerinfo){
    foreach (
$playerinfo['map']['items'] as $kode => $isi) {
        if (
$isi[0]==49){
            return 
$kode;
        }
    }
}
function 
ambilplayerinfo($id){
    
$result=sendPost("http://mc.socialpointgames.com/srv/get_player_info.php?USERID=$_POST[fbid]&spdebug=1",$postdata);
    
$result explode(";",$result);
    
$result json_decode($result[1],true);
    return 
$result;
}
function 
sendPost($url,$data=null){
    if(
$data!=null){
        
$postdata=http_build_query($data);
        
$opts = array('http' =>
            array(
                
'method'  => 'POST',
                
'timeout' => 120,
                
'header'  => "Content-type: application/x-www-form-urlencoded\r\n"."Content-Length: ".strlen($postdata)."\r\n",
                
'content' => $postdata
            
)
        );
    }else 
$opts = array('http'=>array('timeout'=>120));
    
$result=file_get_contents($url,false,stream_context_create($opts));
    return 
$result;        
}
function 
infomolfreegold($data){
    
$return.= 'GEMS : '.number_format($data['playerInfo']['cash'],0,',','.').'
'
;
    
$return.= 'GOLD : '.number_format($data['playerInfo']['gold'],0,',','.').'
'
;
    
$return.= 'FOOD : '.number_format($data['playerInfo']['food'],0,',','.').'
'
;
    
$return.= 'XP : '.number_format($data['playerInfo']['xp'],0,',','.').'
'
;
    
$return.= 'LEVEL : '.$data['playerInfo']['level'].'
'
;
return 
$return;    
}
function 
kirimperintah($id,$cmd){
    
$cmd json_encode(array({"first_number":5,"ts":1446999193,"commands":[{"cmd":"dungeon_reward_accepted","urgent":true,"args":[],"model":{"resources":{"f":1500}},"number":5,"time":1446999193}]})
    
$hash hash_hmac('sha256',$cmd,'RGhXbiy4xEeDnSNX1oBG');
    
$cmd=array('data'=>$hash.';'.$cmd,'id'=>$id);
    
$result=sendPost("http://mc.socialpointgames.com/srv/packet.php?USERID=$_POST[fbid]&spdebug=1",$cmd) ;
    
$result explode(";",$result);
    
$result json_decode($result[1],true);
    return 
$result;
}
function 
ambil1mgold($id,$kodetavern,$jum){
    
$cmd=array();
    
$i=1;
    
$num=2*$jum;
    for(
$i=1;$i<=$num;$i++){    
        
$cmd[]=array('number'=>$i,'time'=>time(),'args'=>array($kodetavern),'cmd'=>'finish_si');
        
$i++;
        
$cmd[]=array('number'=>$i,'time'=>time(),'args'=>array(1041,0,0),'cmd'=>'sell_stored_dragon');
        
$i++;
    }
    return 
$cmd;
}
function 
molfreegold($id,$jumlah,$playerinfo){
    
$kodetavern=ambilkodedc(49,$playerinfo);
    
$result=array();
    
$cmd=array();
    
    
$cmd=ambil1mgold($id,$kodetavern,$jumlah);
    
$result=kirimperintah($id,$cmd);
    
$ret='';
    if(
$result['result']==true){
        
$data=ambilplayerinfo($id);
        
$ret.=infomolfreegold($data);
    }else{
        
$ret.='ERROR : '.$result['error'].'
'
;
    }
    return 
$ret;
}

?>
Add HTML input, Then cmd, args not work find a new cmd use charles to catch http traffic
CruzMeynard is offline  
Old 01/04/2016, 17:37   #3
 
harisnilwan's Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 123
Received Thanks: 132
Cause it's old script, and you must find new argument and command.
harisnilwan is offline  
Old 02/15/2016, 15:17   #4
 
elite*gold: 0
Join Date: Jun 2013
Posts: 48
Received Thanks: 6


how to solve this ?



please help me

script :

Quote:
<?PHP
if(isset($_POST['send'])){
$playerinfo=ambilplayerinfo($_POST['fbid'],$_POST['ukey']);
$data='------------SEBELUM----------<br/>';
$data.=infodcfreegold($playerinfo);
$data.='------------SESUDAH----------<br/>';
$data.=dcfreegold($_POST['fbid'],$_POST['ukey'],$_POST['jumlah'],$playerinfo);
echo $data;
}
function ambilkodedc($kode,$playerinfo){
foreach ($playerinfo['map']['items'] as $kode => $isi) {
if ($isi[0]==81){
return $kode;
}
}
}
function ambilplayerinfo($id,$ukey){
$result=sendPost("http://dc-canvas.socialpointgames.com/dragoncity/web/srv/get_player_info.php?USERID=".$id."&user_key=".$uke y."&spdebug=1",null);
$result = explode(";",$result);
$result = json_decode($result[1],true);
return $result;
}
function sendPost($url,$data=null){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// curl_setopt($ch, CURLOPT_TIMEOUT_MS, 2000);
// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
// curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0);
// curl_setopt($ch, CURLOPT_PROXY, '23.23.166.15:9231');
if($data!=null){
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data));
}
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}
function infodcfreegold($data){
$return = 'ID : '.$data['playerInfo']['pid'].'<br/>';
$return.= 'NAMA :'.$data['playerInfo']['name'].'<br/>';
$return.= 'LEVEL :'.$data['playerInfo']['level'].'<br/>';
$return.= 'GEMS :'.number_format($data['playerInfo']['cash'],0,',','.').'<br/>';
$return.= 'GOLD :'.number_format($data['playerInfo']['gold'],0,',','.').'<br/>';
$return.= 'FOOD :'.number_format($data['playerInfo']['food'],0,',','.').'<br/>';
$return.= 'XP :'.number_format($data['playerInfo']['xp'],0,',','.').'<br/>';
$return.= '';
return $return;
}
function sendperintah($id,$ukey,$cmd,$num){
$cmd = json_encode(array('publishActions'=>0,'commands'=> $cmd,'flashVersion'=>'1.0.0','first_number'=>$num, 'tries'=>1,'ts'=>time()));
$hash = hash_hmac('sha256',$cmd,'RGhXbiy4xEeDnSNX1oBG');
$cmd=array('data'=>$hash.';'.$cmd,'id'=>$id);
$result=sendPost("http://dc-canvas.socialpointgames.com/dragoncity/web/srv/get_game_config.php?USERID=".$id."&user_key=".$uke y."&spdebug=1",$cmd) ;
$result = explode(";",$result);
$result = json_decode($result[1],true);
return $result;
}
function ambil1mgold($kodetavern,$jum){
$cmd=array();
$i=1;
$num=20*$jum;
for($i=1;$i<=$num;$i++){
$cmd[]=array('number'=>1,'time'=>time(),'args'=>array($k odetavern,0),'cmd'=>'finish_si');
$i++;
$cmd[]=array('number'=>1,'time'=>time(),'args'=>array(11 51,0,0),'cmd'=>'sell_stored_dragon');
}
return $cmd;
}
function dcfreegold($id,$ukey,$jum,$playerinfo){
$kodetavern=ambilkodedc(81,$playerinfo);
$result=array();
$cmd=array();
$i=1;
$num=1;
if($jum==10){

$cmd=ambil1mgold($kodetavern,5);
$result=sendperintah($id,$ukey,$cmd,$num);
$num=$num+count($cmd);
$result=sendperintah($id,$ukey,$cmd,$num);

}elseif($jum==20){
$cmd=ambil1mgold($kodetavern,9);
$result=sendperintah($id,$ukey,$cmd,1);
$num=$num+count($cmd);
}
/*$ret='';
$cmd=array('args'=>array(3131,17,10,15,1,0),'cmd'= >'buy','number'=>1,'time'=>time());
$result=sendperintah($id,$ukey,$cmd,1);*/
$ret='';
if($result['result']==true){
$data=ambilplayerinfo($id,$ukey);
$ret.=infodcfreegold($data);
}else{
$ret.='-------------GAGAL-------------<br/>';
$ret.='ERROR : '.$result['error'].'';
}
return $ret;
}
?>
gnando92 is offline  
Old 02/18/2016, 12:45   #5
 
Dragxon Xelosr Huncker's Avatar
 
elite*gold: 0
Join Date: Apr 2014
Posts: 37
Received Thanks: 42
Reasons for not working:
1. Old script
2. Command & Args are patched 1-2 years ago
3. No HTML form to post data
4. .....
Dragxon Xelosr Huncker is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
What is wrong with this script ?
10/16/2015 - Facebook - 0 Replies
close request
what is wrong with this script?
10/16/2015 - General Coding - 0 Replies
delete
Help MY Script is it wrong ?
05/19/2012 - AutoIt - 3 Replies
hey guys i am making script and all fine and i compiled it but I cant use the icons they dont do their func #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Hack = GUICreate("Electric Frozen By ZubZero", 534, 342, 616, 359)
What is wrong with this script please?
12/12/2009 - CO2 Private Server - 10 Replies
#region Alex case 3600: { if (Control == 0) { GC.AddSend(Packets.NPCSay("So you feel like getting 2nd reborn? Well then you came to the right place. In order to get 2nd reborn you need to be level 120 and have a Exemption Token")); GC.AddSend(Packets.NPCLink("I want 2nd reborn",...
What is wrong in this script?
10/18/2008 - Silkroad Online - 5 Replies
"//","..............^^............. ................^^..............","//&qu ot; "//",".......................... AgDev ..........................","//" "//","........ The agbot-Scripts Constructor ........","//" "//","........... Coded by: Hussert & KillaH ..........","//" "//",".......................Versi on 3.2 ....................","//" "//","............................ ....................................."," //" "//","Town: Hotan","//" "//","Monster: (Roc) ----- Wing Tribe Attacker 4 by...



All times are GMT +1. The time now is 03:12.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.