Suche im Forum:
Suchen


« Vorheriges Thema anzeigen :: Nächstes Thema anzeigen »  
Autor Nachricht
Beitrag08.08.2008 um 14:15 (UTC)    
Titel: Code geht nicht :(

Mein Code geht dummer weise nicht
Code:
<script type='text/javascript'>

function berechne()
{
var ka1 = document.Seafight.k1.value;
var ka2 = document.Seafight.k2.value;
var ka3 = document.Seafight.k3.value;
var ka4 = document.Seafight.k4.value;
var ka5 = document.Seafight.k5.value;
var ka6 = document.Seafight.k6.value;
var ka7 = document.Seafight.k7.value;
var ka8 = document.Seafight.k8.value;

var mun = document.Seafight.muni.value;
var kanw = document.Seafight.kan.value;
var muk = 0;

if (mun == 20)
{
  muk = muk + 30;
}
else
{
  if (mun == 14)
  {
    muk = muk + 25;
  }
  else
  {
    if (mun == 10)
    {
      muk = muk + 20;
    }
    else
    {
      if (mun == 6)
      {
        muk = muk + 15;
      }
      else
      {
        if (mun == 4)
        {
          muk = muk + 10;
        }
        else
        {
          muk = muk + 0;
        }
      }
    }
  }
}

var kk1 = (Math.round((0.25 + kanw*1) * 100) / 100);
var kk2 = (Math.round((0.29 + kanw*1) * 100) / 100);
var kk3 = (Math.round((0.35 + kanw*1) * 100) / 100);
var kk4 = (Math.round((0.38 + kanw*1) * 100) / 100);
var kk5 = (Math.round((0.43 + kanw*1) * 100) / 100);
var kk6 = (Math.round((0.45 + kanw*1) * 100) / 100);
var kk7 = (Math.round((0.75 + kanw*1) * 100) / 100);
var kk8 = (Math.round((0.75 + kanw*1) * 100) / 100);


var kz1 = (kk1*1 * ka1*1 * mun*1);
var kz2 = (kk2*1 * ka2*1 * mun*1);
var kz3 = (kk3*1 * ka3*1 * mun*1);
var kz4 = (kk4*1 * ka4*1 * mun*1);
var kz5 = (kk5*1 * ka5*1 * mun*1);
var kz6 = (kk6*1 * ka6*1 * mun*1);
var kz7 = (kk7*1 * ka7*1 * mun*1);
var kz8 = (kk8*1 * ka8*1 * mun*1);

var bo1 = "Red Korsar";
var bo2 = "Los Renegados";
var bo3 = "Los Renegados 3-Master";
var bo4 = "Wild 13";
var bo5 = "Tortuga Gang";
var bo6 = "Sinclair's Men";
var bo7 = "Sinclair's Men 3-Master";
var bo8 = "Rat Pack";
var bo9 = "Rat Pack 3-Master";
var bo10 = "Los Amistadores";
var bo11 = "Calico's Men";
var bo12 = "Morgan's Buccaneer";
var bo13 = "Flying Dutchman";
var bo14 = "Tiamat";
var bo15 = "Trinidad";
var bo16 = "Santa Lucia";
var bo17 = "Esmeralda";
var bo18 = "Almirante";

var bop1 = 10955;   // Gold f&uuml;r Red Korsar
var bop2 = 40455;   // Gold f&uuml;r Los Renegados
var bop3 = 42172;   // Gold f&uuml;r Los Renegados 3-Master
var bop4 = 65013;  // Gold f&uuml;r Wild 13
var bop5 = 59123;  // Gold f&uuml;r Tortuga Gang
var bop6 = 106833;  // Gold f&uuml;r Sinclair's Men
var bop7 = 110146;   // Gold f&uuml;r Sinclair's Men 3-Master
var bop8 = 136533;   // Gold f&uuml;r Rat Pack
var bop9 = 140432;   // Gold f&uuml;r Rat Pack 3-Master
var bop10 = 157060; // Gold f&uuml;r Los Amistadores
var bop11 = 210767; // Gold f&uuml;r Calico's Men
var bop12 = 265284; // Gold f&uuml;r Morgan's Buccaneer
var bop13 = 0;  // Gold f&uuml;r Flying Dutchman
var bop14 = 0;  // Gold f&uuml;r Tiamat
var bop15 = 300000;  // Gold f&uuml;r Trinidad
var bop16 = 410000;  // Gold f&uuml;r Santa Lucia
var bop17 = 520000;  // Gold f&uuml;r Esmeralda
var bop18 = 0;  // Gold f&uuml;r Almirante

var NPC1 = 2159;    // HPs der Los Red Korsar
var NPC2 = 4768;    // HPs der Los Renegados
var NPC3 = 9786;   // HPs der Los Renegados 3-Master
var NPC4 = 18000;   // HPs der Wild 13
var NPC5 = 19972;   // HPs der Tortuga Gang
var NPC6 = 24964;   // HPs der Sinclair's Men
var NPC7 = 29894;    // HPs der Sinclair's Men 3-Master
var NPC8 = 34561;    // HPs der Rat Pack
var NPC9 = 39519;    // HPs der Rat Pack 3-Master
var NPC10 = 36606;  // HPs der Los Amistadores
var NPC11 = 46643;  // HPs der Calico's Men
var NPC12 = 52535;  // HPs der Morgan's Buccaneer
var NPC13 = 414394;  // HPs der Flying Dutchman
var NPC14 = 1100000;  // HPs der Tiamat
var NPC15 = 75000;  // HPs der Trinidad
var NPC16 = 95000;  // HPs der Santa Lucia
var NPC17 = 110000;  // HPs der Esmeralda
var NPC18 = 2735000;  // HPs der Almirante

var bep1 = 2;   // EP f&uuml;r Red Korsar
var bep2 = 6;   // EP f&uuml;r Los Renegados
var bep3 = 6;   // EP f&uuml;r Los Renegados 3-Master
var bep4 = 10;  // EP f&uuml;r Wild 13
var bep5 = 13;  // EP f&uuml;r Tortuga Gang
var bep6 = 16;  // EP f&uuml;r Sinclair's Men
var bep7 = 16;   // EP f&uuml;r Sinclair's Men 3-Master
var bep8 = 18;   // EP f&uuml;r Rat Pack
var bep9 = 18;   // EP f&uuml;r Rat Pack 3-Master
var bep10 = 25; // EP f&uuml;r Los Amistadores
var bep11 = 98; // EP f&uuml;r Calico's Men
var bep12 = 117; // EP f&uuml;r Morgan's Buccaneer
var bep13 = 1965;  // EP f&uuml;r Flying Dutchman
var bep14 = 5050;  // EP f&uuml;r Tiamat
var bep15 = 50;  // EP f&uuml;r Trinidad
var bep16 = 176;  // EP f&uuml;r Santa Lucia
var bep17 = 195;  // EP f&uuml;r Esmeralda
var bep18 = 17422;  // EP f&uuml;r Almirante

var ergebnis = (ka1*1 + ka2*1 + ka3*1 + ka4*1 + ka5*1 + ka6*1 + ka7*1+ka8*1);
var schuss = (kz1*1 + kz2*1 + kz3*1 + kz4*1 + kz5*1 + kz6*1 + kz7*1+kz8*1);

var ks = (muk*1 * ergebnis*1);

var b1 = (Math.ceil(NPC1*1 / schuss*1));
var b2 = (Math.ceil(NPC2*1 / schuss*1));
var b3 = (Math.ceil(NPC3*1 / schuss*1));
var b4 = (Math.ceil(NPC4*1 / schuss*1));
var b5 = (Math.ceil(NPC5*1 / schuss*1));
var b6 = (Math.ceil(NPC6*1 / schuss*1));
var b7 = (Math.ceil(NPC7*1 / schuss*1));
var b8 = (Math.ceil(NPC8*1 / schuss*1));
var b9 = (Math.ceil(NPC9*1 / schuss*1));
var b10 = (Math.ceil(NPC10*1 / schuss*1));
var b11 = (Math.ceil(NPC11*1 / schuss*1));
var b12 = (Math.ceil(NPC12*1 / schuss*1));
var b13 = (Math.ceil(NPC13*1 / schuss*1));
var b14 = (Math.ceil(NPC14*1 / schuss*1));
var b15 = (Math.ceil(NPC15*1 / schuss*1));
var b16 = (Math.ceil(NPC16*1 / schuss*1));
var b17 = (Math.ceil(NPC17*1 / schuss*1));
var b18 = (Math.ceil(NPC18*1 / schuss*1));

var bs1 = b1*1;
var bs2 = b2*1;
var bs3 = b3*1;
var bs4 = b4*1;
var bs5 = b5*1;
var bs6 = b6*1;
var bs7 = b7*1;
var bs8 = b8*1;
var bs9 = b9*1;
var bs10 = b10*1;
var bs11 = b11*1;
var bs12 = b12*1;
var bs13 = b13*1;
var bs14 = b14*1;
var bs15 = b15*1;
var bs16 = b16*1;
var bs17 = b17*1;
var bs18 = b18*1;

var kb1 = (bs1*1 * ks*1);
var kb2 = (bs2*1 * ks*1);
var kb3 = (bs3*1 * ks*1);
var kb4 = (bs4*1 * ks*1);
var kb5 = (bs5*1 * ks*1);
var kb6 = (bs6*1 * ks*1);
var kb7 = (bs7*1 * ks*1);
var kb8 = (bs8*1 * ks*1);
var kb9 = (bs9*1 * ks*1);
var kb10 = (bs10*1 * ks*1);
var kb11 = (bs11*1 * ks*1);
var kb12 = (bs12*1 * ks*1);
var kb13 = (bs13*1 * ks*1);
var kb14 = (bs14*1 * ks*1);
var kb15 = (bs15*1 * ks*1);
var kb16 = (bs16*1 * ks*1);
var kb17 = (bs17*1 * ks*1);
var kb18 = (bs18*1 * ks*1);

var gew1 = (bop1*1 - kb1*1);
var gew2 = (bop2*1 - kb2*1);
var gew3 = (bop3*1 - kb3*1);
var gew4 = (bop4*1 - kb4*1);
var gew5 = (bop5*1 - kb5*1);
var gew6 = (bop6*1 - kb6*1);
var gew7 = (bop7*1 - kb7*1);
var gew8 = (bop8*1 - kb8*1);
var gew9 = (bop9*1 - kb9*1);
var gew10 = (bop10*1 - kb10*1);
var gew11 = (bop11*1 - kb11*1);
var gew12 = (bop12*1 - kb12*1);
var gew13 = (bop13*1 - kb13*1);
var gew14 = (bop14*1 - kb14*1);
var gew15 = (bop15*1 - kb15*1);
var gew16 = (bop16*1 - kb16*1);
var gew17 = (bop17*1 - kb17*1);
var gew18 = (bop18*1 - kb18*1);

var gew19 = (bep1*1);
var gew20 = (bep2*1);
var gew21 = (bep3*1);
var gew22 = (bep4*1);
var gew23 = (bep5*1);
var gew24 = (bep6*1);
var gew25 = (bep7*1);
var gew26 = (bep8*1);
var gew27 = (bep9*1);
var gew28 = (bep10*1);
var gew29 = (bep11*1);
var gew30 = (bep12*1);
var gew31 = (bep13*1);
var gew32 = (bep14*1);
var gew33 = (bep15*1);
var gew34 = (bep16*1);
var gew35 = (bep17*1);
var gew36 = (bep18*1);

document.Seafight.ergebnis.value=ergebnis;
document.Seafight.schuss.value=schuss;

document.Seafight.bo1.value=bo1;
document.Seafight.bo2.value=bo2;
document.Seafight.bo3.value=bo3;
document.Seafight.bo4.value=bo4;
document.Seafight.bo5.value=bo5;
document.Seafight.bo6.value=bo6;
document.Seafight.bo7.value=bo7;
document.Seafight.bo8.value=bo8;
document.Seafight.bo9.value=bo9;
document.Seafight.bo10.value=bo10;
document.Seafight.bo11.value=bo11;
document.Seafight.bo12.value=bo12;
document.Seafight.bo13.value=bo13;
document.Seafight.bo14.value=bo14;
document.Seafight.bo15.value=bo15;
document.Seafight.bo16.value=bo16;
document.Seafight.bo17.value=bo17;
document.Seafight.bo18.value=bo18;

document.Seafight.NPC1.value=NPC1;
document.Seafight.NPC2.value=NPC2;
document.Seafight.NPC3.value=NPC3;
document.Seafight.NPC4.value=NPC4;
document.Seafight.NPC5.value=NPC5;
document.Seafight.NPC6.value=NPC6;
document.Seafight.NPC7.value=NPC7;
document.Seafight.NPC8.value=NPC8;
document.Seafight.NPC9.value=NPC9;
document.Seafight.NPC10.value=NPC10;
document.Seafight.NPC11.value=NPC11;
document.Seafight.NPC12.value=NPC12;
document.Seafight.NPC13.value=NPC13;
document.Seafight.NPC14.value=NPC14;
document.Seafight.NPC15.value=NPC15;
document.Seafight.NPC16.value=NPC16;
document.Seafight.NPC17.value=NPC17;
document.Seafight.NPC18.value=NPC18;

document.Seafight.bs1.value=bs1;
document.Seafight.bs2.value=bs2;
document.Seafight.bs3.value=bs3;
document.Seafight.bs4.value=bs4;
document.Seafight.bs5.value=bs5;
document.Seafight.bs6.value=bs6;
document.Seafight.bs7.value=bs7;
document.Seafight.bs8.value=bs8;
document.Seafight.bs9.value=bs9;
document.Seafight.bs10.value=bs10;
document.Seafight.bs11.value=bs11;
document.Seafight.bs12.value=bs12;
document.Seafight.bs13.value=bs13;
document.Seafight.bs14.value=bs14;
document.Seafight.bs15.value=bs15;
document.Seafight.bs16.value=bs16;
document.Seafight.bs17.value=bs17;
document.Seafight.bs18.value=bs18;

document.Seafight.muk.value=muk;
document.Seafight.ks.value=ks;

document.Seafight.kb1.value=kb1;
document.Seafight.kb2.value=kb2;
document.Seafight.kb3.value=kb3;
document.Seafight.kb4.value=kb4;
document.Seafight.kb5.value=kb5;
document.Seafight.kb6.value=kb6;
document.Seafight.kb7.value=kb7;
document.Seafight.kb8.value=kb8;
document.Seafight.kb9.value=kb9;
document.Seafight.kb10.value=kb10;
document.Seafight.kb11.value=kb11;
document.Seafight.kb12.value=kb12;
document.Seafight.kb13.value=kb13;
document.Seafight.kb14.value=kb14;
document.Seafight.kb15.value=kb15;
document.Seafight.kb16.value=kb16;
document.Seafight.kb17.value=kb17;
document.Seafight.kb18.value=kb18;

document.Seafight.gew1.value=gew1;
document.Seafight.gew2.value=gew2;
document.Seafight.gew3.value=gew3;
document.Seafight.gew4.value=gew4;
document.Seafight.gew5.value=gew5;
document.Seafight.gew6.value=gew6;
document.Seafight.gew7.value=gew7;
document.Seafight.gew8.value=gew8;
document.Seafight.gew9.value=gew9;
document.Seafight.gew10.value=gew10;
document.Seafight.gew11.value=gew11;
document.Seafight.gew12.value=gew12;
document.Seafight.gew13.value=gew13;
document.Seafight.gew14.value=gew14;
document.Seafight.gew15.value=gew15;
document.Seafight.gew16.value=gew16;
document.Seafight.gew17.value=gew17;
document.Seafight.gew18.value=gew18;

document.Seafight.gew19.value=gew19;
document.Seafight.gew20.value=gew20;
document.Seafight.gew21.value=gew21;
document.Seafight.gew22.value=gew22;
document.Seafight.gew23.value=gew23;
document.Seafight.gew24.value=gew24;
document.Seafight.gew25.value=gew25;
document.Seafight.gew26.value=gew26;
document.Seafight.gew27.value=gew27;
document.Seafight.gew28.value=gew28;
document.Seafight.gew29.value=gew29;
document.Seafight.gew30.value=gew30;
document.Seafight.gew31.value=gew31;
document.Seafight.gew32.value=gew32;
document.Seafight.gew33.value=gew33;
document.Seafight.gew34.value=gew34;
document.Seafight.gew35.value=gew35;
document.Seafight.gew36.value=gew36;

}
//-->
</SCRIPT>
Beitrag08.08.2008 um 14:16 (UTC)    
Titel:

is das für das browsergamne seafight
______________


Zuletzt bearbeitet von krinsen am 08.08.2008, 15:17, insgesamt einmal bearbeitet
Beitrag08.08.2008 um 14:22 (UTC)    
Titel:

jup ich habe das jetzt ein bissel umgeändert :
Code:
<script type='text/javascript'>
<!--
function berechne()
{
var ka1 = document.Seafight.k1.value;
var ka2 = document.Seafight.k2.value;
var ka3 = document.Seafight.k3.value;
var ka4 = document.Seafight.k4.value;
var ka5 = document.Seafight.k5.value;
var ka6 = document.Seafight.k6.value;
var ka7 = document.Seafight.k7.value;
var ka8 = document.Seafight.k8.value;

var mun = document.Seafight.muni.value;
var kanw = document.Seafight.kan.value;
var muk = 0;

if (mun == 20)
{
  muk = muk + 30;
}
else
{
  if (mun == 14)
  {
    muk = muk + 25;
  }
  else
  {
    if (mun == 10)
    {
      muk = muk + 20;
    }
    else
    {
      if (mun == 6)
      {
        muk = muk + 15;
      }
      else
      {
        if (mun == 4)
        {
          muk = muk + 10;
        }
        else
        {
          muk = muk + 0;
        }
      }
    }
  }
}

var kk1 = (Math.round((0.25 + kanw*1) * 100) / 100);
var kk2 = (Math.round((0.29 + kanw*1) * 100) / 100);
var kk3 = (Math.round((0.35 + kanw*1) * 100) / 100);
var kk4 = (Math.round((0.38 + kanw*1) * 100) / 100);
var kk5 = (Math.round((0.43 + kanw*1) * 100) / 100);
var kk6 = (Math.round((0.45 + kanw*1) * 100) / 100);
var kk7 = (Math.round((0.75 + kanw*1) * 100) / 100);
var kk8 = (Math.round((0.75 + kanw*1) * 100) / 100);


var kz1 = (kk1*1 * ka1*1 * mun*1);
var kz2 = (kk2*1 * ka2*1 * mun*1);
var kz3 = (kk3*1 * ka3*1 * mun*1);
var kz4 = (kk4*1 * ka4*1 * mun*1);
var kz5 = (kk5*1 * ka5*1 * mun*1);
var kz6 = (kk6*1 * ka6*1 * mun*1);
var kz7 = (kk7*1 * ka7*1 * mun*1);
var kz8 = (kk8*1 * ka8*1 * mun*1);

var bo1 = "Red Korsar";
var bo2 = "Los Renegados";
var bo3 = "Los Renegados 3-Master";
var bo4 = "Wild 13";
var bo5 = "Tortuga Gang";
var bo6 = "Sinclair's Men";
var bo7 = "Sinclair's Men 3-Master";
var bo8 = "Rat Pack";
var bo9 = "Rat Pack 3-Master";
var bo10 = "Los Amistadores";
var bo11 = "Calico's Men";
var bo12 = "Morgan's Buccaneer";
var bo13 = "Flying Dutchman";
var bo14 = "Tiamat";
var bo15 = "Trinidad";
var bo16 = "Santa Lucia";
var bo17 = "Esmeralda";
var bo18 = "Almirante";

var bop1 = 10955;   // Gold f&uuml;r Red Korsar
var bop2 = 40455;   // Gold f&uuml;r Los Renegados
var bop3 = 42172;   // Gold f&uuml;r Los Renegados 3-Master
var bop4 = 65013;  // Gold f&uuml;r Wild 13
var bop5 = 59123;  // Gold f&uuml;r Tortuga Gang
var bop6 = 106833;  // Gold f&uuml;r Sinclair's Men
var bop7 = 110146;   // Gold f&uuml;r Sinclair's Men 3-Master
var bop8 = 136533;   // Gold f&uuml;r Rat Pack
var bop9 = 140432;   // Gold f&uuml;r Rat Pack 3-Master
var bop10 = 157060; // Gold f&uuml;r Los Amistadores
var bop11 = 210767; // Gold f&uuml;r Calico's Men
var bop12 = 265284; // Gold f&uuml;r Morgan's Buccaneer
var bop13 = 0;  // Gold f&uuml;r Flying Dutchman
var bop14 = 0;  // Gold f&uuml;r Tiamat
var bop15 = 300000;  // Gold f&uuml;r Trinidad
var bop16 = 410000;  // Gold f&uuml;r Santa Lucia
var bop17 = 520000;  // Gold f&uuml;r Esmeralda
var bop18 = 0;  // Gold f&uuml;r Almirante

var NPC1 = 2159;    // HPs der Los Red Korsar
var NPC2 = 4768;    // HPs der Los Renegados
var NPC3 = 9786;   // HPs der Los Renegados 3-Master
var NPC4 = 18000;   // HPs der Wild 13
var NPC5 = 19972;   // HPs der Tortuga Gang
var NPC6 = 24964;   // HPs der Sinclair's Men
var NPC7 = 29894;    // HPs der Sinclair's Men 3-Master
var NPC8 = 34561;    // HPs der Rat Pack
var NPC9 = 39519;    // HPs der Rat Pack 3-Master
var NPC10 = 36606;  // HPs der Los Amistadores
var NPC11 = 46643;  // HPs der Calico's Men
var NPC12 = 52535;  // HPs der Morgan's Buccaneer
var NPC13 = 414394;  // HPs der Flying Dutchman
var NPC14 = 1100000;  // HPs der Tiamat
var NPC15 = 75000;  // HPs der Trinidad
var NPC16 = 95000;  // HPs der Santa Lucia
var NPC17 = 110000;  // HPs der Esmeralda
var NPC18 = 2735000;  // HPs der Almirante

var bep1 = 2;   // EP f&uuml;r Red Korsar
var bep2 = 6;   // EP f&uuml;r Los Renegados
var bep3 = 6;   // EP f&uuml;r Los Renegados 3-Master
var bep4 = 10;  // EP f&uuml;r Wild 13
var bep5 = 13;  // EP f&uuml;r Tortuga Gang
var bep6 = 16;  // EP f&uuml;r Sinclair's Men
var bep7 = 16;   // EP f&uuml;r Sinclair's Men 3-Master
var bep8 = 18;   // EP f&uuml;r Rat Pack
var bep9 = 18;   // EP f&uuml;r Rat Pack 3-Master
var bep10 = 25; // EP f&uuml;r Los Amistadores
var bep11 = 98; // EP f&uuml;r Calico's Men
var bep12 = 117; // EP f&uuml;r Morgan's Buccaneer
var bep13 = 1965;  // EP f&uuml;r Flying Dutchman
var bep14 = 5050;  // EP f&uuml;r Tiamat
var bep15 = 50;  // EP f&uuml;r Trinidad
var bep16 = 176;  // EP f&uuml;r Santa Lucia
var bep17 = 195;  // EP f&uuml;r Esmeralda
var bep18 = 17422;  // EP f&uuml;r Almirante

var ergebnis = (ka1*1 + ka2*1 + ka3*1 + ka4*1 + ka5*1 + ka6*1 + ka7*1+ka8*1);
var schuss = (kz1*1 + kz2*1 + kz3*1 + kz4*1 + kz5*1 + kz6*1 + kz7*1+kz8*1);

var ks = (muk*1 * ergebnis*1);

var b1 = (Math.ceil(NPC1*1 / schuss*1));
var b2 = (Math.ceil(NPC2*1 / schuss*1));
var b3 = (Math.ceil(NPC3*1 / schuss*1));
var b4 = (Math.ceil(NPC4*1 / schuss*1));
var b5 = (Math.ceil(NPC5*1 / schuss*1));
var b6 = (Math.ceil(NPC6*1 / schuss*1));
var b7 = (Math.ceil(NPC7*1 / schuss*1));
var b8 = (Math.ceil(NPC8*1 / schuss*1));
var b9 = (Math.ceil(NPC9*1 / schuss*1));
var b10 = (Math.ceil(NPC10*1 / schuss*1));
var b11 = (Math.ceil(NPC11*1 / schuss*1));
var b12 = (Math.ceil(NPC12*1 / schuss*1));
var b13 = (Math.ceil(NPC13*1 / schuss*1));
var b14 = (Math.ceil(NPC14*1 / schuss*1));
var b15 = (Math.ceil(NPC15*1 / schuss*1));
var b16 = (Math.ceil(NPC16*1 / schuss*1));
var b17 = (Math.ceil(NPC17*1 / schuss*1));
var b18 = (Math.ceil(NPC18*1 / schuss*1));

var bs1 = b1*1;
var bs2 = b2*1;
var bs3 = b3*1;
var bs4 = b4*1;
var bs5 = b5*1;
var bs6 = b6*1;
var bs7 = b7*1;
var bs8 = b8*1;
var bs9 = b9*1;
var bs10 = b10*1;
var bs11 = b11*1;
var bs12 = b12*1;
var bs13 = b13*1;
var bs14 = b14*1;
var bs15 = b15*1;
var bs16 = b16*1;
var bs17 = b17*1;
var bs18 = b18*1;

var kb1 = (bs1*1 * ks*1);
var kb2 = (bs2*1 * ks*1);
var kb3 = (bs3*1 * ks*1);
var kb4 = (bs4*1 * ks*1);
var kb5 = (bs5*1 * ks*1);
var kb6 = (bs6*1 * ks*1);
var kb7 = (bs7*1 * ks*1);
var kb8 = (bs8*1 * ks*1);
var kb9 = (bs9*1 * ks*1);
var kb10 = (bs10*1 * ks*1);
var kb11 = (bs11*1 * ks*1);
var kb12 = (bs12*1 * ks*1);
var kb13 = (bs13*1 * ks*1);
var kb14 = (bs14*1 * ks*1);
var kb15 = (bs15*1 * ks*1);
var kb16 = (bs16*1 * ks*1);
var kb17 = (bs17*1 * ks*1);
var kb18 = (bs18*1 * ks*1);

var gew1 = (bop1*1 - kb1*1);
var gew2 = (bop2*1 - kb2*1);
var gew3 = (bop3*1 - kb3*1);
var gew4 = (bop4*1 - kb4*1);
var gew5 = (bop5*1 - kb5*1);
var gew6 = (bop6*1 - kb6*1);
var gew7 = (bop7*1 - kb7*1);
var gew8 = (bop8*1 - kb8*1);
var gew9 = (bop9*1 - kb9*1);
var gew10 = (bop10*1 - kb10*1);
var gew11 = (bop11*1 - kb11*1);
var gew12 = (bop12*1 - kb12*1);
var gew13 = (bop13*1 - kb13*1);
var gew14 = (bop14*1 - kb14*1);
var gew15 = (bop15*1 - kb15*1);
var gew16 = (bop16*1 - kb16*1);
var gew17 = (bop17*1 - kb17*1);
var gew18 = (bop18*1 - kb18*1);

var gew19 = (bep1*1);
var gew20 = (bep2*1);
var gew21 = (bep3*1);
var gew22 = (bep4*1);
var gew23 = (bep5*1);
var gew24 = (bep6*1);
var gew25 = (bep7*1);
var gew26 = (bep8*1);
var gew27 = (bep9*1);
var gew28 = (bep10*1);
var gew29 = (bep11*1);
var gew30 = (bep12*1);
var gew31 = (bep13*1);
var gew32 = (bep14*1);
var gew33 = (bep15*1);
var gew34 = (bep16*1);
var gew35 = (bep17*1);
var gew36 = (bep18*1);

document.Seafight.ergebnis.value=ergebnis;
document.Seafight.schuss.value=schuss;

document.Seafight.bo1.value=bo1;
document.Seafight.bo2.value=bo2;
document.Seafight.bo3.value=bo3;
document.Seafight.bo4.value=bo4;
document.Seafight.bo5.value=bo5;
document.Seafight.bo6.value=bo6;
document.Seafight.bo7.value=bo7;
document.Seafight.bo8.value=bo8;
document.Seafight.bo9.value=bo9;
document.Seafight.bo10.value=bo10;
document.Seafight.bo11.value=bo11;
document.Seafight.bo12.value=bo12;
document.Seafight.bo13.value=bo13;
document.Seafight.bo14.value=bo14;
document.Seafight.bo15.value=bo15;
document.Seafight.bo16.value=bo16;
document.Seafight.bo17.value=bo17;
document.Seafight.bo18.value=bo18;

document.Seafight.NPC1.value=NPC1;
document.Seafight.NPC2.value=NPC2;
document.Seafight.NPC3.value=NPC3;
document.Seafight.NPC4.value=NPC4;
document.Seafight.NPC5.value=NPC5;
document.Seafight.NPC6.value=NPC6;
document.Seafight.NPC7.value=NPC7;
document.Seafight.NPC8.value=NPC8;
document.Seafight.NPC9.value=NPC9;
document.Seafight.NPC10.value=NPC10;
document.Seafight.NPC11.value=NPC11;
document.Seafight.NPC12.value=NPC12;
document.Seafight.NPC13.value=NPC13;
document.Seafight.NPC14.value=NPC14;
document.Seafight.NPC15.value=NPC15;
document.Seafight.NPC16.value=NPC16;
document.Seafight.NPC17.value=NPC17;
document.Seafight.NPC18.value=NPC18;

document.Seafight.bs1.value=bs1;
document.Seafight.bs2.value=bs2;
document.Seafight.bs3.value=bs3;
document.Seafight.bs4.value=bs4;
document.Seafight.bs5.value=bs5;
document.Seafight.bs6.value=bs6;
document.Seafight.bs7.value=bs7;
document.Seafight.bs8.value=bs8;
document.Seafight.bs9.value=bs9;
document.Seafight.bs10.value=bs10;
document.Seafight.bs11.value=bs11;
document.Seafight.bs12.value=bs12;
document.Seafight.bs13.value=bs13;
document.Seafight.bs14.value=bs14;
document.Seafight.bs15.value=bs15;
document.Seafight.bs16.value=bs16;
document.Seafight.bs17.value=bs17;
document.Seafight.bs18.value=bs18;

document.Seafight.muk.value=muk;
document.Seafight.ks.value=ks;

document.Seafight.kb1.value=kb1;
document.Seafight.kb2.value=kb2;
document.Seafight.kb3.value=kb3;
document.Seafight.kb4.value=kb4;
document.Seafight.kb5.value=kb5;
document.Seafight.kb6.value=kb6;
document.Seafight.kb7.value=kb7;
document.Seafight.kb8.value=kb8;
document.Seafight.kb9.value=kb9;
document.Seafight.kb10.value=kb10;
document.Seafight.kb11.value=kb11;
document.Seafight.kb12.value=kb12;
document.Seafight.kb13.value=kb13;
document.Seafight.kb14.value=kb14;
document.Seafight.kb15.value=kb15;
document.Seafight.kb16.value=kb16;
document.Seafight.kb17.value=kb17;
document.Seafight.kb18.value=kb18;

document.Seafight.gew1.value=gew1;
document.Seafight.gew2.value=gew2;
document.Seafight.gew3.value=gew3;
document.Seafight.gew4.value=gew4;
document.Seafight.gew5.value=gew5;
document.Seafight.gew6.value=gew6;
document.Seafight.gew7.value=gew7;
document.Seafight.gew8.value=gew8;
document.Seafight.gew9.value=gew9;
document.Seafight.gew10.value=gew10;
document.Seafight.gew11.value=gew11;
document.Seafight.gew12.value=gew12;
document.Seafight.gew13.value=gew13;
document.Seafight.gew14.value=gew14;
document.Seafight.gew15.value=gew15;
document.Seafight.gew16.value=gew16;
document.Seafight.gew17.value=gew17;
document.Seafight.gew18.value=gew18;

document.Seafight.gew19.value=gew19;
document.Seafight.gew20.value=gew20;
document.Seafight.gew21.value=gew21;
document.Seafight.gew22.value=gew22;
document.Seafight.gew23.value=gew23;
document.Seafight.gew24.value=gew24;
document.Seafight.gew25.value=gew25;
document.Seafight.gew26.value=gew26;
document.Seafight.gew27.value=gew27;
document.Seafight.gew28.value=gew28;
document.Seafight.gew29.value=gew29;
document.Seafight.gew30.value=gew30;
document.Seafight.gew31.value=gew31;
document.Seafight.gew32.value=gew32;
document.Seafight.gew33.value=gew33;
document.Seafight.gew34.value=gew34;
document.Seafight.gew35.value=gew35;
document.Seafight.gew36.value=gew36;

}
-->
</SCRIPT>
Beitrag08.08.2008 um 19:11 (UTC)    
Titel:

Um zu wissen, was nicht geht, wäre es sinnvoll, zu erfahren, was das Script machen soll Wink
______________
Macht mit und teilt Eure Ideen mit anderen Besuchern:

Beitrag09.08.2008 um 12:20 (UTC)    
Titel:

Versuche mal den if-else-Teil umzuschreiben.

Nicht:

Code:
if(...) {
...} else { if(...)
{ ... }


sondern:

Code:
if(...)
{ ... }
else if( ... )
{ ... }
else if( ... )
{ ... }
else
{ ... }


Der Rest sind ja nur Deklarationen von Variablen oder es wird etwas in ein Formular eingetragen, stimmts? Wenn das so ist hab ich keinen Fehler gesehen.
Beitrag09.08.2008 um 14:13 (UTC)    
Titel:

Wofür ist denn der Code?

MfG,
www.paid4info.de.tl
Beitrag09.08.2008 um 15:05 (UTC)    
Titel:

Ich hab das jetzt nur aus dem Script herausgelesen, aber anscheinend kann man in ein Formular Werte eingeben und sich irgendetwas zu dem Browsergame Seafight berechnen lassen. So eine Art Charakterplaner oder sowas.
Beitrag09.08.2008 um 16:36 (UTC)    
Titel:

Das soll ein Schusskraftberrechner sein Wink für Seafight

Das soll die Neuere Version von das da sein weil es bei Seafight neue LVL gibt Wink

http://www.vegas-webspace.com/buchi/kosten.html


Zuletzt bearbeitet von seafight-hilfe am 09.08.2008, 17:39, insgesamt einmal bearbeitet
Beiträge der letzten Zeit anzeigen:   


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de