Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Help. (https://forums.graalonline.com/forums/showthread.php?t=18955)

Torankusu 12-15-2001 12:45 PM

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.

grim_squeaker_x 12-15-2001 08:53 PM

I'm afraid that with the current scripting possibilities checking textfiles is impossible.

Torankusu 12-16-2001 01:20 AM

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.

jeff335 12-16-2001 01:34 AM

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

zell12 12-16-2001 09:06 AM

that can't be all...lol :confused:

Python523 12-16-2001 01:32 PM

Quote:

Originally posted by zell12
that can't be all...lol :confused:
What Jeff posted it just the adding the ammount of time part

zell12 12-17-2001 04:12 AM

I was getting scared for second, I though he lost he noggen 0.o

jeff335 12-17-2001 04:22 AM

or you could have their most recent time saved to their server.faqtime_#a

grim_squeaker_x 12-17-2001 05:13 PM

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.

psichill 12-17-2001 05:58 PM

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.

Torankusu 12-17-2001 07:03 PM

?

It resets sunday; is that included?

Andor_NPC-Admin1 12-18-2001 04:01 AM

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?

Torankusu 12-18-2001 04:05 AM

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.

Slaktmaster 12-18-2001 04:17 AM

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

Andor_NPC-Admin1 12-18-2001 04:25 AM

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

jeff335 12-18-2001 06:17 AM

//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.

Andor_NPC-Admin1 12-18-2001 06:30 AM

: )


All times are GMT +2. The time now is 06:16 AM.

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