Author Topic: exp php  (Read 783 times)

Offline PROMO

  • Level 6
  • *
  • Posts: 22
  • Reputation: +0/-0
    • View Profile
exp php
« on: March 13, 2008, 05:09:57 PM »
Code: [Select]
function experience($L) {

  $a=0;

  $end=0;

  for($x=1; $x<$L; $x++) {

    $a += floor($x+1500*pow(4, ($x/7)));

  }

  return floor($a/4);

}



function Get_The_Level($exp) {

  $a=0;

  $end =0;

  for($x=1; ($end==0 && $x<100); $x++) {

    $a += floor($x+1500*pow(4, ($x/7)));

    if ($exp >= floor($a/4)){

} else {

  return $x;

  $end=1;

}

  }

}



function Get_Max_Exp($L){

$end=0;

 if ($exp == 0){

return 457;

$end =1;

  }

for($L=1;($L<100 && $end==0);$L++) {

  $exp = experience($L);

  //echo $exp;

  if ($exp >= $user_class->exp){

return $exp;

$end=1;
what value do i have to change and what do i change to decrease the exp for a level.
with this code it is 68,452 / 71,697 for level 18.
i want to do like 2k exp for level 18.
so pretty much decrease the exp and increase the level = exp.

Offline MexicanGang

  • Level 5
  • *
  • Posts: 17
  • Reputation: +0/-2
    • View Profile
Re: exp php
« Reply #1 on: March 13, 2008, 06:03:51 PM »
Please help him. We need to get a better game.
Im looking to create a Browser Based Game like:
Mafia Crime

I have the MCCode
But i dont know how to install it and what webhost use.
I prefer a free with Cpanel. If someone can help me to create my webpage with MCCode, MSG Me Pls.

Offline thevtm

  • Level 4
  • *
  • Posts: 12
  • Reputation: +0/-0
    • View Profile
Re: exp php
« Reply #2 on: April 19, 2008, 02:56:08 PM »
can u explain more what are the variables ^_^

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal