Page 1 of 1

Can I use this code in game?

Posted: Tue Mar 23, 2004 11:09 pm
by rklenseth
<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 -->

Posted: Tue Mar 23, 2004 11:13 pm
by The Hunter
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.

Posted: Tue Mar 23, 2004 11:14 pm
by rklenseth
Aye, that is why I am asking and not putting it in the game.

Posted: Tue Mar 23, 2004 11:29 pm
by Meh
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...

Posted: Tue Mar 23, 2004 11:33 pm
by rklenseth
Yeah, that kinda of makes sense, Meh. Nevermind.

By the way, this opens up a new discussion but whatever happened to the coin press idea. I thought the staff back then really liked the idea but I haven't heard anything since about it. Did it jsut get forgotten?

Posted: Tue Mar 23, 2004 11:35 pm
by rklenseth
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.

Posted: Wed Mar 24, 2004 4:55 am
by Meh
Coin press. IMO that was replace with the cost of getting iron and cloth. But offically I do not know. Could be waiting on a code improvement.

Posted: Wed Mar 24, 2004 9:48 am
by Jos Elkink
No, it's not allowed :)

Posted: Wed Mar 24, 2004 5:51 pm
by Mitch
I think IG dice would be cool...then we could all play D20 Modern IG 8)

Posted: Wed Mar 24, 2004 10:06 pm
by Nick
My char found a similar script already on a note in the game. Lad Region.