|
|
It is currently Mon Jun 03, 2024 3:41 pm
|
View unanswered posts | View active topics
|
|
|
|
|
Users browsing this forum: No registered users and 0 guests |
|
|
|
|
|
|
|
|
|
Author |
Message |
TE-Noxwizard
Joined: Tue Jun 07, 2005 5:59 pm Posts: 942 Location: Texas
|
Posted: Tue Jan 03, 2006 2:19 pm Post subject:
|
|
|
I wrote one for Annihilation, but somewhere I broke it.
Kpack should be picking it up for sniper kills, if it isn't, add this in the sniper section:
Code: | if (String::findSubStr(%msg, "was assassinated by " @ $PCFG::Name @ ".") != -1) { $Kills::Sniper[$KpackCount::ClientNum]++; if ($SniperTrack == 1 || $SniperTrack == "") { say(0, "(Sniper Victim #" @ $Kills::Sniper[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Sniper Victim #" @ $Kills::Sniper[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); } |
If you're talking about assassination kills, you'll have to add a whole new tronics. Here's the Assassin Tronics I wrote for Kpack.
Code: | ///*******************************************************************************
//////// ASSASSIN TRONICS /////////////////////////////
function AssassinTronics(%client, %msg) { if ($PCFG::Gender == "FEMALE") { $TEMP::Gender = "her"; } else { $TEMP::Gender = "his"; }
if (String::findSubStr(%msg, " is assassinated by " @ $PCFG::Name) != -1 && String::findSubStr(%msg, ".") != -1) { $Kills::Assassin[$KpackCount::ClientNum]++; if ($AssassinTrack == 1 || $AssassinTrack == "") { say(0, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); }
if (String::findSubStr(%msg, " gets " @ $TEMP::Gender @ " throat cut by " @ $PCFG::Name) != -1 && String::findSubStr(%msg, ".") != -1) { $Kills::Assassin[$KpackCount::ClientNum]++; if ($AssassinTrack == 1 || $AssassinTrack == "") { say(0, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); }
if (String::findSubStr(%msg, " gets stabbed in the back by " @ $PCFG::Name) != -1 && String::findSubStr(%msg, ".") != -1) { $Kills::Assassin[$KpackCount::ClientNum]++; if ($AssassinTrack == 1 || $AssassinTrack == "") { say(0, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); } if (String::findSubStr(%msg, " didn't see it coming from " @ $PCFG::Name) != -1 && String::findSubStr(%msg, ".") != -1) { $Kills::Assassin[$KpackCount::ClientNum]++; if ($AssassinTrack == 1 || $AssassinTrack == "") { say(0, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); }
if (String::findSubStr(%msg, $PCFG::Name @ " slices ") != -1 && String::findSubStr(%msg, "'s throat.") != -1) { $Kills::Assassin[$KpackCount::ClientNum]++; if ($AssassinTrack == 1 || $AssassinTrack == "") { say(0, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); TopPrint(2048, "(Assassination #" @ $Kills::Assassin[$KpackCount::ClientNum] @ ")"); } KpackCount::Update(); } } |
For that to work, you'll also need to add this to the KpackCount::Update() function:
Code: | export("$Kills::Assassin*", "config\\KpackCount.cs", True); // -Noxwizard |
You'll also need to add this under the ReadFile part, after the other sets:
Code: | /////************************************************************************************************
if(isFile("config\\assassinkills.cs")) { exec("assassinkills.cs"); export("$Assassin::Kills", "config\\assassinkills.cs", True); $Kills::Assassin[$KpackCount::ClientNum] = ($Assassin::Kills); File::delete("config\\assassinkills.cs"); File::delete("config\\kpack\\assassinct.cs"); } else { $Kills::Assassin[$KpackCount::ClientNum] = 0; } |
Then you need to add this a bit farther down with the other ones:
Code: | $Kills::Assassin[$KpackCount::ClientNum] = 0; // -Noxwizard |
Then you need to add this at the bottom in KpackTrack:
Code: | $AssassinTrack = 1; // -Noxwizard |
Then this after the "else" line:
Code: | $AssassinTrack = 0; // -Noxwizard |
And finally this at the very bottom with the other ones:
Code: | Event::Attach(eventClientMessage, AssassinTronics); // -Noxwizard |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
| |