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 10-27-2001, 03:33 AM
Jaguar__5 Jaguar__5 is offline
Legendary Script0r
Join Date: Aug 2001
Location: Florida
Posts: 17
Jaguar__5 is on a distinguished road
Send a message via AIM to Jaguar__5
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
Reply With Quote
  #2  
Old 10-27-2001, 04:35 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
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..."
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #3  
Old 10-27-2001, 04:38 AM
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
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 ...


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;
}




Last edited by nyghtGT; 10-27-2001 at 04:47 AM..
Reply With Quote
  #4  
Old 10-27-2001, 04:57 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
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 ...


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..
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #5  
Old 10-27-2001, 05:33 AM
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:
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 ...

Last edited by nyghtGT; 10-27-2001 at 02:52 PM..
Reply With Quote
  #6  
Old 10-27-2001, 05:37 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
No, 'tis fine...I'll just have to "point out" the errors to him next time I see him online
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #7  
Old 10-27-2001, 10:15 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
lol ya like this.time.. and time.. yep
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #8  
Old 10-27-2001, 10:30 AM
Brad_Elven Brad_Elven is offline
Registered User
Join Date: Jul 2001
Posts: 0
Brad_Elven is on a distinguished road
Send a message via AIM to Brad_Elven
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
im gonna kill myself
Reply With Quote
  #9  
Old 10-27-2001, 11:49 AM
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
works ...

its works offline for me ...
Reply With Quote
  #10  
Old 10-27-2001, 12:16 PM
Jaguar__5 Jaguar__5 is offline
Legendary Script0r
Join Date: Aug 2001
Location: Florida
Posts: 17
Jaguar__5 is on a distinguished road
Send a message via AIM to Jaguar__5
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
Reply With Quote
  #11  
Old 10-27-2001, 02: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
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 ...
Reply With Quote
  #12  
Old 10-28-2001, 04:30 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
how many years of math have u taken, this is simple stuff
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 05:39 AM.


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