Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Time Script (I am making a PW) (https://forums.graalonline.com/forums/showthread.php?t=15358)

maximus_asinus 10-24-2001 10:03 AM

Time Script (I am making a PW)
 
1 Attachment(s)
Time Script. Please! I am begging!
I have been searching for 3 months now without success.I have been looking for a timescript for my PW (maybe p2p not sure).It is really good and everything but I feel that it needs the timescript.
Its not the Day/Nite deal I just want something like UN and Enigma have.I asked them and they tell me to do it myself! :D
Thats SO funny! I am barily going through math as it is.I got like 79% and thats for talking to the teacher after class and stuff.
I have asked and this is my last hope.
Pweese help me!

Quote:

The Mind is like an open wound.Leave it open too long and it will get infected.

Faheria_GP2 10-24-2001 10:19 AM

it's easy

seconds=timevar/5
minutes=seconds/60
hours=minutes/60
days=hours/24

use modulus and int() and figure it out from there

btedji 10-24-2001 07:12 PM

i know i used % to figure that stuff out

dragoonvenganc 10-24-2001 08:41 PM

% = mod / modulus

if u can not fiqure it out from there and no one on ur staff can do it then ur pw will suck and u have no reason even wasting ur time and making one.

maximus_asinus 10-25-2001 01:40 AM

I Need the NPC to show at the top of the screen like Enigma,Graal2001,and UN
Thanks for the help if you can tell me that.
And I thought you needed timevar in it somewhere.

Xaviar 10-25-2001 01:47 AM

Quote:

Originally posted by maximus_asinus
I Need the NPC to show at the top of the screen like Enigma,Graal2001,and UN
Thanks for the help if you can tell me that.
And I thought you needed timevar in it somewhere.

*IQ dropped 30 points*

Brad_Elven 10-25-2001 02:26 AM

use showimg...

maximus_asinus 10-25-2001 02:53 AM

ME R B DUMB DUMB!
I can't script good enogu for this.
Pweese if you have soem free time make me the script.
I don't wanna ask it but I have to.
My other scripters are really good but they have been on vacation for a bit.:mad:

Faheria_GP2 10-25-2001 05:11 AM

*Points to sig*

Petey84 10-25-2001 05:34 AM

Shakaku:

Well can u script at all? Maybe you should try for the easier stuff first dude

Quote:

*Points to sig*

AlexH 10-25-2001 05:44 AM

Quote:

Originally posted by maximus_asinus
ME R B DUMB DUMB!

you said it

maximus_asinus 10-25-2001 04:53 PM

I can script!
 
I CAN SCRIPT! :grrr:
I have been putting LONG hours into my server and I just wanted someone to script that for me.Man is that too much to ask?Tell you what.I will give 50 p2p money to the first person to get me the script.If ya can't do that then you aren't a scripter at all.Your just a newbie.

dragoonvenganc 10-25-2001 09:00 PM

Listen u little worth less noob.
If u can not do that ur self u and ur player world will suck.

You are calling others a noob. Ha why dont u go learn how not to be a noob ur self and u know what i would of done it for free but to some that is a jack *** they can do it there selves.

You server will suck what is its name so if it even gets up i can go on and see what to not do in a server :).

maximus_asinus 10-26-2001 01:35 AM

Me a newbie? w00t!
 
There isn't a face for laughing! w00t!
How long have you played graal?
I have 100 + hours for all the servers.
Plus on classic I have over 2000 hours and I have be rest......TWICE!
I can assure you I am no newb.
I just hate when the newbs come out and accuse others saying they are! Next time I see you I will be the owner of EverGraal,and the Chief GP for two servers and Head NAT for Aslysian.
Chief FAQ for Wuhan and Omikon and the Omikon related server!
w00t!
I laught at the newbie!
*points to the n00b*

Xaviar 10-26-2001 01:51 AM

Re: Me a newbie? w00t!
 
Quote:

