⌂Starsiege: Tribes Community Archive

Repair Notifications

by Lord Harlock & Presto
⤓ Download · 1.0 KB
Automatically announce repairs you are making... Requirements PrestoPack v0.93
Filename
Repairs.cs
Size
1.0 KB (listed 1KB)
Type
CS
Developer
Lord Harlock & Presto
Date
2009-01-15 (theexiled upload)
Format
ASCII text, with CRLF line terminators
Readme — Repairs.cs (from the archive itself)
// REPAIRS.CS - original script by Lord Harlock
// Modified by Presto for PrestoPak compatibility
// With job-tracking tabs for PrestoPack 0.92


$repairSameTime = 20; 
	//	For 20 seconds, more repairs on the same item will not message again.


Include("presto\\match.cs");
Include("presto\\say.cs"); // for flood protection
Include("presto\\event.cs");

function Repairs::OnClientMessage(%client, %msg) {
	if (%client != 0)
		return;
	if (Match::ParamString(%msg, "Repairing %r")) {
		%repair = Match::Result(r);
		if (getClientByName(%repair) != 0)
			return;

		if (Flood::Protect("repair"@%repair, $repairSameTime)) {
			$repairItem = %repair;
			say(1, "I am making repairs to " @ $repairitem @ "...~job:iam-rep");
			}
		return;
		}
	if (%msg == "Repair Done") {
		if ($repairitem != "") {
			say(1, "Repairs completed on " @ $repairitem @ "~job:fin-rep~job:iam-wait");
			$repairitem = "";
			}
		return;
		}
	if (%msg == "Repair Stopped") {
		return;
		}
	}
Event::Attach(eventClientMessage, Repairs::OnClientMessage);
repair
Source: The Exiled — Tribes Repository
Original page: https://library.theexiled.pwnageservers.com/file.php?id=538
Archived source HTML: theexiled/mirror-html/file/538.html