Barbarian
12-13-2002, 11:20 PM
Anyone know a way to get the output of clientCmdBottomPrint to stay up for more than a second or two? I made a little script to copy the output of whatever vote is started to bottomprint (since it's so easy to miss on large servers) and have the following code:
package BottomVote
{
function defaultMessageCallback(%m sgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10)
{
parent::defaultMessageCal lback(%msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10);
%type=detag(%msgType);
if(%type !$= "VoteStarted")
return;
if($voteprintenable)
clientCmdBottomPrint(%msg String, 5, 2);
}
};
activatepackage(BottomVot e);
According to the depot function reference,
clientCmdBottomPrint( %message, %time, %lines )
is the specs for the function, but no matter what I put in %time, 1,2,3,4,5, etc., it only stays up for 1/2 a second or so.
package BottomVote
{
function defaultMessageCallback(%m sgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10)
{
parent::defaultMessageCal lback(%msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10);
%type=detag(%msgType);
if(%type !$= "VoteStarted")
return;
if($voteprintenable)
clientCmdBottomPrint(%msg String, 5, 2);
}
};
activatepackage(BottomVot e);
According to the depot function reference,
clientCmdBottomPrint( %message, %time, %lines )
is the specs for the function, but no matter what I put in %time, 1,2,3,4,5, etc., it only stays up for 1/2 a second or so.