Jump to content
MakeWebGames

Simple register edit


gurpreet

Recommended Posts

I know 90% of people, if not 100% will know how to do this, but this is just here to help people. This is basically to make it so you can give donatordays and such to new users. The highlighted bits is what you change for donatordays.

$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, 5, 2, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')");

The bold text is crystal amount when they join, glowing is the donatordays.

(cant use code tags or the glow won't show!)

Link to comment
Share on other sites

Re: Simple register edit

 

Simple but even i didn't know that when i started so usefull for us n00bs +1 mate :wink:

Hehe thanks, people on my game said let newbies try out donator features for a day or 2, which will make people see the features and in time donate ;)

Link to comment
Share on other sites

Re: Simple register edit

 

This is great but i dont see a way to up the starting money> $sm

How can i adjust the money a user starts the game with??

Thanks!!

Jeff

Simple, just look for the variable $sm in your register file.

Find:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Edit the number to whatever you want the users money to be.

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