|
You last visited: Today at 19:09
Advertisement
[Release] Social Wars Script
Discussion on [Release] Social Wars Script within the Facebook forum part of the Browsergames category.
01/30/2014, 07:39
|
#1
|
elite*gold: 0
Join Date: Dec 2013
Posts: 12
Received Thanks: 5
|
[Release] Social Wars Script
This is the script : GIVE ME THANKS 
Quote:
<html><head><title>Social Wars | Muhammad Iqbal</title></head><body>
<link rel="shortcut icon" href="https://fbcdn-photos-e-a.akamaihd.net/hphotos-ak-prn1/851579_577252918974734_1364279235_n.gif"/>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script>
function otomatis(){
if(document.getElementById("paket").value == "1"){
document.getElementById("cash").value=300;
document.getElementById("gold").value=30000;
document.getElementById("oil").value=20000;
document.getElementById("wood").value=20000;
document.getElementById("steel").value=20000;
}else if(document.getElementById("paket").value == "2"){
document.getElementById("cash").value=600;
document.getElementById("gold").value=60000;
document.getElementById("oil").value=40000;
document.getElementById("wood").value=40000;
document.getElementById("steel").value=40000;
}else if(document.getElementById("paket").value == "3"){
document.getElementById("cash").value=2100;
document.getElementById("gold").value=120000;
document.getElementById("oil").value=80000;
document.getElementById("wood").value=80000;
document.getElementById("steel").value=80000;
}else if(document.getElementById("paket").value == "4"){
document.getElementById("cash").value=4200;
document.getElementById("gold").value=240000;
document.getElementById("oil").value=160000;
document.getElementById("wood").value=160000;
document.getElementById("steel").value=160000;
}else if(document.getElementById("paket").value == "5"){
document.getElementById("cash").value=6000;
document.getElementById("gold").value=480000;
document.getElementById("oil").value=320000;
document.getElementById("wood").value=320000;
document.getElementById("steel").value=320000;
}else{
document.getElementById("cash").value=0;
document.getElementById("gold").value=0;
document.getElementById("oil").value=0;
document.getElementById("wood").value=0;
document.getElementById("steel").value=0;
}
}
</script>
<center>
<form method="post">
<div class="widget">
<small><h4 class="widgettitle">Min Lv 3 Thank You</h4></small>
<div class="widgetcontent">
<p>
<label>FB-ID</label>
<span class="field"><input type="number" id="fbid" name="fbid" class="input-large" placeholder="Masukkan FB-ID"></span>
</p>
<p>
<label>UserKey</label>
<span class="field"><input type="number" id="ukey" name="ukey" class="input-large" placeholder="Masukkan User_key"></span>
</p>
<p>
<label>Paket</label>
<span class="field">
<select name="paket" id="paket" onchange="otomatis();" class="uniformselect">
<option value=1 id=300>300 Cash (Bonus 30.000 Gold + 20.000 Oil + 20.000 Wood + 20.000 Steel)</option>
<option value=2 id=600>600 Cash (Bonus 60.000 Gold + 40.000 Oil + 40.000 Wood + 40.000 Steel)</option>
<option value=3 id=2100>2100 Cash (Bonus 120.000 Gold + 80.000 Oil + 80.000 Wood + 80.000 Steel)</option>
<option value=4 id=4200>4200 Cash (Bonus 240.000 Gold + 160.000 Oil + 160.000 Wood + 160.000 Steel)</option>
<option value=5 id=6000>6000 Cash (Bonus 480.000 Gold + 320.000 Oil + 320.000 Wood + 320.000 Steel)</option>
<option value=0 id=0 selected=selected>Custom</option>
</select>
</span>
</p>
<p>
<label>Cash</label>
<span class="field"><input type="number" name="cash" class="input-large" id="cash" value="0"></span>
</p>
<p>
<label>Gold</label>
<span class="field"><input type="number" name="gold" class="input-large" id="gold" value="0"></span>
</p>
<p>
<label>Wood</label>
<span class="field"><input type="number" name="wood" class="input-large" id="wood" value="0"></span>
</p>
<p>
<label>Steel</label>
<span class="field"><input type="number" name="steel" class="input-large" id="steel" value="0"></span>
</p>
<p>
<label>Oil</label>
<span class="field">
<input type="number" name="oil" class="input-large" id="oil" value="0">
</p>
<p>
<label>XP</label>
<span class="field">
<input type="number" name="xp" class="input-large" id="xp" value="0">
</span>
</p>
<input type="submit" name="proces" value="Proces Now !" />
</form></br>
<?php
function getLevelByXp($xp){
$listlevel=array(0,40,60,100,200,350,550,800,1113, 1504,1993,2604,3368,4323,5517,7010,8876,11209,1365 9,16232,18934,21771,24750,27878,31162,34610,38230, 42031,46022,50213,54614,59235,64087,69182,74532,80 150,86049,92243,98747,105576,112746,120275,128180, 136480,145195,154346,163955,174044,184637,195760,2 07439,219702,232578,246098,260294,275200,290851,30 7285,324541,342660,361685,381661,402636,424660,447 785,472066,497561,524331,552440,581954,612944,6454 84,679651,715526,756782,804226,858787,921532,99368 9,1076670,1172098,1281840,1408043,1553176,1720079, 1912017,2132746,2386584,2678498,3014199,3400255,38 44219,4354778,4941921,5617135,6393631,7286601,8313 517,9494470,2016089205);
$j=count($listlevel);
for($i=0;$i<$j;$i++){
if($listlevel[$i] > $xp) break;
}
return $i;
}
if(isset($_POST['proces']) and isset($_POST['fbid'])){
$cid = round(rand() * 0x40000000);
$postdata=array('neighbors'=>"",'client_id'=>$cid) ;
$result=sendPost("http://dynamicmw.socialpointgames.com/appsfb/menvswomen/srvsexwars/get_player_info.php?USERID=$_POST[fbid]&user_key=$_POST[ukey]&spdebug=1",$postdata);
$payload = explode(';',$result);
$data = json_decode($payload[1],true);
if($data['result']=='error'){
$str= 'Slah Gan Tlong di periksa bye Muhammad Iqbal';
goto habis;
}
$str='';
$str .= "=========SEBELUM=========<br/>";
$str .= "FB-ID : ".$data['playerInfo']['pid']."<br/>";
$str .= "=========================<br/>";
$str .= "NAME : ".$data['playerInfo']['name']."<br/>";
$str .= "CASH : ".number_format($data['playerInfo']['cash'],0,',','.')."<br/>";
$str .= "GOLD : ".number_format($data['map']['gold'],0,',','.')."<br/>";
$str .= "OIL : ".number_format($data['map']['oil'],0,',','.')."<br/>";
$str .= "WOOD : ".number_format($data['map']['wood'],0,',','.')."<br/>";
$str .= "STEEL : ".number_format($data['map']['steel'],0,',','.')."<br/>";
$str .= "XP : ".number_format($data['map']['xp'],0,',','.')."<br/>";
$str .= "LEVEL : ".$data['map']['level']."<br/>";
$str .= "=========SESUDAH=========<br/>";
$cmd[]=array(0,'set_variables',array(),array(0,(integer) $_POST['xp'],(integer)$_POST['gold'],(integer)$_POST['wood'],(integer)$_POST['oil'],(integer)$_POST['steel'],(integer)$_POST['cash'],0));
$cmd[]=array(0,'level_up',array(getLevelByXp($data['map']['xp']+(integer)$_POST['xp'])),array(0,0,0,0,0,0,0,0));
if(sendCommand($_POST['fbid'],$_POST['ukey'],'1.5.0',$cmd)){
$result=sendPost("http://dynamicmw.socialpointgames.com/appsfb/menvswomen/srvsexwars/get_player_info.php?USERID=$_POST[fbid]&user_key=$_POST[ukey]&spdebug=1",$postdata);
$payload = explode(';',$result);
$data = json_decode($payload[1],true);
$str .= "FB-ID : ".$data['playerInfo']['pid']."<br/>";
$str .= "=========================<br/>";
$str .= "NAME : ".$data['playerInfo']['name']."<br/>";
$str .= "CASH : ".number_format($data['playerInfo']['cash'],0,',','.')."<br/>";
$str .= "GOLD : ".number_format($data['map']['gold'],0,',','.')."<br/>";
$str .= "OIL : ".number_format($data['map']['oil'],0,',','.')."<br/>";
$str .= "WOOD : ".number_format($data['map']['wood'],0,',','.')."<br/>";
$str .= "STEEL : ".number_format($data['map']['steel'],0,',','.')."<br/>";
$str .= "XP : ".number_format($data['map']['xp'],0,',','.')."<br/>";
$str .= "LEVEL : ".$data['map']['level']."<br/>";
$str .= "=========================<br/>";
}
habis:
echo $str;
}
function sendPost($url,$data=null){
if($data!=null){
$postdata=http_build_query($data);
$opts = array('http' =>
array(
'method' => 'POST',
'timeout' => 30,
'header' => "Content-type: application/x-www-form-urlencoded\r\n"."Content-Length: ".strlen($postdata)."\r\n",
'content' => $postdata
)
);
}else $opts = array('http'=>array('timeout'=>30));
$result=file_get_contents($url,false,stream_contex t_create($opts));
return $result;
}
function sendCommand($fbid,$ukey,$flash,$cmd){
$cmd = json_encode(array('publishActions'=>"0",'commands' =>$cmd,'flashVersion'=>$flash,'first_number'=>1,'t ries'=>1,'ts'=>time(),'accessToken'=>""));
$hash = hash_hmac('sha256',$cmd,'4vVSD8dftv6hdfb1Hnk9');
$cmd=array('data'=>$hash.';'.$cmd);
$result=sendPost("http://dynamicmw.socialpointgames.com/appsfb/menvswomen/srvsexwars/command.php?USERID=$fbid&user_key=$ukey&spdebug=1" ,$cmd);
$result = json_decode($result,true);
return $result;
}
?>
|
 :