Originally posted by maximus_asinus
There isn't a face for laughing! w00t!
How long have you played graal?
I have 100 + hours for all the servers.
Plus on classic I have over 2000 hours and I have be rest......TWICE!
I can assure you I am no newb.
I just hate when the newbs come out and accuse others saying they are! Next time I see you I will be the owner of EverGraal,and the Chief GP for two servers and Head NAT for Aslysian.
Chief FAQ for Wuhan and Omikon and the Omikon related server!
w00t!
I laught at the newbie!
*points to the n00b*

Time has nothing to do with how much skill you have...

Faheria_LAT1 10-26-2001 01:55 AM

Re: Me a newbie? w00t!
 
Quote:

Originally posted by maximus_asinus
There isn't a face for laughing! w00t!
How long have you played graal?
I have 100 + hours for all the servers.
Plus on classic I have over 2000 hours and I have be rest......TWICE!
I can assure you I am no newb.
I just hate when the newbs come out and accuse others saying they are! Next time I see you I will be the owner of EverGraal,and the Chief GP for two servers and Head NAT for Aslysian.
Chief FAQ for Wuhan and Omikon and the Omikon related server!
w00t!
I laught at the newbie!
*points to the n00b*

*points to the newbie that thinks time means something and that he thinks his server will be put up a few days after sending it in*

Aslysian, Wuhan and Omikon, weird.. never heard of those and I don't think I saw them on the PW Tester Website.

maximus_asinus 10-26-2001 02:19 AM

w00t!
 
If time doesn't count what does?
Kills?deaths? scripting ability?
w00t!
I want the script not you life story (I picked it off the shelf at my local Library and it was 1 page long,whats up with that?)
If you call me a newbie I hate to see what you are.
Please post about a script!
And PS.
If you never heard of the servers thats REALLY bad.
Go on classic and mass once and you will get a dozen replies!:D

Faheria_GP2 10-26-2001 05:03 AM

Re: Me a newbie? w00t!
 
Quote:

Originally posted by maximus_asinus
There isn't a face for laughing! w00t!
How long have you played graal?
I have 100 + hours for all the servers.
Plus on classic I have over 2000 hours and I have be rest......TWICE!
I can assure you I am no newb.
I just hate when the newbs come out and accuse others saying they are! Next time I see you I will be the owner of EverGraal,and the Chief GP for two servers and Head NAT for Aslysian.
Chief FAQ for Wuhan and Omikon and the Omikon related server!
w00t!
I laught at the newbie!
*points to the n00b*

haha, those PWs are doomed to failure, and if you are Head NAT of a PW already up i will cry. BTW I am Head NAT Sidra, and an NPC admin for Faheria, and i do freelance scripting for any PW that asks

zell12 10-26-2001 10:21 AM

Everyone, a noob is someone who is new to a game, or games...
Skill is not based on time, kills, deaths, or what ver your started at, its the skill for scripting you have. Anyone can script basic, its just the other people that are skilled in scripting that can to the advanced stuff...:o

nyghtGT 10-26-2001 10:56 AM

Quote:

Originally posted by maximus_asinus
ME R B DUMB DUMB!
I can't script good enogu for this.
Pweese if you have soem free time make me the script.
I don't wanna ask it but I have to.
My other scripters are really good but they have been on vacation for a bit.:mad:

if you cant script good enough then dont ask ...
and if your scripters happen to be away then fire em ...
i got one thats pretty neat and uses the numbers like the ones on 2001. My tip for this would be to set values for each number and use showimg to place them on the screen ... the rest is up to you ... try to learn how to add to varials and make simple counting NPC's ... time scripts aren't hard ... they mey look that way but all it is is a "++" type of script ...

nyghtGT 10-26-2001 10:58 AM

here this can help you maybe:
its timeout loop:
NPC Code:

NPC Code:

if (created) {
timeout = 1;
}
if (timeout) {
this.time++;
timeout=1;
}




maximus_asinus 10-27-2001 03:53 PM

I am going to post a timescript and if you can fix it please post the fix.And not its not the cheap day/nite script.It doesn't deal with that sorta palet change.Its just for the year,month,day, and time sorta thing.
PLEASE AND THANK YOU! http://www.mapleleafs.com/images/index/index/box_1.jpg

nyghtGT 10-27-2001 04:33 PM

Re: Me a newbie? w00t!
 
Quote:

Originally posted by maximus_asinus
There isn't a face for laughing! w00t!
How long have you played graal?
I have 100 + hours for all the servers.
Plus on classic I have over 2000 hours and I have be rest......TWICE!
I can assure you I am no newb.
I just hate when the newbs come out and accuse others saying they are! Next time I see you I will be the owner of EverGraal,and the Chief GP for two servers and Head NAT for Aslysian.
Chief FAQ for Wuhan and Omikon and the Omikon related server!
w00t!
I laught at the newbie!
*points to the n00b*

1st: Bragging about how many hours you have is a real good way to try to make friends on here ... (not) you need to just stop being so annoying. Having a million hours on Graal does not mean anything ... I know quite a few people with 500-600 hours on classic and new main who dont know jack s*** about making levels ...

2nd: Posting a script is a ood way to get it fixed. Even though some people may steal it *cough*cough* but ... just stop trying to brag dude ... we dont play that ...

:D

maximus_asinus 10-28-2001 06:53 AM

My script.Please Fix.
 
IF YOU CAN FIX THIS PLEASE POST WHAT IS WRONG.
I am assuming that the mistake is with the showimg but not sure.Please help. :D

if (playerenters && !isweapon) {
toweapons -Time System;
timeout = 0.05;
}
if (isweapon && (playerenters || timeout)) {
mytimervar = timevar;
daymins = (mytimevar%720)*2;
days = int(mytimevar/720);
months = int(days/24);
daysinmonth = days%24;
cyclus = int(months/32);
monthincyclus = months%32;
years = 1+cyclus*2+(monthincyclus>15 ? 1 : 0);
drawDate();
drawTime();
}


function drawDate() {
setarray count,9;
drawx = 230;
drawy = 70;
count[0] = (monthincyclus<15 ? 15 : 12);
i = years;
count[2] = i%10;
count[1] = int(i/10);
count[3] = 13;
i = (monthincyclus>=15 ? monthincyclus-15 : monthin);
count[5] = i%10;
count[4] = int(i/10);
count[6] = 14;
i = daysinmonth+1;
count[8] = i%10;
count[7] = int(i/10);
i = 0;
while (i<=8) {
imgindex = 1010+i;
showimg imgindex,state.png,drawx,drawy;
changeimgpart imgindex,count[i]*14,81,14,16;
changeimgvis imgindex,4;
drawx = drawx+(12);
if (i in {0,3,6}) {
drawx = drawx+(2);
}
i = i+1;
}
}
function drawTime() {
setarray count,2;
drawx = 350;
drawy = 70;
showimg 1000,state.png,drawx,drawy;
changeimgpart 1000,162,60,14,14;
changeimgvis 1000,4;
dayhour = int(daymins/60);
count[0] = int(dayhour/10);
count[1] = dayhour%10;
i = 0;
while (i<=1) {
if (i==0 && count[i]==0) {
hideimg 1001+i;
continue;
}
showimg 1001+i,state.png,drawx+16+i*12,drawy;
changeimgpart 1001+i,count[i]*14,81,14,16;
changeimgvis 1001+i,4;
i = i+1;
}
showimg 1003,state.png,drawx+40,drawy;
changeimgpart 1003,154,81,14,16;
changeimgvis 1003,4;
mins = daymins%60;
count[0] = int(mins/10);
count[1] = mins%10;
i = 0;
while (i<=1) {
showimg 1004+i,state.png,drawx+52+i*12,drawy;
changeimgpart 1004+1,count[i]*14,81,14,16;
changeimgvis 1004+i,4;
i = i+1;
}
}
function hideicons() {
showimg 1001+i,state.png,drawx+40,drawy;
changeimgpart 1003,154,81,14,16;
mins = daymins%10;
i = 0;
while (i<=1) {
showimg 1004+i,state.png,drawx+52+i*12,drawy;
changeimgpart 1004+i,count[i]*14,81,14,16;
changeimgvis 1004+i,4;
i = i+1;
}
showimg 1003,state.png,drawx+40,drawy;
changeimgpart 1003,154,81,14,16;
changeimgvis 1003,4;
mins = daymins%60;
count[0] = int(mins/10);
count[1] = mins%10;
i = 0;
while (i<=1) {
showimg 1004+i,state.png,drawx+52+i*12,drawy;
changeimgpart 1004+i,count[i]*14,81,14,16;
changeimgvis 1004+i,4;
i = i+1;
}
}
function hideicons() {
i = 0;
while (i<=20) {
hideimg 1000+i;
i = i+1;
}
}
http://www.mapleleafs.com/images/ind...ex/b2_domi.jpg

