Jump to content
MakeWebGames

Free Starter Pack


Akash

Recommended Posts

  • Replies 68
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • 5 weeks later...
  • 3 weeks later...
  • 4 weeks later...
  • 3 months later...

a very easy way to make it so a player gets a certain amount of money, crystals, and donator days when they sign up is to do this :

open register and find this query :

$db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')");

replace with the query below AFTER YOU EDIT THE X_MONEY, X_CRYSTALS and X_DONATORDAYS (replace with your desired starting amounts)..

works fine for me...

 

$db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, X_MONEY, X_CRYSTALS, X_DONATORDAYS, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')");

 

EDIT"

I didnt read through this post so if it was posted before...sorry

Link to comment
Share on other sites

  • 5 months later...
  • 5 years later...
Need Help

Can Anyone convert this code to Redux

If we convert it you will not learn. In here are some tutorials to help you though. This mod is written in V1 but if you look at the V1 to V2 conversion tut you can get most of it done then go to the V2 to Redux and you will have the rest.

The he only major difference off the top of my head between V2 and Redux is you have to add the file in the array in index.php and change all the links to the gen_url() function

Link to comment
Share on other sites

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...