|
|
|
01/30/2014, 11:10
|
#2
|
elite*gold: 0
Join Date: Jul 2013
Posts: 12
Received Thanks: 5
|
Parse error: syntax error, unexpected T_LNUMBER, expecting ')' in /home/u561886982/public_html/dcgold.php on line 115
Not Working Fake
|
|
|
01/30/2014, 11:46
|
#3
|
elite*gold: 0
Join Date: Jan 2013
Posts: 1,018
Received Thanks: 424
|
Quote:
Originally Posted by hamzaozyigit
Parse error: syntax error, unexpected T_LNUMBER, expecting ')' in /home/u561886982/public_html/dcgold.php on line 115
Not Working Fake
|
WTH You saying there's no directory there Lol Dont say it fake cause it's not but it's not working i think cause they patched it.
|
|
|
01/30/2014, 15:27
|
#4
|
elite*gold: 0
Join Date: Dec 2013
Posts: 35
Received Thanks: 37
|
i have a working script..
if u want pm me
|
|
|
Similar Threads
|
[Release]Script Tool Social War And Social Empires
10/21/2014 - Facebook - 28 Replies
Release Script Tool Social Empires And Social Wars
Link Download : Tool Social Wars And Social Empires 23 july 2013 By Syawal Sajea.rar
Password : Follow Me And Massage Me http://www.facebook.com/hackerissyawal
If Help You Click Thanks :)
If You Dont Like This Thread Dont Reply And Go Die :mofo:
|
[SHARE] Dragon City, Social Wars, Social Empire PHP Script
04/10/2014 - Dragon City - 152 Replies
Here I will Share PHP code Dragon City, Social ^^ and Social Empire Wars again this I share it for free, and not for sale even though I'm sure many leecher who would sell him but there is nothing they will not sin I ^^ I mean share like this is to share and what if any one can edit or add feature please share again here ^^ sharing better kan. .. for Admin and momod if this post danger please in maybe just delete ^^ kan mengaku2 many a leecher and mensalah use these tools for who want to learn...
|
All times are GMT +2. The time now is 19:10.
|
|