<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Hanz Broden (webmeister@v-wave.com) -->
<!-- Web Site: http://plaza.v-wave.com/dotcom -->
<!-- Modified By: Ronnie T. Moore, Editor -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function flipCoin() {
var x = parseInt(Math.random() * 2, 10);
coinsrc = (!x) ? "heads.gif" : "tails.gif";
document.coinform.coinbutton.value = 'Flipping';
ID = window.setTimeout("changeCoin();", 750);
}
function changeCoin() {
document['coin'].src = coinsrc;
document.coinform.coinbutton.value = 'Flip Coin';
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<center>
<form name=coinform>
<table border=0 height=200>
<tr valign=top>
<td><input type=button name=coinbutton value="Flip Coin" onClick="flipCoin();"></td>
<td><img name=coin src="heads.gif" width=190 height=190></td>
</tr>
</table>
</form>
</center>
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.29 KB -->
Can I use this code in game?
Moderators: Public Relations Department, Players Department
-
rklenseth
- Posts: 4736
- Joined: Fri Aug 22, 2003 12:46 am
- The Hunter
- Posts: 1470
- Joined: Sat Aug 16, 2003 12:59 pm
- Location: In my cave, making bombs.
- Contact:
A javascript gambling game ingame? NEVER!
Arent we told time and time again to use what we have ingame?
So no, this shouldn't be allowed, ever. We have the Prog. dept for game additions and changes.
Arent we told time and time again to use what we have ingame?
So no, this shouldn't be allowed, ever. We have the Prog. dept for game additions and changes.
Life is fun. Play naked with Psycho-Pixie.
"Our enemies are resourceful and innovative".
"and so are we..."
They never stop thinking about new ways to harm our country and people"
"and neither do we"
~G.W Bush
"Our enemies are resourceful and innovative".
"and so are we..."
They never stop thinking about new ways to harm our country and people"
"and neither do we"
~G.W Bush
-
rklenseth
- Posts: 4736
- Joined: Fri Aug 22, 2003 12:46 am
-
Meh
- Posts: 2661
- Joined: Wed Jul 16, 2003 10:13 pm
- Location: Way away from TRUE staff abuse
I forget what the comment on javascript was...
Possibly disallowed to prevent malious (to users) code. But there is ways around that.
On this however the coin will flip only when the character looking at it clicks the button and the result of the flip will not be seen by other characters.
I didn't really answer the question but if your sure that you want this in game I can look into it...
Possibly disallowed to prevent malious (to users) code. But there is ways around that.
On this however the coin will flip only when the character looking at it clicks the button and the result of the flip will not be seen by other characters.
I didn't really answer the question but if your sure that you want this in game I can look into it...
-
rklenseth
- Posts: 4736
- Joined: Fri Aug 22, 2003 12:46 am
-
rklenseth
- Posts: 4736
- Joined: Fri Aug 22, 2003 12:46 am
It would be kind of cool to make a coin and flip it and sort of make a gambling game out of it.
Dice would be nice too. I would imagine those would be pretty easy to program in and we have the resources to make them though who waste the resources and time to make them is beyond me except I think there are a few characters of mine that do have the time to waste.
Dice would be nice too. I would imagine those would be pretty easy to program in and we have the resources to make them though who waste the resources and time to make them is beyond me except I think there are a few characters of mine that do have the time to waste.
-
Meh
- Posts: 2661
- Joined: Wed Jul 16, 2003 10:13 pm
- Location: Way away from TRUE staff abuse
- Jos Elkink
- Founder Emeritus
- Posts: 5711
- Joined: Mon Jul 14, 2003 1:17 pm
- Location: Dublin, Ireland
- Contact:
- Mitch
- Posts: 45
- Joined: Mon Mar 15, 2004 3:18 am
- Location: USA
- Nick
- Posts: 3606
- Joined: Tue Jul 15, 2003 8:27 pm
- Location: Halifax, Canada
Return to “General Discussion”
Who is online
Users browsing this forum: No registered users and 1 guest

