Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   time help. This is a SANE post. (https://forums.graalonline.com/forums/showthread.php?t=11112)

Enigma_GP6 09-04-2001 03:04 AM

time help. This is a SANE post.
 
OK, guys, IN the time code below, is there a way to make something happen at a certain time, and if there is, how?
My second question is can you make it do it every so and so seconds, minutes, etc.

if (playerenters) {toweapons *Time}
if (isweapon||timeout) {timeout=.05;
this.minute = int(timevar / .2)%60;
this.hour = int(this.minute / 60)%24;
this.day = int(this.hour / 24)%30;
this.month = int(this.day / 30)%12;
this.year = int(this.month / 12)}
if (weaponfired) {setstring year,#v(this.year);
setstring month,#v(this.month);
setstring day,#v(this.day);
setstring hour,#v(this.hour);
setstring minute,#v(this.minute);
setstring minute,#v(this.minute);
say2 Graalian Rebel Time#b
Time: #s(hour):#s(minute)#s(minute)#b
Date: #s(month)/#s(day)/#s(year)}

-Rebel001

Enigma_GP6 09-04-2001 03:12 AM

Very nice Rebel! but I must admit, I am completely stumped at what you need to do, I hope some other idiot can answer that questio besides me.

-Rebel95

LiquidIce00 09-04-2001 03:47 AM

well it would be nice if you didnt steal that out of Unholy Nation
you cant use or trade that script . I gave warpcaptain permission to use it with Enigma but you cant use it for your own server or anywhere outside of Unholy Nation or enigma

entravial 09-04-2001 04:26 AM

*tilts head*

Is it just me, or is that script floating around all over the place recently?

Enigma_GP6 09-04-2001 05:05 AM

Actually, i heard that from someone else and didn't know that. I'm gonna modify it, but i need to understand it first.

-Rebel001

Enigma_GP6 09-04-2001 08:24 AM

Okay, pal, do what the nice monkey avatar says, he wont let you use it, just calm donw, no , NO ,NO! NO! Bad boy!!!!! Stop it, good, now, if you dont mind, I am gonna revise the script so you can use it,

-Rebel95

General 09-04-2001 09:47 AM

Quote:

Originally posted by LiquidIce00
well it would be nice if you didnt steal that out of Unholy Nation
you cant use or trade that script . I gave warpcaptain permission to use it with Enigma but you cant use it for your own server or anywhere outside of Unholy Nation or enigma

omg, liquid, that looks EXACTLY like my time script, so die die die die

nyghtGT 09-05-2001 02:30 PM

omfg !!!
 
Liquid .... Please explain how that script was stolen considering the debugger dont evenwork no more ?

entravial 09-06-2001 03:59 AM

Quote:

Liquid .... Please explain how that script was stolen considering the debugger dont evenwork no more ?
*falls over laughing*

Somebody... please explain to me wheree this damn script STARTED from... :D

LiquidIce00 09-06-2001 04:35 AM

like I said I gave a version to Enigma cuz im friends with Warcap .. so its not hard for that gpguy to get it .. and if u want me to tell you how it works I will . and dont 'revise' my script. make ur own ;)

Enigma_GP6 09-06-2001 05:11 AM

geez guys, all i want is for you to answer the question! SO STOP BICKERING AND ARGUING! :mad:

Enigma_GP6 09-06-2001 05:18 AM

I will revise it if I want to, and if you think you're so smart, beat this:
PHP Code:

if (playerchats){Message #c;} 

I thought ot that all by myself in .00000055555 seconds,
and if you think you are smarter then me, how do you pronounce this?:
antidisestablishmentarianismplenepletenchiarysuper califregileisticexpealidosious.
All in one breath.
This is TRUE warfare.
Do you have what it takes?
are you skilled enough to overscript a newbie in half a second?
This is you chance.
Graalian Rebels.
Trust No One.
Show No Mercy.

-The one-and-only-really-pissed-off-Rebel95

entravial 09-06-2001 05:38 AM

Err ... I can say
Quote:

antidisestablishmentarianismplenepletenchiarysuper califregileisticexpealidosious.
twice in one breath... does that make me like... uber noob or something? :D :megaeek: :D :cool:

entravial 09-06-2001 05:59 AM

*grinning* Oh yes, and the time script doesn't seem to work offline even with timevar replaced with another variable increasing in the same manner... Heh... just thought you'd like to know ^_^

nyghtGT 09-06-2001 04:59 PM

bull shit ...
 
ok all this ownership of scripts i bull **** !!!
the people who own the scripts are GRAALONLINE.COM not Liquid or Warcaptain ....

nyghtGT 09-06-2001 05:43 PM

!!!
 
Quote:

Speak for yourself. Graal don't own any of my scripts.
Anything sent into Graal (levels, npcs, pws) becomes property of graal ...

nyghtGT 09-06-2001 05:54 PM

ugh ...
 
i meant whatever is turned into graal belongs to it as of then ...
i dont know WTF your starting to talk bout ....

entravial 09-07-2001 03:12 AM

Kaimetsu can't keep his thee's and thou's and thine's straight when annoyed...

Anyway...

You own the script itself, graal owns the script as a whole... it would be like having a book where you own the pages, but a company owns the book itself... confusing?

And don't start saying graal owns everything on it... sheesh, look at what Graal's based on anyway... and at some of the heads... etc.

Enigma_GP6 09-09-2001 08:16 AM

GEEZ LAWEEZ PEOPLE!! just answer the question! I don't need any arguments! If i did, i would've asked for them! SO JOUST ANSWER THE $%&^*(# QUESTION! :mad:

-Rebel001

Falcor 09-09-2001 03:55 PM

I own 100% of my script since i wrote it

graal own 0 percent.

Acually I do alot of my script writing in a txt file now so you can even say i use graal to write them.

Enigma_GP6 09-10-2001 03:23 AM

Quote:

You have no right to a reply.
be quiet Kaimetsu. I just made a new code anyways, liquidice00, so tell me how it works and argue somewhere else! :mad:

Rebel001

Enigma_GP6 09-12-2001 08:08 AM

Guys, for the last time, answer the question please? i'm getting bored of watching this ownership arguement.

-Rebel001

Enigma_GP6 09-13-2001 05:22 AM

Okay, how about this? We can delete liquidice00, and Kaimetsu, then, we'll own the forum! Well, kinda, there are still a FEW good scripters out there. *COUCH*me*COUGH*
:babble:
now, stop the arguing, and answer the easy and simple question, or I will die laughing at you idiots. :D


-Rebel95

entravial 09-13-2001 05:56 AM

~AlphaFlame~

No no, you'd hafta get rid of... Kaimetsu, Lady Midnight, Stefan, Kyle, Shrimp.... and... uhh... ok, who am I forgetting? Not Antago or Ice Pick... uhh... some fruity fruit :megaeek:

Enigma_GP6 09-14-2001 03:48 AM

ha ha ha ha ha ha ha ha ha ha ha! Kaimetsu hasn't said anything 'cause he dont know what it means!!!!!!!


-Rebel001


So true.
-Rebel95

Enigma_GP6 09-14-2001 07:34 AM

ya know, i love people with big heads and a huge chip on their soldier. :D
-Rebel001



OMG!!!! Look at Kaimetsu's HUGE head and the great wall of China on his shoulder!!!!
:eek:
-Rebel95

okay,to get serious here, i'm good at scripting, and i help people all the time! I'm busy with like 500 other NPCs to work on, i don't have time to figure it out!
-Rebel001

nyghtGT 09-14-2001 04:05 PM

ack !!!
 
to make something happen at a specific time just do .....

if (playerenters) {toweapons *Time}
if (isweapon||timeout) {timeout=.05;
this.minute = int(timevar / .2)%60;
this.hour = int(this.minute / 60)%24;
this.day = int(this.hour / 24)%30;
this.month = int(this.day / 30)%12;
this.year = int(this.month / 12)}
if (weaponfired) {setstring year,#v(this.year);
setstring month,#v(this.month);
setstring day,#v(this.day);
setstring hour,#v(this.hour);
setstring minute,#v(this.minute);
setstring minute,#v(this.minute);
say2 Graalian Rebel Time#b
Time: #s(hour):#s(minute)#s(minute)#b
Date: #s(month)/#s(day)/#s(year)}
if (#v(this.day=25) && #v(this.month=25)) {
say2 Merry Christmas !!!;}

I aint the great scripter but tha will work ....

entravial 09-15-2001 04:55 AM

~AlphaFlame~

GRAH!! It's that dumb time script every has stolen and passed around like a drunk ***** again!

(Err... I'm thinking that's not out of line? If it is, me sorry :( )

ArmadeusWarlock 09-16-2001 10:08 PM

=(
 
Why cant people make there own scripts? Mine isnt at all like that, but it still works fine =)

Enigma_GP6 09-22-2001 10:59 AM

probably 'cause there is no time code, he has no time to do it.

-Rebel95

Tyhm 09-22-2001 11:41 AM

This question is asked almost often enough to justify making a template NPC of it in the new Graal version.

Almost. Mercifully, it's not quite.

KJS 09-22-2001 07:41 PM

Re: ack !!!
 
Quote:

Originally posted by nyghtGT
to make something happen at a specific time just do .....

if (playerenters) {toweapons *Time}
if (isweapon||timeout) {timeout=.05;
this.minute = int(timevar / .2)%60;
this.hour = int(this.minute / 60)%24;
this.day = int(this.hour / 24)%30;
this.month = int(this.day / 30)%12;
this.year = int(this.month / 12)}
if (weaponfired) {setstring year,#v(this.year);
setstring month,#v(this.month);
setstring day,#v(this.day);
setstring hour,#v(this.hour);
setstring minute,#v(this.minute);
setstring minute,#v(this.minute);
say2 Graalian Rebel Time#b
Time: #s(hour):#s(minute)#s(minute)#b
Date: #s(month)/#s(day)/#s(year)}
if (#v(this.day=25) && #v(this.month=25)) {
say2 Merry Christmas !!!;}

I aint the great scripter but tha will work ....

I would first personally replace the

setstring day,#v(this.day)

and stuff like that with
local.day=this.day;
or like
level.day=this.day;
you dont have to use strings...

and that way you can even make it shorter w/o setting this.day

just set it directly to like

local.day
or
level.day

nyghtGT 09-23-2001 02:14 PM

unfortunately ...
 
unfortunately this is not a script i can call my own ... it was supposably made by that Rebel guy and he wanted to know how to make something happen at a specific time so i just put his script back in and added my little 'if (#v(this.month' stuff to make a certain thing happen at a certain time ... Also, if i were gonna waste my time making a clock i would at least make some custom graphics for it and stuff instead of just using 'say2'
:D


All times are GMT +2. The time now is 06:12 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.