Jump to content
MakeWebGames

Recommended Posts

Posted

Ok i was about to post this and i seen someone selling there game and it was like what i wanted but its been sold now :(

 

Ok what iam looking for is instead of a leveling system i would like it to be respect

 

This other game i play called the crims when you start out you have 5 respect and every crime you do gives you money which also gives you respect so the more money you have the more respect

 

just wondering how much this would cost?

 

Budget is not much - $10-$30

thanks steve

Posted

I could be completely wrong, but I feel like all you would have to do is change up your check level function.

Very basic example (I'm using V1 so, I'm guessing it'll be a little different):

Change:

function check_level()
{
   global $ir, $c, $userid;
   $ir['exp_needed'] =
           (int) (($ir['level'] + 1) * ($ir['level'] + 1)
                   * ($ir['level'] + 1) * 4.4);
   if ($ir['exp'] >= $ir['exp_needed'])
   {
       $expu = $ir['exp'] - $ir['exp_needed'];
       $ir['level'] += 1;
       $ir['exp'] = $expu;
       $ir['energy'] += 2;
       $ir['brave'] += 2;
       $ir['maxenergy'] += 2;
       $ir['maxbrave'] += 2;
       $ir['hp'] += 50;
       $ir['maxhp'] += 50;
       $ir['exp_needed'] =
               (int) (($ir['level'] + 1) * ($ir['level'] + 1)
                       * ($ir['level'] + 1) * 4.4);
       mysql_query(
               "UPDATE users SET level=level+1,exp=$expu,energy=energy+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2,
hp=hp+50,maxhp=maxhp+50 where userid=$userid", $c);

 

To:

 

function check_respect()
{
   global $ir, $c, $userid;
   $ir['exp_needed'] =
           (int) (($ir['respect'] + 5) * ($ir['respect'] + 5)
                   * ($ir['respect'] + 5) * 10.10);
   if ($ir['exp'] >= $ir['exp_needed'])
   {
       $expu = $ir['exp'] - $ir['exp_needed'];
       $ir['respectl'] += 5;
       $ir['exp'] = $expu;
       $ir['energy'] += 2;
       $ir['brave'] += 2;
       $ir['maxenergy'] += 2;
       $ir['maxbrave'] += 2;
       $ir['hp'] += 50;
       $ir['maxhp'] += 50;
       $ir['exp_needed'] =
               (int) (($ir['respect'] + 5) * ($ir['respect'] + 5)
                       * ($ir['respect'] + 5) * 10.10);
       mysql_query(
               "UPDATE users SET respect=respectl+5,exp=$expu,energy=energy+2,brave=brave+2,maxenergy=maxenergy+2,maxbrave=maxbrave+2,
hp=hp+50,maxhp=maxhp+50 where userid=$userid", $c);

 

Then, just go file by file, and anything that checks or changes level, change to respect.

Again, this is a very basic example, and I'm not entirely sure I'm right, but it seems sound in theory.

Posted

this does work thanks but messes up my crimes cant pass any crimes at all

thanks for trying

 

Iam still looking for someone to help me on this

What i need

1. Instead of gaining exp to level up i would like it to be respect so every crime you do earns you respect based on the money you earn ( say for every $1,000,000 you make gives you 100 respect )

2. Thats it for now but if i get this done will be looking for addons in the future.

pm me your offers

thanks

Steven

Posted
this does work thanks but messes up my crimes cant pass any crimes at all

thanks for trying

 

Iam still looking for someone to help me on this

What i need

1. Instead of gaining exp to level up i would like it to be respect so every crime you do earns you respect based on the money you earn ( say for every $1,000,000 you make gives you 100 respect )

2. Thats it for now but if i get this done will be looking for addons in the future.

pm me your offers

thanks

Steven

What about a new row in the users table called crimeINCOME.

Change the SQL's in docrime.php to update crimeINCOME with whatever the successmoney is.

Then, in the function I posted above: respect = $ir['crimeINCOME']/10000

The reason it messed up your crimes is because the successrate uses LEVEL. Find the array, change LEVEL to RESPECT

Adjust your success formulas accordingly

Posted
So for every $10,000 they make in crimes you want them to gain 1 respect?

 

I was using it as a example but something higher like 15 respect per $10.000 they earn sounds alright

Posted
What about a new row in the users table called crimeINCOME.

Change the SQL's in docrime.php to update crimeINCOME with whatever the successmoney is.

Then, in the function I posted above: respect = $ir['crimeINCOME']/10000

The reason it messed up your crimes is because the successrate uses LEVEL. Find the array, change LEVEL to RESPECT

Adjust your success formulas accordingly

i did change it in docrime.php and still failed would i didnt think i changed it in the crimes table now that i think about it

Posted
i did change it in docrime.php and still failed would i didnt think i changed it in the crimes table now that i think about it

If this works, do I get the $30? :P

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...