Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Fix Statystki


TheSzczepan4

Rekomendowane odpowiedzi

Opublikowano

Siemanko daje wam fixa na statystki +15.000


 


 


 


 



function getStatCost($class, $race, $stat_index, $stat) {

$base = loadDefaultStats ( $class, $race );
// var_dump($base, $stat);
$stat -= $base [$stat_index - 1];


// STAT COST
$attPriceLimitation = false;
$GoldKurve = array (
0,
25,
50,
75 
);
$TrueAttPreis = array ();


for($i = 4; $i <= 15000; $i ++) {
$GoldKurve [$i] = ((( int ) ($GoldKurve [($i - 1)]) + ( int ) (($GoldKurve [(($i / 2))] / 3))) + ( int ) (($GoldKurve [(( int ) ($i / 3))] / 4)));
$GoldKurve [$i] = ( int ) (($GoldKurve [$i] / 5));
$GoldKurve [$i] = ($GoldKurve [$i] * 5);
}


for($i = 0; $i <= 15000; $i ++) {
$TrueAttPreis [$i] = $GoldKurve [( int ) ((1 + ($i / 5)))];
}


for($i = 0; $i < 14999; $i ++) {
if ($attPriceLimitation) {
$TrueAttPreis [$i] = 1000000000; // 0x3B9ACA00;
} else {
$TrueAttPreis [$i] = ((((( int ) ($TrueAttPreis [$i]) + ($TrueAttPreis [($i + 1)])) + ( int ) ($TrueAttPreis [($i + 2)])) + ( int ) ($TrueAttPreis [($i + 3)])) + ( int ) ($TrueAttPreis [($i + 4)]));
$TrueAttPreis [$i] = ( int ) (($TrueAttPreis [$i] / 5));
$TrueAttPreis [$i] = ( int ) (($TrueAttPreis [$i] / 5));
$TrueAttPreis [$i] = ( int ) (($TrueAttPreis [$i] * 5));
if ($TrueAttPreis [$i] > 1000000000) {
$TrueAttPreis [$i] = 1000000000;
$attPriceLimitation = true;
}
}
}
$i = 1;


return $TrueAttPreis [$stat];
}

 


 


Tabulatory sami sobie dodajcie :) , wynagrodzeniem jest dla mnie to że zagracie na moim serwerze :)


 


867401403045038146995.png


Opublikowano

@TheSzczepan4 Powiem ci jak mam.

 

 

function getStatCost($class, $race, $stat_index, $stat) {
 
$base = loadDefaultStats ( $class, $race );
// var_dump($base, $stat);
$stat -= $base [$stat_index - 1];
 
 
// STAT COST
$attPriceLimitation = false;
$GoldKurve = array (
0,
25,
50,
75 
);
$TrueAttPreis = array ();
 
 
for($i = 4; $i <= 15000; $i ++) {
$GoldKurve [$i] = ((( int ) ($GoldKurve [($i - 1)]) + ( int ) (($GoldKurve [(($i / 2))] / 3))) + ( int ) (($GoldKurve [(( int ) ($i / 3))] / 4)));
$GoldKurve [$i] = ( int ) (($GoldKurve [$i] / 5));
$GoldKurve [$i] = ($GoldKurve [$i] * 5);
}
 
 
for($i = 0; $i <= 15000; $i ++) {
$TrueAttPreis [$i] = $GoldKurve [( int ) ((1 + ($i / 5)))];
}
 
 
for($i = 0; $i < 14999; $i ++) {
if ($attPriceLimitation) {
$TrueAttPreis [$i] = 1000000000; // 0x3B9ACA00;
} else {
$TrueAttPreis [$i] = ((((( int ) ($TrueAttPreis [$i]) + ($TrueAttPreis [($i + 1)])) + ( int ) ($TrueAttPreis [($i + 2)])) + ( int ) ($TrueAttPreis [($i + 3)])) + ( int ) ($TrueAttPreis [($i + 4)]));
$TrueAttPreis [$i] = ( int ) (($TrueAttPreis [$i] / 5));
$TrueAttPreis [$i] = ( int ) (($TrueAttPreis [$i] / 5));
$TrueAttPreis [$i] = ( int ) (($TrueAttPreis [$i] * 5));
if ($TrueAttPreis [$i] > 1000000000) {
$TrueAttPreis [$i] = 1000000000;
$attPriceLimitation = true;
}
}
}
$i = 1;
 
 
return $TrueAttPreis [$stat];
}

a zobaczymy czy sie zgadza

 

 

function getStatCost($class, $race, $stat_index, $stat) {

$base = loadDefaultStats ( $class, $race );
// var_dump($base, $stat);
$stat -= $base [$stat_index - 1];


// STAT COST
$attPriceLimitation = false;
$GoldKurve = array (
0,
25,
50,
75 
);
$TrueAttPreis = array ();


for($i = 4; $i <= 15000; $i ++) {
$GoldKurve [$i] = ((( int ) ($GoldKurve [($i - 1)]) + ( int ) (($GoldKurve [(($i / 2))] / 3))) + ( int ) (($GoldKurve [(( int ) ($i / 3))] / 4)));
$GoldKurve [$i] = ( int ) (($GoldKurve [$i] / 5));
$GoldKurve [$i] = ($GoldKurve [$i] * 5);
}


for($i = 0; $i <= 15000; $i ++) {
$TrueAttPreis [$i] = $GoldKurve [( int ) ((1 + ($i / 5)))];
}


for($i = 0; $i < 14999; $i ++) {
if ($attPriceLimitation) {
$TrueAttPreis [$i] = 1000000000; // 0x3B9ACA00;
} else {
$TrueAttPreis [$i] = ((((( int ) ($TrueAttPreis [$i]) + ($TrueAttPreis [($i + 1)])) + ( int ) ($TrueAttPreis [($i + 2)])) + ( int ) ($TrueAttPreis [($i + 3)])) + ( int ) ($TrueAttPreis [($i + 4)]));
$TrueAttPreis [$i] = ( int ) (($TrueAttPreis [$i] / 5));
$TrueAttPreis [$i] = ( int ) (($TrueAttPreis [$i] / 5));
$TrueAttPreis [$i] = ( int ) (($TrueAttPreis [$i] * 5));
if ($TrueAttPreis [$i] > 1000000000) {
$TrueAttPreis [$i] = 1000000000;
$attPriceLimitation = true;
}
}
}
$i = 1;


return $TrueAttPreis [$stat];
}


to chyba to samo prosze, pomóż

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...