Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > DayZ
You last visited: Today at 15:34

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

Advertisement



[Tutorial]PHP Vehicle spawn Script

Discussion on [Tutorial]PHP Vehicle spawn Script within the DayZ forum part of the Shooter category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 428
Received Thanks: 38
Thumbs up [Tutorial]PHP Vehicle spawn Script

Guten Tag.
Heute zeige ich euch wie ihr den Vehicle PHP Script richtig verwendet.

Was braucht ihr ?
-Arma 2
-Arma 2 oa
-DayZ
-rMod (für mehr Fahrzeuge)
-den Script
-einen Webspace
-eure bearbeitete Map mit den Fahrzeugen (mission.sqf)

Was muss ich machen ?
1. Den PHP Script downloaden.

2. Den Script öffnen. (Am besten mit notepad++)



3. Deine Daten eingeben

localhost -> MySQL Hostname [3]
DATABASE_NAME -> Name der Datenbank der gerade aktiven Map. [5]
DB_USERNAME -> Selbe wie DATABASE_NAME [5]
DB_PASSWORD -> Das Passwort für die Datenbank (Ist für alle gleich) [4]
Diese Daten findest du im Webinterface unter DayZ-MySQL [1], achte darauf, dass du den Fernzugriff aktivierst [2] und den Hostname benutzt.[3]




Bei $fileName = muss der Pfad angegeben wo deine Mission.sqf liegt, wenn sie im gleichen Ordner liegt wie der PHP Script einfach nur

PHP Code:
$fileName 'mission.sqf'//path to your mission.sqm file 
Wenn die .sqf woanders liegt einfach den kompletten Pfad z.b.

PHP Code:
$fileName 'Ordner/mission.sqf'//path to your mission.sqm file 
Bei chance einfach wie hoch die Chance sein soll damit das Auto oder der Heli spawnt
Bei worldID die worldID auf welcher Map ihr sie haben wollt

Chernarus = 1
Lingor Island = 2
Utes = 3
Takistan = 4
Panthera = 5
Fallujah = 6
Zargabad = 7
Namalsk = 8
Celle = 9


PHP Code:
$fileName 'FILENAME.txt'//path to your mission.sqf file
$chance 0.50//Set a default chance for all vehicles spawns created
$worldID 5// Check your world table for your specific world ID.
/////////////////// 
4. Die Mission.sqf und die dbMissionParser.php auf euren Webspace hochladen.
ACHTUNG der Webspace muss PHP erlauben

5. Die dbMissionParser.php per Browser öffnen.
Bei mir ist es : *********_2.vweb13.nitrado.net/dbMissionParser.php

Es muss dann so aussehen :



//Update Namen in der Datenbank

Wenn ihr in der Datenbank noch den Namen stehen haben wollt um den gewünschten Wagen besser zu finden, einfach in der dbMissionParser.php in der Zeile
117 und 118

PHP Code:
$insertQuery "INSERT INTO `world_vehicle` (`id`, `vehicle_id`, `world_id`, `worldspace`, `chance`) 
VALUES ('
$id', '$vehicle_id', '$worldID', '$pos', '$chance');"
ändern in

PHP Code:
$insertQuery "INSERT INTO `world_vehicle` (`id`, `vehicle_id`, `world_id`, `worldspace`, `description`, `chance`) 
VALUES ('
$id', '$vehicle_id', '$worldID', '$pos', '$strings[1]', '$chance');"

Dann nur noch Server neustarten und Spaß haben

vt:
Attached Files
File Type: rar dbMissionParser.rar (1.7 KB, 12 views)
marcelo199531 is offline  
Thanks
1 User
Old 11/17/2012, 01:20   #2
 
hax.exe's Avatar
 
elite*gold: 0
Join Date: Nov 2012
Posts: 369
Received Thanks: 200
Den Script kannst du auch hier uploaden + Virus-Scan nicht vergessen (virustotal und/oder jotti)
hax.exe is offline  
Old 11/17/2012, 01:23   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 428
Received Thanks: 38
Jo mache ich morgen bin im mom leider nur am Handy.
marcelo199531 is offline  
Old 11/17/2012, 01:26   #4
 
Der-Eddy's Avatar
 
elite*gold: 400
Join Date: Nov 2008
Posts: 67,909
Received Thanks: 19,503
Quote:
Originally Posted by hax.exe View Post
Den Script kannst du auch hier uploaden + Virus-Scan nicht vergessen (virustotal und/oder jotti)
Scripts (nicht compilierte Dateien) brauchen keinen Virustotal Report
wäre ja fast so als würde man ne Text Datei da hochladen ...
Der-Eddy is offline  
Thanks
2 Users
Old 11/17/2012, 19:39   #5
 
elite*gold: 0
Join Date: Jul 2009
Posts: 428
Received Thanks: 38
Update.
Habe VT und die Datei eingefügt.
marcelo199531 is offline  
Reply


Similar Threads Similar Threads
Gebäude Spawn Script
10/14/2012 - DayZ - 1 Replies
Hi, wollte mal fragen ob jemand vielleicht ein Script zum spawnen von Gebäuden hat?
[S]Vehicle mark Script
10/07/2012 - DayZ - 3 Replies
Wie im Titel schon steht suche ich ein Vehicle mark Script für den AJ hack :)
[S] Funktionierenden Vehicle Script
09/16/2012 - DayZ - 5 Replies
Hallo. Ich suche einen vernünftigen vehicle spawn script, der auch funktionieren sollte:)
about CE mass spawn script.
06/30/2010 - Dekaron - 13 Replies
i have one that i got from here on the forums. the auto update scripts. but i went to the 60 dg. and it doesnt really mass spawn them it spawns one like every other second. i was looking right now to see if there is a way to fix it. but i have to get off the computer :/. uhh can some one give me a link to a mass spawn script or tell me what to do? but if i remember right you cant do mass spawn on CE. only editing the files when you unpack dekaron. CRC stuff. idk how to do that. well anyways...
CE vac 3 in 1 script = mass spawn ?
04/20/2010 - Dekaron - 8 Replies
Sup guys, Im using the 3 in 1 vac script from the topic with all the hack scripts, but now ive been doing crespo runs by dual clienting and I have noticed that it also spawns a lot of ergo laidens. While vaccing them all and laiden. Now thats all good and nice but after it has reached a certain amount of boss adds the ergo's start to attack me... And thats not really the ideal situation. So yeah I died and as I went back in b/c my other char was still in the dg aswell my vac stopped...



All times are GMT +2. The time now is 15:34.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.