• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. Overige
  5. Archief
  6. Request

Forum

  • Fallen Kingdom Game

    gozmeu 27 juli 2026 om 23:49
  • Crimora.nl

    Dennii 11 juli 2026 om 13:13
  • RPG game gebouwd met AI

    zwpgangster 9 juli 2026 om 11:25
  • (Verkoop) Criminals

    Syntax 5 juli 2026 om 13:22
  • Het Grote Vibe Code Topic

    Syntax 30 juni 2026 om 11:54
  • Ictscripters Chat

    Jeffrey.Hoekman 26 juni 2026 om 16:21
  • Het oorspronkelijke Criminals Script

    Jeroen.G 24 juni 2026 om 09:21
  • StraatBaas is back, maar hoe?!

    Syntax 17 juni 2026 om 10:28

Marktplaats

  • 303 Nieuwe Domeinnamen Juli 2026

    shiga 1 augustus 2026 om 13:56
  • Straatbaas.eu – complete Nederlandstalige en Engelstalige online maffia-RPG

    Syntax 28 juli 2026 om 15:47
  • 306 Nieuwe Domeinnamen Juni 2026

    shiga 1 juli 2026 om 13:39

Toon 10x10 ipv 3x3

  • gamecontrol
  • 13 december 2009 om 20:52
  • Closed
  • gamecontrol
    Professional
    Berichten
    699
    • 13 december 2009 om 20:52
    • #1

    In criminolz source worden nu 3x3 coordinaten getoond om te kunnen bouwen. Maar ik wil deze map vergroten zodat er 10x10 locaties direct zichtbaar zijn, hoe kan ik dit veranderen? (ik denk dat dit script nodig is)

    PHP
    <?php
                   $empty = 'empty' . @$_SESSION['empty'];
      if(empty($_GET['x'])) {
        $_GET['x'] = 0;
      }
    
    
      if(empty($_GET['y'])) {
        $_GET['y'] = 0;
      }
    echo'
    <div id="content_top"> </div>
    <script type="text/javascript">
    var x = 0;
    var y = 0;
    function gotox(value) {
      destination = (250 - value) * -1;
      if(destination <= 249) {
        if(destination >= -249) {
          if(destination != x) {
            x = destination;
            sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
          }
        } else if(x != -249) {
           x = -249;
          sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
        }
      } else if(x != 249) {
         x = 249;
        sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
      }
    }
    
    
    function gotoy(value) {
      destination = (250 - value) * -1;
      if(destination <= 249) {
        if(destination >= -249) {
          if(destination != y) {
            y = destination;
            sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
          }
        } else if(y != -249) {
          y = -249;
          sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
        }
      } else if(y != 249) {
         y = 249;
        sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');
      }
    }
    </script>
    		<div id="content">
    
    
    <h1 class="titel">Plattegrond van ' . $steden[$own['stad']] . '</h1>
      Hier staan jouw woningen en woningen geplaatst door anderen. Klik op een woning om naar het profiel te gaan, waar je de woningen kunt aanvallen of repareren. Klik op een stukje grond om er een woning te plaatsen.<br /><br />
    
    
      <center>Ga naar: <input type="text" onkeyup="gotox(value)" size="3" value="250" class="input"> x <input type="text" onkeyup="gotoy(value)" size="3" value="250" class="input"></center>
    
    
      <div style="float: left"><a href="#" onclick="if(y > -249) {sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + (y - 1) + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');y--;} return false;"><img src="images/map/arrow_up.gif" border="0"></a><br /><br /><a href="#" onclick="if(y < 249) {sendReq(\'ajax/townmap.php?x=\' + x + \'&y=\' + (y + 1) + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');y++;} return false;"><img src="images/map/arrow_down.gif" border="0"></a></div>
    <div id="map">
      <table cellpadding="0" cellspacing="0" align="center">';
      $xcenter = 250;
      $ycenter = 250;
      $i = $ycenter - 1;
      while($i <= $ycenter + 1) {
        echo'
             <tr>
               <td width="30">' . $i . '</td>';
               $j = $xcenter - 1;
               while($j <= $xcenter + 1) {
                 echo'
                 <td style="background: url(images/map/' . $empty . '.jpg) no-repeat; width: 100px; height: 100px;">';
                 $house = mysql_fetch_query("SELECT soort, eigenaar, id FROM woningen WHERE geplaatst = 'Ja' AND stad = '" . $own['stad'] . "' AND coordinaten_y = '" . $i . "' AND coordinaten_x = '" . $j . "'");
                 if(!empty($house)) {
                   $woning = mysql_fetch_query("SELECT naam FROM woningenmarkt WHERE id = '" . $house['soort'] . "'");
                   if($house['eigenaar'] == $own['login']) {
                     $plaatje = 'house_' . ($house['soort'] - 1) . 'stars_own.gif';
                     $titel   = 'Jouw ' . strtolower($woning['naam']);
                   } else {
                     $plaatje = 'house_' . ($house['soort'] - 1) . 'stars.gif';
                     $titel   = $woning['naam'] . ' van ' . $house['eigenaar'];
                   }
                   echo'<a href="index.php?p=woning&id=' . $house['id'] . '"><img src="images/map/' . $plaatje . '" title="' . $titel . '" border="0"></a>';
                 } else {
                   echo'<a href="index.php?p=build&x=' . $j . '&y=' . $i . '"><img src="images/map/' . $empty . '.jpg" border="0"></a>';
                 }
                 echo'</td>';
                 $j++;
               }
               echo'
             </tr>';
             $i++;
      }
      echo'
      
      <tr>
      <td>&nbsp;</td>';
      $j = $xcenter - 1;
      while($j <= $xcenter + 1) {
        echo'<td align="center">' . $j . '</td>';
        $j++;
      }
      echo'
      </tr>
      </table>
      </div>
      <table align="center">
      <tr>
      <td align="center"><a href="#" onclick="if(x > -249) {sendReq(\'ajax/townmap.php?x=\' + (x - 1) + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');x--;} return false;"><img src="images/map/arrow_left.gif" border="0"></a></td>
      <td align="center"><a href="#" onclick="if(x < 249) {sendReq(\'ajax/townmap.php?x=\' + (x + 1) + \'&y=\' + y + \'&ajaxsession=' . rand(10000, 99999) . '\', \'map\');x++;} return false;"><img src="images/map/arrow_right.gif" border="0"></a></td>
      </tr>
      </table><br />
      <a href="index.php?p=listbuildings&owner=' . $own['id'] . '">Mijn woningen weergeven</a>';
      echo'
    		</div>
    		<div id="content_bottom"> </div>';
    ?>
    Toon Meer

    Promoot je site gratis op http://www.gamevote.nl

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Quanscient ontvangt €10M om AI- en kwantum-native hardware engineering te bevorderen - Tech.eu

    ICTscripters 27 mei 2026 om 12:03
  • Datalek bij leverancier Canvas - Universiteit van Amsterdam

    ICTscripters 10 mei 2026 om 12:03
  • Data privacy in 2026: Hoe de naleving van GDPR verandert

    ICTscripters 8 mei 2026 om 12:16

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design