Jump to content
MakeWebGames

Recommended Posts

Posted

Here a nice addition, Users have a guess 3 numbers and if they get it correct they will either win money or a item.

Non donators get 10 chances per day, as donators get 15 chances per day, This can easily be changed.

There should be no bugs, this only took me about 30 minutes. Ive tested. but not fully, There should be no problems tho. (:

create a new file called chest.php

You're unable to view this code.

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

 

Run this SQL's

[mysql]

ALTER TABLE users ADD safe TINYINT(11) NOT NULL DEFAULT 0

ALTER TABLE users ADD safe_remain TINYINT(11) NOT NULL DEFAULT 10

[/mysql]

Add to cron_day.php

You're unable to view this code.

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

 

That should be it.

Any problems please post.

Devon Nice.

Posted
Lol, ahh there basically the same thing right? lol. I guess it can be whatever you want it to be :p
That's what I'm talkin' about ;)

BTW, when someone guesses correctly, does it reset? I can't pinpoint where in the code it does that, but I'd blame me for that :P

Posted
Lol, ahh there basically the same thing right? lol. I guess it can be whatever you want it to be :p
That's what I'm talkin' about ;)

BTW, when someone guesses correctly, does it reset? I can't pinpoint where in the code it does that, but I'd blame me for that :P

yes it resets everytime someone guesses as if you look how numbers are generated they are randomized so everytime someone guesses the number changes if they crack it or dont it will reset
Posted
The numbers are generated randomly, they are never the same.

you'll find that bit of code here..

 

You're unable to view this code.

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

ah sorry had a long day and everything just wasn't working :P

i was thinking of the safe on a game i played and they had the same combination for everyone, then when someone cracked it, it reset. i thought you were doing the same. ;)

Posted

Same mod just with an image to make it look better

 

Small addition to make the mod look better >>>>>

Download this image

ifz6nk.jpg

Upload image above to your server.....

 

Find these lines

<select name='C3' type='dropdown'>

<option value='1'>1

<option value='2'>2

<option value='3'>3

<option value='4'>4

<option value='5'>5

</select>

</td><tr><td bgcolor='#dcdcdc' width='20%' align=center>

Add this line after

vault.jpg

Screen showing what it does

35bdmd2.png

The image was taken from The Chaotic Banana's post here Crack the Safe

My edit to this mod Not copyrighted at all.... ;) !

Posted
You could always use some css and place the numbers to select actually onto the safe pic making it look visually effective rather than just a image of a safe below.

I am lucky I can get anything to work bro..... Just starting out with this coding stuff. I am an old dude and what they say about "you cant teach an old dog new tricks" somewhat applies here..... :D My experience with css and php is non- existent. I do graphics.... That is a great idea however. I will learn eventually.....when my wife isn't nagging me that we "never spend enough time together" :cursing:

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