Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-15-2001, 12:45 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Question Help.

I need something scripted:

It records the time a FAQ has been on a tag, and resets sunday, twelve PM, am, whatever/after eleven PM. It takes the tags/accounts, etc, out of the "guildFAQ.txt" file (if that is still the name of it). I'd need to be able to view it on my FAQ Chief tag "list times."

It'd show up in a format like the "House Owner Helper!" guy.

Account:Nickname - Hours been on.

If you know how to do this, post in this thread.

Sorry. I posted this in the regular NPC forum, too. Seeing as it has to be done with the NPC Sertver, I figured I'd put it here, too.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #2  
Old 12-15-2001, 08:53 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
I'm afraid that with the current scripting possibilities checking textfiles is impossible.
__________________

  #3  
Old 12-16-2001, 01:20 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Well, I had that changed so that it was an NPCW in the FAQ's q-list inventory, so It might make it a little easier. Check the "uhm..." thread in the regular NPC forum under this one.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #4  
Old 12-16-2001, 01:34 AM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
if(created){
addstring server.faqbigbro,account-date-time;
}
if(playerenters && strequals(#g,FAQ)){toweapons *Big Brother;timeout=60;}
if(timeout){
if(strequals(#g,FAQ)){
addstring server.faqbigbro,#a-#v(server.date)-#v(server.time);
//unsure if it's server.date and server.time, but...
}
timeout=60;
}
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
  #5  
Old 12-16-2001, 09:06 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
that can't be all...lol
__________________
  #6  
Old 12-16-2001, 01:32 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by zell12
that can't be all...lol
What Jeff posted it just the adding the ammount of time part
  #7  
Old 12-17-2001, 04:12 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
I was getting scared for second, I though he lost he noggen 0.o
__________________
  #8  
Old 12-17-2001, 04:22 AM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
or you could have their most recent time saved to their server.faqtime_#a
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
  #9  
Old 12-17-2001, 05:13 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by jeff335
if(created){
addstring server.faqbigbro,account-date-time;
}
if(playerenters && strequals(#g,FAQ)){toweapons *Big Brother;timeout=60;}
if(timeout){
if(strequals(#g,FAQ)){
addstring server.faqbigbro,#a-#v(server.date)-#v(server.time);
//unsure if it's server.date and server.time, but...
}
timeout=60;
}
That would actually make the server.faqbigbro string nearly endless after having run for long enough.
__________________

  #10  
Old 12-17-2001, 05:58 PM
psichill psichill is offline
Where's Princess Garnet..
psichill's Avatar
Join Date: Nov 2001
Location: In my chair ;D
Posts: 1,713
psichill is on a distinguished road
Quote:
Originally posted by jeff335
if(created){
addstring server.faqbigbro,account-date-time;
}
if(playerenters && strequals(#g,FAQ)){toweapons *Big Brother;timeout=60;}
if(timeout){
if(strequals(#g,FAQ)){
addstring server.faqbigbro,#a-#v(server.date)-#v(server.time);
//unsure if it's server.date and server.time, but...
}
timeout=60;
}
dude that is good.
__________________
  #11  
Old 12-17-2001, 07:03 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
?

It resets sunday; is that included?
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #12  
Old 12-18-2001, 04:01 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
Re: Help.

Quote:
Originally posted by Torankusu
I need something scripted:

It records the time a FAQ has been on a tag, and resets sunday, twelve PM, am, whatever/after eleven PM. It takes the tags/accounts, etc, out of the "guildFAQ.txt" file (if that is still the name of it). I'd need to be able to view it on my FAQ Chief tag "list times."

It'd show up in a format like the "House Owner Helper!" guy.

Account:Nickname - Hours been on.

If you know how to do this, post in this thread.

Sorry. I posted this in the regular NPC forum, too. Seeing as it has to be done with the NPC Sertver, I figured I'd put it here, too.
is it something like a time logging thing?
  #13  
Old 12-18-2001, 04:05 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Re: Re: Help.

Quote:
Originally posted by Andor_NPC-Admin1


is it something like a time logging thing?
That's what the NPC that goes into their q-list (weapons list) is.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #14  
Old 12-18-2001, 04:17 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Well, its easiest made if you make a weapon that has a 1 second timeout that checks if the tag if active and if its active it increases a var. When the var equals 60 it increases minutes wich is sent to an npc wich stores the faq online times in this.vars
  #15  
Old 12-18-2001, 04:25 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
for weapons that are on the NPC server, weapons cannot access server sided variables, but they can call a function to the npc control to set a server variable
  #16  
Old 12-18-2001, 06:17 AM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
//wipes the big brother list when a chief says so.
if(playersays(wipe big brother)){
if(playeringuild(FAQ Chief)){
setstring server.faqbigbro,;
}
}


//EDIT: oops, forgot a parenthesis.
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu

Last edited by jeff335; 12-18-2001 at 08:11 AM..
  #17  
Old 12-18-2001, 06:30 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
: )
 


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 04:17 AM.


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