Can I use this code in game?

General out-of-character discussion among players of Cantr II.

Moderators: Public Relations Department, Players Department

rklenseth
Posts: 4736
Joined: Fri Aug 22, 2003 12:46 am

Can I use this code in game?

Postby rklenseth » Tue Mar 23, 2004 11:09 pm

<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 -->
User avatar
The Hunter
Posts: 1470
Joined: Sat Aug 16, 2003 12:59 pm
Location: In my cave, making bombs.
Contact:

Postby The Hunter » Tue Mar 23, 2004 11:13 pm

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.
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
rklenseth
Posts: 4736
Joined: Fri Aug 22, 2003 12:46 am

Postby rklenseth » Tue Mar 23, 2004 11:14 pm

Aye, that is why I am asking and not putting it in the game.
Meh
Posts: 2661
Joined: Wed Jul 16, 2003 10:13 pm
Location: Way away from TRUE staff abuse

Postby Meh » Tue Mar 23, 2004 11:29 pm

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...
rklenseth
Posts: 4736
Joined: Fri Aug 22, 2003 12:46 am

Postby rklenseth » Tue Mar 23, 2004 11:33 pm

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?
rklenseth
Posts: 4736
Joined: Fri Aug 22, 2003 12:46 am

Postby rklenseth » Tue Mar 23, 2004 11:35 pm

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.
Meh
Posts: 2661
Joined: Wed Jul 16, 2003 10:13 pm
Location: Way away from TRUE staff abuse

Postby Meh » Wed Mar 24, 2004 4:55 am

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.
User avatar
Jos Elkink
Founder Emeritus
Posts: 5711
Joined: Mon Jul 14, 2003 1:17 pm
Location: Dublin, Ireland
Contact:

Postby Jos Elkink » Wed Mar 24, 2004 9:48 am

No, it's not allowed :)
User avatar
Mitch
Posts: 45
Joined: Mon Mar 15, 2004 3:18 am
Location: USA

Postby Mitch » Wed Mar 24, 2004 5:51 pm

I think IG dice would be cool...then we could all play D20 Modern IG 8)
User avatar
Nick
Posts: 3606
Joined: Tue Jul 15, 2003 8:27 pm
Location: Halifax, Canada

Postby Nick » Wed Mar 24, 2004 10:06 pm

My char found a similar script already on a note in the game. Lad Region.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest