Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Last Time Script (I hope) (https://forums.graalonline.com/forums/showthread.php?t=15521)

Jaguar__5 10-27-2001 03:33 AM

Last Time Script (I hope)
 
Ok, this time script crap is really getting to my nerves, can't Stefan just take a few minutes, and put up how to divide and multiply the timevar to get the different values?
Then maybe we can manage to make our own scripts!
I'm a good NAT, but I've never used timevar and I really would like to know how the **** to use it! I have worked out a cool day/night script to add to it and once I get a working script, I can use it! I don't even need day/month, all I need is what time it is, I could easily make one for a P2P using serverflags, but not on non-p2p cause if they ain't online, the clock stops!
Please, lets just get a straight answer for this already!

-Jaguar

Xaviar 10-27-2001 04:35 AM

This is the reason it bothers me when I hear someone talking and the say something like "Yeah, I'm gonna be a computer programmer...No, no I haven't taken much math...Why do you need math to program?? It's all typing, you don't need math with computers..."

nyghtGT 10-27-2001 04:38 AM

Math is a programmers best friend ... if you dont know simple math functions and formulas programmming can be a b**** and impossible. My suggestion to you is to come up with a better formula to try to steal a time script ...
:D
:D
here look at this and maybe you'll learn something:
NPC Code:

NPC Code:

// NPC made by Lord Helmut
// Slightly Edited by me ... (i think)
if (created) {
timeout =0.5;
}
if(timeout){
this.time=timevar;
time+=1;
showimg 501,@verdana@v(time),475,80;
changeimgvis 501,4;
changeimgzoom 501,0;
timeout=1;
}




Xaviar 10-27-2001 04:57 AM

Quote:

Originally posted by nyghtGT
Math is a programmers best friend ... if you dont know simple math functions and formulas programmming can be a b**** and impossible. My suggestion to you is to come up with a better formula to try to steal a time script ...
:D
:D
here look at this and maybe you'll learn something:
NPC Code:

NPC Code:

// NPC made by Lord Helmut
// Slightly Edited by me ... (i think)
if (created) {
timeout =0.5;
}
if(timeout){
this.time=timevar;
time+=1;
showimg 501,@verdana@v(time),475,80;
changeimgvis 501,4;
changeimgzoom 501,0;
timeout=1;
}




Did Helmut really make that? I'll have to have a talk with him.. ;)

nyghtGT 10-27-2001 05:33 AM

Quote:

Originally posted by Xaviar


Did Helmut really make that? I'll have to have a talk with him.. ;)

yeah ... he posted it in this forum on some thread ... not to long ago i'll renew it if ya like ...

Xaviar 10-27-2001 05:37 AM

No, 'tis fine...I'll just have to "point out" the errors to him next time I see him online :D

dragoonvenganc 10-27-2001 10:15 AM

lol ya like this.time.. and time.. yep

Brad_Elven 10-27-2001 10:30 AM

Quote:

Originally posted by Xaviar
No, 'tis fine...I'll just have to "point out" the errors to him next time I see him online :D
im gonna kill myself

nyghtGT 10-27-2001 11:49 AM

works ...
 
its works offline for me ...

Jaguar__5 10-27-2001 12:16 PM

One thing: That don't do squat with timevar except make it this.time=timevar, nothing relates to it :P!
I've seen alot of scripts like that, its really quite annoying :P
I need an npc that on timeout shows the image (or text) in the spot, using the timevar to update itself :P
Timevar is SERVER managed, all the player has to do is read and convert it :P

nyghtGT 10-27-2001 02:54 PM

not ...
 
ya know i am not a scripting genious but that deals with time just perfectly ... and i enjoy it very much and use it for all my times needs including my growing babies ... :D

btedji 10-28-2001 04:30 AM

how many years of math have u taken, this is simple stuff


All times are GMT +2. The time now is 07:24 AM.

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