www.ClassicTW.com
https://mail.black-squirrel.com/

Player Activity from Daily Log
https://mail.black-squirrel.com/viewtopic.php?f=15&t=21163
Page 1 of 1

Author:  Promethius [ Sat Nov 08, 2008 11:03 pm ]
Post subject:  Player Activity from Daily Log

The script below will allow you to identify players that you want to see in regard to activity in the daily log. The script was written on the fly during a game I was in and should have several items added:
1) Get the date you want to see in a menu choice
2) Get the y/n for the daily time stamp
3) Fire the CLV automatically
4) Add option for file output instead of just echoing to screen
5) Add option to output data by player name

# find out what players did in the daily log
# enter cd - enter date such as 11/06 fire this script
# enter y/n to the time prompt

setVar $nameCnt 0
setVar $lineCnt 0
:getNames
echo "Enter player Name or 0 to go:"
getConsoleInput $playerName
if ($playerName <> "0")
add $nameCnt 1
setVar $player[$nameCnt] $playerName
goto :getNames
end

:begin
killalltriggers
setVar $i 1
while ($i <= $nameCnt)
setTextLineTrigger $i & $player[$i] :getLine $player[$i]
add $i 1
end
setTextTrigger pausePrompt :pausePrompt "[Pause]"
setTextTrigger comp :comp "Computer command"
pause
:getline
add $lineCnt 1
setVar $lineOut[$lineCnt] CURRENTLINE
goto :begin
:pausePrompt
send " "
goto :begin
:comp
setVar $i 1
while ($i <= $lineCnt)
echo ANSI_11 "*" $lineOut[$i]
add $i 1
end

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/