Poogle 10-29-2001 01:59 AM

HMM.....................
 
(chris: )
Graal scripting is part of javascripting so can i call the date and time elements from javascript and convert them to create a sort of time script?

6Burning6Church6 10-29-2001 06:35 AM

Re: Me a newbie? w00t!
 
Quote:

Originally posted by maximus_asinus
There isn't a face for laughing! w00t!
How long have you played graal?
I have 100 + hours for all the servers.
Plus on classic I have over 2000 hours and I have be rest......TWICE!
I can assure you I am no newb.
I just hate when the newbs come out and accuse others saying they are! Next time I see you I will be the owner of EverGraal,and the Chief GP for two servers and Head NAT for Aslysian.
Chief FAQ for Wuhan and Omikon and the Omikon related server!
w00t!
I laught at the newbie!
*points to the n00b*

I have less then 500 hours on Graal Classic. I have 200-300 on G2k1, does that mean I am a newbie?

I owned Evolution when the first playerworlds were up.

I started the 13th Graal.

nyghtGT 10-30-2001 10:24 PM

i dont have over 200 hours on any server ...
i hve done nothing to further graal ...
i started playing around the 1.2versions and that does not make me a newB. I.e. i know peopl on 2001 with around 500-600 hours who ask me constantly about stupid things ... I wont tell there names *cough*cough* Link *cough*cough*....

royce 10-31-2001 04:55 AM

Re: Me a newbie? w00t!
 
Quote:

Originally posted by maximus_asinus
There isn't a face for laughing! w00t!
How long have you played graal?
I have 100 + hours for all the servers.
Plus on classic I have over 2000 hours and I have be rest......TWICE!
I can assure you I am no newb.
I just hate when the newbs come out and accuse others saying they are! Next time I see you I will be the owner of EverGraal,and the Chief GP for two servers and Head NAT for Aslysian.
Chief FAQ for Wuhan and Omikon and the Omikon related server!
w00t!
I laught at the newbie!
*points to the n00b*

Good gosh....he needs to take some of Muad's secret medicine....i forgot what was in there...well depending on the time u have looks like u take advantage of Scripters and level makers by spending ur time on servers more then actually thinking that it takes time and effort into the levels and scripts.....So man, ur in the Scripting Forum and here ur NOOB! maybe not somewhere else but here your a
Quote:

NOOB!

nyghtGT 10-31-2001 08:45 AM

Re: Re: Me a newbie? w00t!
 
Quote:

Originally posted by royce


Good gosh....he needs to take some of Muad's secret medicine....i forgot what was in there...well depending on the time u have looks like u take advantage of Scripters and level makers by spending ur time on servers more then actually thinking that it takes time and effort into the levels and scripts.....So man, ur in the Scripting Forum and here ur NOOB! maybe not somewhere else but here your a

uhh, i am to lazy to read all that ... put in smaller messages

royce 10-31-2001 09:03 AM

no can do

nyghtGT 10-31-2001 09:34 AM

:(

royce 11-01-2001 04:30 AM

lol nice pheer thing man...


All times are GMT +2. The time now is 08:25 PM.

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