DarkOrbit Private Server INVENTORY SCRIPTS <-< that works lol
Version
1.0.3
Anyways, i've used a few hours to make an inventory system for private servers.
It doesn't have all functions yet, but it has the most vital functions.
Notice i'm going to complete it, and i've making a working shop.
Changelog
Version: 1.0.3
Version 1.0.2:
Major updates made.
You can now sell all sell-able equipment made.
Wipe all configs made, but both configs drone design (needs a fix).
All functions that ain't made gives an alertbox on use..
Version 1.0.1:
Minor design loader change to own function.
PHP Code:
private function allDesigns($base){
$like = $base[0]."_".$base[1]."%";
$stmt = $this->con->prepare("SELECT lootid FROM server_1_player_all_items WHERE lootid LIKE :like && userID=:userID && playerID=:playerID");
$stmt->bindParam(':like', $like, PDO::PARAM_STR);
$stmt->bindParam(':userID', $this->uid, PDO::PARAM_INT);
$stmt->bindParam(':playerID', $this->pid, PDO::PARAM_INT);
if($stmt->execute()){
$result = $stmt->fetchAll(PDO::FETCH_OBJ);
$this->M = array();
foreach($result as $key => $value){
array_push($this->M, $value->lootid);
}
return $this->M;
}
}
Download:
Version: 1.0.3
Version 1.0.2
Remember to download and use this database sql:
Version 1.0.1
Version 1.0.0a
VirusTotal
I have in the zip folder provided the the database i've used for the system, and the class files to make it work and database creation.
Video explaining some of the stuff:
^omg my voice in the video after tons of energy drinks xD
Somehow the voice in the end of the video f**ked up.
what i said:
When you are adding a new design to your users it doesn't automaticly right now gets added to the inventory, you would need to add them in a special column, but i will fix it. (FIXED IN v1.0.1)
Anyways go have fun with it all and feel free to ask, but i do not help with implementation .
Bugs:
Minior PET config loading bug.
Best Regards Bau