Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-04-2001, 03:04 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Question 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
Reply With Quote
  #2  
Old 09-04-2001, 03:12 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
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
Reply With Quote
  #3  
Old 09-04-2001, 03:47 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to 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
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #4  
Old 09-04-2001, 04:26 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
*tilts head*

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


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #5  
Old 09-04-2001, 05:05 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
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
Reply With Quote
  #6  
Old 09-04-2001, 08:24 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
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
Reply With Quote
  #7  
Old 09-04-2001, 09:47 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
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
Reply With Quote
  #8  
Old 09-05-2001, 02:30 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
omfg !!!

Liquid .... Please explain how that script was stolen considering the debugger dont evenwork no more ?
Reply With Quote
  #9  
Old 09-06-2001, 03:59 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
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...
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #10  
Old 09-06-2001, 04:35 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #11  
Old 09-06-2001, 05:11 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Angry

geez guys, all i want is for you to answer the question! SO STOP BICKERING AND ARGUING!
Reply With Quote
  #12  
Old 09-06-2001, 05:18 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
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
Reply With Quote
  #13  
Old 09-06-2001, 05:38 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
Err ... I can say
Quote:
antidisestablishmentarianismplenepletenchiarysuper califregileisticexpealidosious.
twice in one breath... does that make me like... uber noob or something?
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #14  
Old 09-06-2001, 05:59 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
*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 ^_^
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #15  
Old 09-06-2001, 04:59 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
bull **** ...

ok all this ownership of scripts i bull **** !!!
the people who own the scripts are GRAALONLINE.COM not Liquid or Warcaptain ....
Reply With Quote
  #16  
Old 09-06-2001, 05:43 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
!!!

Quote:
Speak for yourself. Graal don't own any of my scripts.
Anything sent into Graal (levels, npcs, pws) becomes property of graal ...
Reply With Quote
  #17  
Old 09-06-2001, 05:54 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
ugh ...

i meant whatever is turned into graal belongs to it as of then ...
i dont know WTF your starting to talk bout ....
Reply With Quote
  #18  
Old 09-07-2001, 03:12 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
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.
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #19  
Old 09-09-2001, 08:16 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Angry

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!

-Rebel001
Reply With Quote
  #20  
Old 09-09-2001, 03:55 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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.
__________________

subliminal message: 1+1=3
Reply With Quote
  #21  
Old 09-10-2001, 03:23 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Angry

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!

Rebel001
Reply With Quote
  #22  
Old 09-12-2001, 08:08 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Red face

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

-Rebel001
Reply With Quote
  #23  
Old 09-13-2001, 05:22 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
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.


-Rebel95
Reply With Quote
  #24  
Old 09-13-2001, 05:56 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~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
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #25  
Old 09-14-2001, 03:48 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Talking

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
Reply With Quote
  #26  
Old 09-14-2001, 07:34 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Talking

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



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

-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
Reply With Quote
  #27  
Old 09-14-2001, 04:05 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ....
Reply With Quote
  #28  
Old 09-15-2001, 04:55 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~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 )
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #29  
Old 09-16-2001, 10:08 PM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
=(

Why cant people make there own scripts? Mine isnt at all like that, but it still works fine =)
Reply With Quote
  #30  
Old 09-22-2001, 10:59 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
probably 'cause there is no time code, he has no time to do it.

-Rebel95
Reply With Quote
  #31  
Old 09-22-2001, 11:41 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
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.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #32  
Old 09-22-2001, 07:41 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
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
__________________
Thanks,
-KJL
Reply With Quote
  #33  
Old 09-23-2001, 02:14 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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'
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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