Jump to content

nightmare

Collaborator
  • Posts

    243
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by nightmare

  1. Hi,

     

    i'm too lazy to go downwards with ladders and stairs,
    so i  made a little script to use a parachute.

     

     

    https://www.youtube.com/watch?v=iIrm7Tp1m7Y

     

     

     

    1.)   Dowload

     

     

     

    2.)  unpack  "baseJump.zip" and copy the "baseJump" folder to your "/MPMissions/DayZ_Epoch.Map" folder.

     

     

     

    3.)  open the "init.sqf" in your mission folder and add following on the top, after:   call compile preprocessFileLineNumbers "server_traders.sqf";

     

         ( optional ) if you have a "custom" compiles.sqf, you can put it there instead.

    call compile preprocessFileLineNumbers "baseJump\init.sqf";  

    enjoy  &&  have fun ;)

     

     

     

    ****** BaseJump Script  ******

     

    Author: Nightmare @ http://n8m4re.de
     

     

     

    included 3rdParty scripts / snippets

    - FNC_GetPos   by  Author: http://dayzepoch.com

    - fn_halo.sqf      by  Author: Karel Moricky , Modified: http://dayzepoch.com | Nightmare

  2. How do I go about adding epoch price list to the existing rdy2go xampp installation? Just not sure where to drop the folder since many of the files have the same name as index, setup,..etc.

    Oh and BIG THANKS for the still supporting this!!! Other then that it is working GREAT! After looking for a control panel to install so admins help administrate the server such as restarting the server, adjusting prices, this tool has become invaluable!! Sent you some beer change!!

    RC_Robio 

     

     

    Hi,

     

    you can create a new folder in "/xampp/htdocs/" and name it e.g. "pricelist".      (  /xampp/htdocs/pricelist  )

    and then copy all files of the pricelist in this folder. 

     

     

    Webbrowser-URL  --> " http://localhost/pricelist/index.php "

     

     

     

    THX for the Beers! ;)

     

    guinness.jpg

  3. Ok then. That clarifies it. It also means that for people like me, that use a permanent plot pole mod that uses the UID (PlayerUID) for all buildables now have bases that can no longer be maintained....

    thats right, and also you will get a new character

  4. I don't use Infistar so I'm guessing that it does the same thing as the Epoch Admin Tools and it uses UID, not PlayerID, to determine who is an admin so there shouldn't be any problems with that.

    sorry i mean PlayerUID

    as example my UID:

    PlayerUID: 16953158 (OLD)

    now with the new Beta:

    PlayerUID: 76561197983663439 (steamID)

  5. Yes, but I'm guessing we'll need to use these new id's for things like infistar and other mods that use player ID as BetterDeadThanZed mentioned....?

    this will working without an issue.

    all what to do, is change your Player ID in the config with your Steam ID...

  6. Hmm... will "PlayerID is now SteamID" require any sort of database changes? What about mods that use PlayerID?

    nothing should happen. is only a few more numbers.

    all "beta 125402" players will get a new character in database

    Beta build 125402 is working with Epoch 1.0.5.1

  7. table names changed as noted, capitalization is intact. 

     

    Gamemap set to 13 for napf, instance set to 24, tool is now a white screen.

     

    EDIT: was missing a ; objects showing now, but no players

     

     

    please post a dump from your database, i will have a look..

     

     

     

    Still have the issue with rcon

     

    mhmm...

     

    have no idea what can be wrong, it works for me on xampp also on linux....

     

    ( did you click on the "refresh" button ? )

  8. what about my issue with the player list with rcon not showing

     

    uaing xampp on a dedicated box and remote desktop connection says UDP is open firewall is disabled and not Anti-Virus installed on box.

     

    i am able to connect to rcon with dart and emp but not the webrcon in your web application.

     

    my info on my box is in the previous page

     

     

     

     

    please try this: READY2GO DOWNLOAD ( with Apache2 WebServer from  xampp-portable-win32-1.8.3-4-VC11 build )

     

    ** i've tested it and the rcon works for me on this.

  9.  

    installed and connected to DB, but no data shows, and i'm unable to change anything. I've covered all 35 pages here without any resolution. server is 1.0.4.2 on a dedicated server i'm hosting. below is my config file. not sure why but it doesn't even pick up the custom trader sets that i have. 

     

     

     

    1.)

    The the database tablenames should look like the following. ( If not, please rename )

    • Character_DATA
    • Object_DATA
    • Player_DATA
    • Player_LOGIN
    • Traders_DATA

     

     

    2.)

    The  "$CONF['INSTANCE']" number in the "config.php" must be the same like the "instanceID" of your  "init.sqf "  

     

     

     

     

     

    3.)

    if players not showing: please check in your "Character_DATA" table wether column "last_updated" exists

     

    if not, then please execute this SQL- command:

    ALTER TABLE `Character_DATA` 
          ADD COLUMN `last_updated` TIMESTAMP NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP AFTER `Infected`;

    4.)

    if objects not showing:  please check your "Object_DATA" table wether column "LastUpdated" exists.

     

    if not, then please execute this SQL- command:

    ALTER TABLE `Object_DATA` 
         ADD COLUMN `LastUpdated` TIMESTAMP NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP AFTER `Damage`;

    5.)

    if objects not showing and  "Object_DATA" table has the column "last_updated" .

     

    then please execute this SQL- command:

    ALTER TABLE `Object_DATA`
        CHANGE COLUMN `last_updated` `LastUpdated` TIMESTAMP NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP AFTER `Damage`;
  10. How do I update it so it shows the new traders

     

    you have to update this epoch tables:

     

    - trader_tids

     

    - server_traders

     

     

     

    how can i make it so it only shows items sold on the instance I'm running?

     

    copy this into "price.func.php"

     

    <?php
    /*****************
    EpochPrices by Nightmare
    http://n8m4re.de
    ******************/
    
    $INSTANCE=17;
    
    function selectTraderData($WHERE){
    global $db;
    	$result = $db->query("SELECT `id`,`desc` FROM `server_traders` ");	
    	$row = array();
    	if ( $result->num_rows !== 0 ) {
    		while ( $row[] = $result->fetch_assoc() );			
    		return $row;	
    	} else {
    		return false;
    	}
    }
    
    
    function selectStockData($WHERE){
    global $db;
    	$result = $db->query("SELECT `Traders_DATA`.`item`,`Traders_DATA`.`qty`,`Traders_DATA`.`buy`,`Traders_DATA`.`sell`,`Traders_DATA`.`tid`,`trader_tids`.`name`,`trader_tids`.`trader`,`server_traders`.`id`,`server_traders`.`instance`,`server_traders`.`desc`FROM `Traders_DATA` INNER JOIN `trader_tids` ON ( `trader_tids`.`id` = `Traders_DATA`.`tid` ) INNER JOIN `server_traders` ON ( `server_traders`.`id` = `trader_tids`.`trader` ) ". $WHERE ." ORDER BY `Traders_DATA`.`item` ASC");
    	$row = array();
    	if ( $result->num_rows !== 0 ) {
    		while ( $row[] = $result->fetch_assoc() );			
    		return $row;	
    	} else {
    		return false;
    	}
    }
    
    
    function priceList() {
    global $db,$INSTANCE;
    	if (isset($_GET['show']) && !empty($_GET['show'])){			
    				echo '<h3>'.$_GET['show'].'</h3>';				
    			$WHERE = "WHERE `trader_tids`.`name`= '".secure($_GET['show'])."' AND `server_traders`.`instance`=".(int)$INSTANCE." ";
    			$row = @array_filter( selectStockData($WHERE) );			
    			for ( $i=0; $i < count ( $row ); $i++ ) {
    					
    					$item	= json_decode($row[$i]['item']); 
    					$buy	= json_decode($row[$i]['buy']); 
    					$sell	= json_decode($row[$i]['sell']);	
    
    					$itemImg = '<img height="25" src="images/nopic.png"/>';								
    					if ( image($item[0],'items') !== 'images/nopic.png' )		$itemImg = '<img height="25" src="'.image( $item[0] ,'items').'"/>';				
    					if ( image($item[0],'objects') !== 'images/nopic.png' )		$itemImg = '<img height="25" src="'.image( $item[0] ,'objects').'"/>';	
    					$model = str_replace('Skin_','',$item[0]);
    					if ( image($model,'models') !== 'images/nopic.png' ) 		$itemImg = '<img height="80" src="'.image( $model ,'models').'"/>';
    					$buyImg = 'images/nopic.png';
    					if ( image($buy[1],'items') !== 'images/nopic.png' ) 	$buyImg = image($buy[1],'items');	
    
    					$sellImg = 'images/nopic.png';
    					if ( image($sell[1],'items') !== 'images/nopic.png' ) 	$sellImg = image($sell[1],'items');
    					echo '<tr class="list">
    							<td>'.$row[$i]['desc'].'</td>
    							<td>'.@$itemImg.'<br/><span class="price">'.$item[0].'</span></td>
    							<td><span class="price" title="'.$buy[1].'">'.$buy[0].' x </span> <img height="30" src="'.@$buyImg.'" title="'.$buy[1].'" /></td>
    							<td><span class="price" title="'.$sell[1].'">'.$sell[0].' x </span> <img height="30" src="'.@$sellImg.'" title="'.$sell[1].'"/></td>
    						</tr>';
    			}	
    	}
    
    }
    
    
    function selectCategory() {
    global $db;
    $result = $db->query("SELECT `trader_tids`.`name` FROM `trader_tids` INNER JOIN `Traders_DATA` ON `Traders_DATA`.`tid` = `trader_tids`.`id` GROUP BY `trader_tids`.`name` ORDER BY `trader_tids`.`name` ASC ");
    if ( $result->num_rows !== 0 ) {
    		while ( $row = $result->fetch_assoc() ){
    			echo '<li><a href="index.php?show='.$row['name'].'" >'.$row['name'].'</a></li>';
    		}
    	}
    }
    
    ?>
    

×
×
  • Create New...