The Exiled

Shunned by Man, Accepted by Gods
* FAQ    * Search   * Members
* Login   * Register
It is currently Thu Mar 28, 2024 7:29 am 

 View unanswered posts | View active topics


 Board index » General Area » Help Desk
Post new topic Reply to topic Users browsing this forum: No registered users and 5 guests
Author
Message
TE-B.D

Joined: Fri Dec 30, 2005 9:05 pm
Posts: 36
Location: Miami, Florida
Post Posted: Tue Jan 03, 2006 1:55 pm    Post subject: Kpack modifications
Reply with quote
 
Is there a way to modify the kpack so that its up to date with the anihilation kill counts??

Example:
Kpack Now
*** stayed in ??? crosshair for too long
???: Sniper Victim #455

Annihilation Example
*** was assasinated by ??? <--------- In the regular kpack this wouldnt have happened
???: Sniper Victim #456


In other words, how do you add content to the kpack without screwing it up??


 Top Offline
Profile
Author
Message
TE-Noxwizard


User avatar
Joined: Tue Jun 07, 2005 5:59 pm
Posts: 942
Location: Texas
Post Posted: Tue Jan 03, 2006 2:19 pm    Post subject:
Reply with quote
 
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
Code:



Image
Image
 Top Offline
Profile WWWICQYIM
Author
Message
)>B<( IronX

Joined: Tue Jul 05, 2005 2:46 am
Posts: 46
Post Posted: Tue Jan 03, 2006 4:39 pm    Post subject:
Reply with quote
 
.................yes <3 nox


Image
Image
 Top Offline
Profile
Author
Message
TE-Hammy


User avatar
Joined: Thu Jul 14, 2005 5:43 pm
Posts: 3204
Post Posted: Tue Jan 03, 2006 6:26 pm    Post subject:
Reply with quote
 
<3 teh nox lots :)


This is not the sandwich you are looking for. Move along.
Image
Ze Sechs-fire wrote:
[22:00] [df]Braveskin: Can AfroMuffin spend the night at my house?
[22:00] [df]Braveskin: I have movize
[22:00] Hammy: No. You'll touch him.
[22:00] Hammy: With gusto.
[22:00] Hammy: He's not even a day old, pedophile.
[22:00] Hammy: >:l
[22:00] [df]Braveskin: plez!!
 Top Offline
Profile
Author
Message
)>B<( IronX

Joined: Tue Jul 05, 2005 2:46 am
Posts: 46
Post Posted: Tue Jan 03, 2006 6:50 pm    Post subject:
Reply with quote
 
W()()T REPREZENT


Image
Image
 Top Offline
Profile
Author
Message
TE-Hammy


User avatar
Joined: Thu Jul 14, 2005 5:43 pm
Posts: 3204
Post Posted: Tue Jan 03, 2006 9:37 pm    Post subject:
Reply with quote
 
reprezent wat? :|


This is not the sandwich you are looking for. Move along.
Image
Ze Sechs-fire wrote:
[22:00] [df]Braveskin: Can AfroMuffin spend the night at my house?
[22:00] [df]Braveskin: I have movize
[22:00] Hammy: No. You'll touch him.
[22:00] Hammy: With gusto.
[22:00] Hammy: He's not even a day old, pedophile.
[22:00] Hammy: >:l
[22:00] [df]Braveskin: plez!!
 Top Offline
Profile
Author
Message
)>B<( IronX

Joined: Tue Jul 05, 2005 2:46 am
Posts: 46
Post Posted: Wed Jan 04, 2006 2:13 am    Post subject:
Reply with quote
 
Idno your uglyness


Image
Image
 Top Offline
Profile
Author
Message
ShadowCrow


User avatar
Joined: Sat Jul 30, 2005 5:31 am
Posts: 227
Post Posted: Wed Jan 04, 2006 3:49 pm    Post subject:
Reply with quote
 
ohhh....burn


Image
 Top Offline
Profile
Author
Message
TE-B.D

Joined: Fri Dec 30, 2005 9:05 pm
Posts: 36
Location: Miami, Florida
Post Posted: Fri Jan 06, 2006 6:19 pm    Post subject:
Reply with quote
 
thanks nox

 Top Offline
Profile
Author
Message
TE-Hammy


User avatar
Joined: Thu Jul 14, 2005 5:43 pm
Posts: 3204
Post Posted: Fri Jan 06, 2006 8:50 pm    Post subject:
Reply with quote
 
i need some ice :|


This is not the sandwich you are looking for. Move along.
Image
Ze Sechs-fire wrote:
[22:00] [df]Braveskin: Can AfroMuffin spend the night at my house?
[22:00] [df]Braveskin: I have movize
[22:00] Hammy: No. You'll touch him.
[22:00] Hammy: With gusto.
[22:00] Hammy: He's not even a day old, pedophile.
[22:00] Hammy: >:l
[22:00] [df]Braveskin: plez!!
 Top Offline
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic Board index » General Area » Help Desk
Previous topic :: Next topic  
Page 1 of 1
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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group