![]() |
Uhm...
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. |
Are you sure this is possible with the hours next to their name? This is very complicated.
|
I would think so? Classic had something similar to it, but they weren't able to have it like I described it because of no NPC server...
It's a little -faqsystem like NPC, by the way. It goes to their q-list inventory. |
Oh if its a NPCW then it shouldn't be hard at all.
|
Quote:
Do you think you could do it? And if you could, would you mind? |
~AlphaFlame~
Hmm... non-p2p would use a couple of server. flags and some this.variables... otherwise I dunno... Note to self: do p2p scripting one day in the next 20 years |
Note to self:Me too.
|
if(strequals(#g,FAQ)){
if(strtofloat(#s(starttime))<1){ setstring starttime,#v(timevar); } }else{ if(strtofloat(#s(starttime))<0){ setstring timeontag,#v(strtofloat(#s(timeontag))+(timevar-strtofloat(#s(starttime)))); }} You can store it manually, and it'll store timeontag as a function of timevar (since it goes up once every like 2 seconds, divide by 30 to get the number of minutes, etc) |
um it goes up every 5 seconds...
|
Quote:
|
Quote:
|
NPC Code: SHOULD update the server.[accountname]timeontag string every five minutes, assuming it is indeed 5 seconds per click. NPC Code: Should report the H:M:S assuming 5 seconds per click - otherwise you can redo the math however you like. Uncomment the last line and it'll reset the time since last check; either way you're gonna have to record it, either how much time they put in last time you checked or what the last time you checked was. It'd be rude if you checked it (thereby clearing it), then checked again five minutes later and fired them for not coming on at all! |
1 Attachment(s)
Okay,
It shows up as (see attatched.) |
1 Attachment(s)
But it needs to be like this. (see attatched.)
The other stuff works fine. |
1 Attachment(s)
The "online" in that last one should be "on tag this week."
I'd need it to show up as something like in the screenshot attatched. Account Hours, Minutes, Seconds, etc. |
Hm, golly gee, in that case SCRIPT IT YOURSELF! Geeze, some people...give 'em an inch...*grumble grumble don't even work for this server grumble*
|
:(
Sorry, sorry. I can't script at all. Maybe I could get that one script from loriel, and then go from there. Thanks for that one script, tyhm. |
Tyhm, your pretty damn good at this whole scripting bit.:eek:
|
Arg use string arrays you people
|
This is with npc server?
if this is with npcserver, can't u use a with?
like: NPC Code: Its mostly done, i haven't tested it, i am still at school...it looks pretty good..should work... someone test it and tell me...ok? looks pretty good to me. :) -PastAustin |
someone
does this look right? i am tired...i think it looks good...
yeah? |
| All times are GMT +2. The time now is 03:04 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.