You last visited: Today at 07:11
Advertisement
DarkPlanets Ammo not buy :v
Discussion on DarkPlanets Ammo not buy :v within the DarkOrbit forum part of the Browsergames category.
02/01/2015, 21:32
#1
elite*gold: 0
Join Date: Jan 2015
Posts: 34
Received Thanks: 2
DarkPlanets Ammo not buy :v
<?php
require_once '../KERNEL-DOCMS/Init.php';
if (isset($_SESSION['server1']['user']['sessionId'])) {
if (isset($_SESSION['pid']) && isset($_SESSION['uid'])) {
$shop->setId($_SESSION['uid'], $_SESSION['pid'], $Users->DataRow['premium']);
$base->setId($_SESSION['uid'], $_SESSION['pid'], $Users->DataRow['premium']);
} else {
$Users->checkSession();
$_SESSION['pid'] = $Users->DataRow['playerID'];
$_SESSION['uid'] = $Users->DataRow['ID'];
$shop->setId($_SESSION['uid'], $_SESSION['pid'], $Users->DataRow['premium']);
$base->setId($_SESSION['uid'], $_SESSION['pid'], $Users->DataRow['premium']);
}
if (isset($_POST['action']) && $_POST['action'] == "purchase") {
$shop->HangarId();
if (isset($_POST['category']) && $_POST['category'] == "ship") {
if($_POST['itemId']==13):
echo $shop->ship(70);
elseif($_POST['itemId']==12):
echo $shop->ship(49);
elseif($_POST['itemId']==11):
echo $shop->ship(69);
else:
echo $shop->ship($_POST['itemId']);
endif;
}elseif(isset($_POST['category']) && $_POST['category'] == "weapon"){
echo $shop->guns($_POST['amount'], $_POST['itemId']);
}elseif(isset($_POST['category']) && $_POST['category'] == "battery" OR $_POST['category'] == "rocket"){
echo $shop->battery($_POST['amount'], $_POST['itemId']);
}elseif(isset($_POST['category']) && $_POST['category'] == "pet" OR $_POST['itemId'] == "pet_pet10"){
echo $shop->petPet($_POST['amount'], $_POST['itemId'], $_POST['selectedName']);
}elseif(isset($_POST['category']) && $_POST['category'] == "model"){
echo $shop->model($_POST['amount'], $_POST['itemId']);
}elseif(isset($_POST['category']) && $_POST['category'] == "drone"){
$w = $base->currentDrones();
if($w>=8){
$shop->money();
$noacc = '{"result":"error","message":"You can not buy more than 8 drones","userBalance":{"uridium":'.$shop->uridium.',"credits":'.$shop->credits.'},"userShip":{"laserAmmunitionSpace":342 0,"rocketSpace":100},"isShipDumpEmpty":true,"itemI d":"","hasPet":"true","category":false}';
echo $noacc;
}else{
echo $shop->drone($_POST['itemId']);
}
}elseif(isset($_POST['category']) && $_POST['category'] == "generator"){
echo $shop->generator($_POST['amount'], $_POST['itemId']);
}elseif(isset($_POST['category']) && $_POST['category'] == "special"){
echo $shop->special($_POST['amount'], $_POST['itemId']);
}
// $data = '{"result":"success","message":"Generator purchased You have free slots in your ship. Do you want to auto-equip them or send them to your inventory?","showEquipOption":true,"userBalance":{ "uridium":'.$Users->DataRow['uri'].',"credits":'.$Users->DataRow['credits'].'},"userShip":{"laserAmmunitionSpace":0,"rocketSp ace":0},"isShipDumpEmpty":true,"itemId":"equipment _generator_speed_g3n-1010","category":"generator"}';
// echo $data;
} else {
$shop->money();
$noacc = '{"result":"error","message":"No or invalid itemId!","userBalance":{"uridium":'.$shop->uridium.',"credits":'.$shop->credits.'},"userShip":{"laserAmmunitionSpace":342 0,"rocketSpace":100},"isShipDumpEmpty":true,"itemI d":"","hasPet":"true","category":false}';
echo $noacc;
}
// $data2 = '{"result":"error","message":"No or invalid itemId!","userBalance":{"uridium":0,"credits":1005 00},"userShip":{"laserAmmunitionSpace":3420,"rocke tSpace":100},"isShipDumpEmpty":true,"itemId":"","h asPet":"true","category":false}';
// $data = '{"result":"error","message":"No or invalid itemId!","userBalance":{"uridium":'.$Users->DataRow['uri'].',"credits":'.$Users->DataRow['credits'].'},"userShip":{"laserAmmunitionSpace":0,"rocketSp ace":0},"isShipDumpEmpty":false,"userPet":{"level" :8,"fuel":43156,"maxFuel":50000},"itemId":"","cate gory":false}';
//
} else {
echo 'eyJpc0Vycm9yIjoxLCAiZXJyb3IiOnsibWVzc2FnZSI6IkVyc m9yIn19';
}
?>
why not buy lassers? Ajax/Shop.php
please help me!
02/01/2015, 21:34
#2
elite*gold: 0
Join Date: May 2014
Posts: 663
Received Thanks: 1,154
Read the script file that handles the responses from ajax/shop.php, once you have read it, understand it.
02/01/2015, 21:38
#3
elite*gold: 0
Join Date: Jan 2015
Posts: 86
Received Thanks: 26
Learn PHP
02/01/2015, 21:44
#4
elite*gold: 0
Join Date: Jan 2015
Posts: 34
Received Thanks: 2
.Niight ım just know c# :/ just please.
02/02/2015, 01:22
#5
elite*gold: 83
Join Date: May 2011
Posts: 11,029
Received Thanks: 6,037
#closed
Please use our support thread.
Similar Threads
About DarkPlanets...
10/24/2014 - DarkOrbit - 16 Replies
Well , Bigpoint shut DarkPlanets down ... sorry for this but now i banked 100€ on 1 MHH to fly Full Elite + Millions of Uridium well now they closed and they dont want to give me/us a little compensation thats unfair...
what do u think about this ?
#Greez#AltaynymousxD
DarkPlanets suks , why we lost ammo
10/14/2014 - DarkOrbit - 3 Replies
Here we can Write how many ammy we lost and this is no refund With many fail from server
7137 lost 660 k uridium 60kx4 , 60krsb , 1500 acm :rtfm:
DarkPlanets-FAQ
10/09/2014 - DarkOrbit - 6 Replies
Hello guys, since somebody suggested this in chat (And I thought it would put a lot of the "overused" questions in the trash) I decided to make a quick FAQ for this server. Let's begin.
Why can't I equip my ship?
Simply, go to your "Backpage" and find hanger. Click that and then near the bottom right is a glowing button called "allocate". Just hit that to switch to another ship, you will NOT lose any of your items, then allocate back to your previous ship. This should fix the bug. If not,...
DarkPlanets PSC
09/12/2014 - DarkOrbit - 1 Replies
When will it works ?
I have 25 E PSC On webstie "mypaysafecard"
And i want to buy uri on mhh...
Bau help pls :D
All times are GMT +2. The time now is 07:12 .