Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Doctor Disco

Pages: 1 2 [3] 4 5 6 7 8 ... 36
31
Modification Help / Re: A clock.
« on: December 11, 2017, 05:40:10 PM »
The day counter is supposed to add a day every six hours actually. It's intended for a friend's server, nothing special really. But my friend and I rather the months have separate day limits. I saw it possible in a CityRPG script but I couldn't figure out how they did it. I vaguely figured out how to do this, and if someone could walk me through how I could make this neater/actually work properly (and save the time when the host closes) that'd be awesome. I only tried it myself first to practice a little bit, since I'm mostly new to using torquescript.
Here's what I put together based on your guys help so far (besides what phantos suggested, as I didn't quite understand what he asked to do.) and snippets of code from other places. It showed no errors at the end but didn't function properly at all. December counted to 28 days only, then reset back to December 1st rather than January 1st. The announcement didn't print the variables for the names and stuff.

Code: [Select]
$day = 1;
$month = 1;
$year = 2150;
$m = "January";
$n = "th";

$dayInterval = 5000; //set to five seconds so I can actually test it, otherwise would be 2,600,000 for six hours. I dont even know if that's valid for torquescript.

function dayAdder()
{
    cancel($dayAdder);
    $day += 1;
if ($month = 1)
{
if ($day > 31)
{
$day = 1;
$month += 1;
}
}
if ($month = 2)
{
if ($day > 28)
{
$day = 1;
$month += 1;
}
}
if ($month = 3)
{
if ($day > 31)
{
$day = 1;
$month += 1;
}
}
if ($month = 4)
{
if ($day > 30)
{
$day = 1;
$month += 1;
}
}
if ($month = 5)
{
if ($day > 31)
{
$day = 1;
$month += 1;
}
}
if ($month = 6)
{
if ($day > 30)
{
$day = 1;
$month += 1;
}
}
if ($month = 7)
{
if ($day > 31)
{
$day = 1;
$month += 1;
}
}
if ($month = 8)
{
if ($day > 31)
{
$day = 1;
$month += 1;
}
}
if ($month = 9)
{
if ($day > 30)
{
$day = 1;
$month += 1;
}
}
if ($month = 10)
{
if ($day > 31)
{
$day = 1;
$month += 1;
}
}
if ($month = 11)
{
if ($day > 30)
{
$day = 1;
$month += 1;
}
}
if ($month = 12)
{
if ($day > 31)
{
$day = 1;
$month += 1;
}
}
switch$ ($month)
{
case 1: $m = "January";
case 2: $m = "February";
case 3: $m = "March";
case 4: $m = "April";
case 5: $m = "May";
case 6: $m = "June";
case 7: $m = "July";
case 8: $m = "August";
case 9: $m = "September";
case 10: $m = "October";
case 11: $m = "November";
case 12: $m = "December";
default: $m = "n/a";
}
switch$ ($day)
{
case 1: $d = "st";
case 2: $d = "nd";
case 3: $d = "rd";
case 21: $d = "st";
case 22: $d = "nd";
case 23: $d = "rd";
case 31: $d = "st";
default: $d = "th";
}
announce("Today is $m $day$d, $year.);
schedule($dayInterval, 0, dayAdder);
}
The only thing that worked properly was that it played every five seconds and each number had it's own suffix. 1=st, 25=th, etc.

32
Modification Help / Re: A clock.
« on: December 10, 2017, 08:01:25 PM »
Oh, frick
ty

33
Modification Help / Re: A clock.
« on: December 10, 2017, 07:18:09 PM »
thank you all.

edit
tried using Case so that individual months could have different day limits but it registered as a syntax error in the highlighted area. Dunno if its telling me switch is written wrong or case



34
Modification Help / Re: A clock.
« on: December 10, 2017, 05:03:09 PM »
Alright, well, with that fixed, why the heck is blockland registering THIS as an error? It's no different from any of the other Ifs I put.



(marked where it errors with ##)

35
Modification Help / Re: A clock.
« on: December 10, 2017, 04:17:24 PM »
Thanks.
Uh, any idea why blockland keeps reading this as a syntax error?

$1 = "January";

I'm just naming a variable (I think?), like $day and other.

36
Modification Help / A clock.
« on: December 10, 2017, 11:30:36 AM »
I'm just looking for a code that will add a day every so many seconds/minutes/hours. That's really it.
I've jumped from CityRPG codes to little documentation things but I haven't found it, and I'm sure it's simple (And I could just be blind). If anyone could drop it here that'd be nice.

37
Environment Files / Re: Sunflare_Shrek
« on: November 27, 2017, 08:50:05 PM »
this gives me hope

39
Off Topic / Re: Looking for cheap monitors.
« on: November 27, 2017, 08:47:34 PM »
What the forget it costs the equivalent of 164.62 USD here when you convert currency.
The price is listing $130 for me. Dunno if I read it wrong or something though.



I have this, might be considerably cheap..? (It has no built in speakers, contrary to what I thought when I bought it..)

40
If you can get the 1050, go for it. It's a great card!

I was gonna. $84

And then the sale ended and it jumped to $104

eeeeeeeeeee

41
thank you very much.
Secondary question though, regarding Nvidia. I'm fine with going back up to my $30 over-limit budget, would the GTX 1050 be okay for that? If not, I'll stick to the one you suggested. Just curious anyways.

42
For Christmas I was given a budget of $250. I'm looking to replace my motherboard, cpu, and GPU. My current setup is a Midtower case with a Kam1 motherboard (am1 socket), AMD 5350, and it's integrated gpu. I'm looking to replace all of those + RAM (because the Kam1 uses DDR3 and most of the cpus I looked at use DDR4).
This was recommended by a friend.
I'm not an expert on any of this, so if anybody has recommendations for change here or etc, I'll be really thankful.
I can stretch my budget to $290 max including shipping.

43
Suggestions & Requests / Free Teleport link is completely broken
« on: October 10, 2017, 03:27:30 PM »
https://forum.blockland.us/index.php?topic=296247.0

Anybody have an alternative download source?
Ty,

44
If you're going to be like that no one will want to help you
Phrased it wrong, whoops.

45
*Master Server

and no it's not down, if it was down you wouldn't see any servers
I meant something else~


I found my old topic. Sent Badspot a PM

Pages: 1 2 [3] 4 5 6 7 8 ... 36