Well, I'm faced with an interesting challenge...:
The MUD I play does not offer any sort of timed ignore or channel tune built in, so I am faced with building my own.
This was a low priority item on my to-do list, but the higher in level I get, the more I get leech nagged, so the priority for this project has been moved up dramatically.
The main challenge is this: I want to have an action take place after a variable amount of time has passed, but time spend offline, or even while MUSHclient is not loaded should count.
For example:
I set a 6 hour ignore on "LeechBoy".
3 hours later I log off, close MUSHclient, turn off my computer.
12 hours later I load MUSHclient, connect to MUD.
MUSHclient notices target time has passed, issues commands.
I don't believe I could do that simply with the current functionality of the timer tools. I would likely need write script that involved:
I always try and consider the overhead in any scripts I write, and the thing I don't like about this one is that each player/channel on temp. ignore requires 1 timer and 2 variables.
If the functionality was built right into mushclient then I would simply build 1 timer per player/channel:
I assume I would set a flag in the addtimer which would indicate the timer should count realtime, (but not fire while disconnected).
Hmm... As you can tell, I'm sort of doing the brainstorming on the fly, as I write this. Seems to be a good way for me to "plan" my scripts before writing them.
Any suggestions appreciated. :)
The MUD I play does not offer any sort of timed ignore or channel tune built in, so I am faced with building my own.
This was a low priority item on my to-do list, but the higher in level I get, the more I get leech nagged, so the priority for this project has been moved up dramatically.
The main challenge is this: I want to have an action take place after a variable amount of time has passed, but time spend offline, or even while MUSHclient is not loaded should count.
For example:
I set a 6 hour ignore on "LeechBoy".
3 hours later I log off, close MUSHclient, turn off my computer.
12 hours later I load MUSHclient, connect to MUD.
MUSHclient notices target time has passed, issues commands.
I don't believe I could do that simply with the current functionality of the timer tools. I would likely need write script that involved:
On Ignore/Tune
Store target to variable
Store endtime for target to variable
On TargetTime
Perform delayed action.
Delete target variable, Target Endtime variable
On Connect
Recalculate all end time variables.
Act on elapsed TargetTimes
Rebuild MUSHclient Ignore/Tune timers.
I always try and consider the overhead in any scripts I write, and the thing I don't like about this one is that each player/channel on temp. ignore requires 1 timer and 2 variables.
If the functionality was built right into mushclient then I would simply build 1 timer per player/channel:
calculate endtime
build timer with "send" as "unignore -targetname" or "tune in channel"
I assume I would set a flag in the addtimer which would indicate the timer should count realtime, (but not fire while disconnected).
Hmm... As you can tell, I'm sort of doing the brainstorming on the fly, as I write this. Seems to be a good way for me to "plan" my scripts before writing them.
Any suggestions appreciated. :)