|
|
It is currently Sat Apr 27, 2024 8:59 pm
|
View unanswered posts | View active topics
|
|
|
|
|
Users browsing this forum: No registered users and 21 guests |
|
|
|
|
|
|
|
|
|
Author |
Message |
TE-Noxwizard
Joined: Tue Jun 07, 2005 5:59 pm Posts: 942 Location: Texas
|
Posted: Tue Jan 24, 2006 10:24 am Post subject:
|
|
|
You'll need to put everything in it's correct place.
In: function KpackCount::Update()
Add:
Code: | export("$Kills::Rocket*", "config\\KpackCount.cs", True); // -Noxwizard |
In: function KpackCount::ReadFile() Add somewhere after: //Start stat tracking files
Code: | /////************************************************************************************************
if(isFile("config\\rocketkills.cs")) { exec("rocketkills.cs"); export("$Rocket::Kills", "config\\rocketkills.cs", True); $Kills::Rocket[$KpackCount::ClientNum] = ($Rocket::Kills); File::delete("config\\rocketkills.cs"); File::delete("config\\kpack\\rocketct.cs"); } else { $Kills::Rocket[$KpackCount::ClientNum] = 0; } |
Near the end of the same function add:
Code: | $Kills::Rocket[$KpackCount::ClientNum] = 0; // -Noxwizard |
Code: | //////// ROCKET TRONICS /////////////////////////////
function RocketTronics(%client, %msg) { if ($PCFG::Gender == "FEMALE") { $TEMP::Gender = "her"; } else { $TEMP::Gender = "his"; }
if (String::findSubStr(%msg, " gets a hot rocket injection from " @ $PCFG::Name) != -1 && String::findSubStr(%msg, ".") != -1) { $Kills::Rocket[$KpackCount::ClientNum]++; if ($RocketTrack == 1 || $RocketTrack == "") { say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); }
if (String::findSubStr(%msg, $PCFG::Name @ " gives ") != -1 && String::findSubStr(%msg, " a lesson in rocketry.") != -1) { $Kills::Rocket[$KpackCount::ClientNum]++; if ($RocketTrack == 1 || $RocketTrack == "") { say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); }
if (String::findSubStr(%msg, " polishes " @ $PCFG::Name) != -1 && String::findSubStr(%msg, "'s rocket.") != -1) { $Kills::Rocket[$KpackCount::ClientNum]++; if ($RocketTrack == 1 || $RocketTrack == "") { say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); }
if (String::findSubStr(%msg, " rides " @ $PCFG::Name) != -1 && String::findSubStr(%msg, "'s big one.") != -1) { $Kills::Rocket[$KpackCount::ClientNum]++; if ($RocketTrack == 1 || $RocketTrack == "") { say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); }
if (String::findSubStr(%msg, " failed to outrun " @ $PCFG::Name) != -1 && String::findSubStr(%msg, "'s rocket.") != -1) { $Kills::Rocket[$KpackCount::ClientNum]++; if ($RocketTrack == 1 || $RocketTrack == "") { say(0, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Rocket Victim #" @ $Kills::Rocket[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); } }
///********************************************************************************** |
In function KpackTrack(%command, %label) Add:
Code: | $RocketTrack = 1; // -Noxwizard |
In the same function, just a bit farther down Add:
Code: | $RocketTrack = 0; // -Noxwizard |
And, near the very bottom of the file add:
Code: | Event::Attach(eventClientMessage, RocketTronics); // -Noxwizard |
Phase and rockets use the same messages. This should work, but considering the fact that my kpack doesn't work at all, don't be suprised if it doesn't work.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|
|
|
|
|
|
| |