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 02-28-2002, 09:03 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Wtf

This is so f**ked up

// NPC made by Rob Getashu
timereverywhere;
if (playerenters) {
// Get Times Here!
this.day = int(timevar/288)%256;
this.hours = (int(timevar/12)%12);
this.hour = (this.hours%12)+1;
this.ampm = int(timevar/144)%2;
this.minute = int(timevar/.2)%60;
if (strlen(#v(this.minute))<2) {
setstring mins,0#v(this.minute);
} else {
setstring mins,#v(this.minute);

timeout=0.05;
}
}
if (strlen(#v(this.hour))<0&&strlen(#v(this.hour))>1& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.19;
}
if (strlen(#v(this.hour))<1&&strlen(#v(this.hour))>2& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.29;
}
if (strlen(#v(this.hour))<2&&strlen(#v(this.hour))>3& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.39;
}
if (strlen(#v(this.hour))<3&&strlen(#v(this.hour))>4& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.49;
}
if (strlen(#v(this.hour))<4&&strlen(#v(this.hour))>5& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.59;
}
if (strlen(#v(this.hour))<5&&strlen(#v(this.hour))>6& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.25,0.25,0.20,0.19;
}
if (strlen(#v(this.hour))<6&&strlen(#v(this.hour))>7& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.75,0.85,0.70,0.99;
}
if (strlen(#v(this.hour))<7&&strlen(#v(this.hour))>8& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0,0,0,0;
}
if (strlen(#v(this.hour))<8&&strlen(#v(this.hour))>9& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0,0,1,0.99;
}
if (strlen(#v(this.hour))<9&&strlen(#v(this.hour))>10 &&strlen(#v(this.ampm))<72&&timeout) {
seteffect 0,1,0,0.99;
}
timeout=0.05;
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #2  
Old 02-28-2002, 09:06 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Re: Wtf

Not complete of all the hours and the SETEFFECT is screwed for right now. I need it to work first lol
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #3  
Old 02-28-2002, 10:03 AM
Phenom1K Phenom1K is offline
Registered User
Join Date: Dec 2001
Location: Somewhereoffthecoastof, Paradise
Posts: 138
Phenom1K is on a distinguished road
Send a message via AIM to Phenom1K Send a message via Yahoo to Phenom1K
try putting that NPC script between the tags and I might be able to help.
__________________
The following is a message brought to you in part by JR

The procedding was a message brought to you in part by JR
Reply With Quote
  #4  
Old 02-28-2002, 02:33 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Re: Wtf

Originally posted by SSRobgeta
This is so f**ked up
NPC Code:

// NPC made by Rob Getashu
timereverywhere;
if (playerenters) {
// Get Times Here!
this.day = int(timevar/288)%256;
this.hours = (int(timevar/12)%12);
this.hour = (this.hours%12)+1;
this.ampm = int(timevar/144)%2;
this.minute = int(timevar/.2)%60;
if (strlen(#v(this.minute))<2) {
setstring mins,0#v(this.minute);
} else {
setstring mins,#v(this.minute);

timeout=0.05;
}
}
if (strlen(#v(this.hour))<0&&strlen(#v(this.hour))>1& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.19;
}
if (strlen(#v(this.hour))<1&&strlen(#v(this.hour))>2& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.29;
}
if (strlen(#v(this.hour))<2&&strlen(#v(this.hour))>3& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.39;
}
if (strlen(#v(this.hour))<3&&strlen(#v(this.hour))>4& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.49;
}
if (strlen(#v(this.hour))<4&&strlen(#v(this.hour))>5& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.05,0.05,0.10,0.59;
}
if (strlen(#v(this.hour))<5&&strlen(#v(this.hour))>6& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.25,0.25,0.20,0.19;
}
if (strlen(#v(this.hour))<6&&strlen(#v(this.hour))>7& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0.75,0.85,0.70,0.99;
}
if (strlen(#v(this.hour))<7&&strlen(#v(this.hour))>8& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0,0,0,0;
}
if (strlen(#v(this.hour))<8&&strlen(#v(this.hour))>9& &strlen(#v(this.ampm))<72&&timeout) {
seteffect 0,0,1,0.99;
}
if (strlen(#v(this.hour))<9&&strlen(#v(this.hour))>10 &&strlen(#v(this.ampm))<72&&timeout) {
seteffect 0,1,0,0.99;
}
timeout=0.05;

__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #5  
Old 03-01-2002, 01:11 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Ok well someone beat me to it -.-
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
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 07:40 PM.


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