Author Topic: Killing spree w/ bonuses  (Read 1401 times)

0 Members and 1 Guest are viewing this topic.

Offline Tosty

  • Soldier
  • **
  • Posts: 172
  • Ultimate TW Medic
    • Just Click it
Killing spree w/ bonuses
« on: September 01, 2007, 04:06:31 pm »
Ok i an what you could call a noob

No im not a total noob but still

Ineed a killing spree script that gives bonuses w/ the killing spree msg

Code: [Select]
var
kills: array[1..32] of byte;
Slot: byte;
odzysk: array[1..32] of integer;
witfg: array[1..2] of byte;

procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);
var
spree: array[1..17] of string;
killsNeeded: byte;
begin
killsNeeded := 5; //number of kills needed to count as a killing spree
//spree[x] where x represents the current number of spree kills player has
//more can be added just be sure to change the spree array size
spree[3] := ' is on a Killing Spree!';
spree[5] := ' is on a Rampage!';
spree[7] := ' is Dominating!';
spree[9] := ' is Unstoppable!';
spree[11] := ' is Godlike!';
if killer <> victim then begin
if (GetPlayerStat(killer,'team') <> GetPlayerStat(victim,'team')) then begin
kills[killer] := kills[killer] + 1;
if (kills[victim] >= killsNeeded) then begin
Command('/say ' + GetplayerStat(victim,'name') + '''s ' + inttostr(kills[victim]) + ' kills spree ended by ' + GetPlayerStat(killer,'name'));
end;
kills[victim] := 0;
if (kills[killer] <= Arrayhigh(spree) + 1) then begin
if (spree[kills[killer]] <> '') then Command('/say ' + GetPlayerStat(killer,'name') + spree[kills[killer]]);
end;
end
else begin
if (kills[killer] > 0) then SayToPlayer(killer, 'Your spree kills have been reset for team killing');
kills[killer] := 0;
end;
end;
end;



Offline Ttil_Np.csWoW

  • Major
  • *
  • Posts: 55
  • The Berserkers Are Coming....
Re: Killing spree w/ bonuses
« Reply #1 on: September 01, 2007, 05:47:41 pm »
is this a script realease if so rong place?
isnt this taken and modded from another script that was realeased?
and what is your question/ desion if you have posted this in the right place?
I will be back to play soldat, just not now , but i will....... some day.

Offline mikembm

  • Soldier
  • **
  • Posts: 210
Re: Killing spree w/ bonuses
« Reply #2 on: September 01, 2007, 07:25:39 pm »
is this a script realease if so rong place?
isnt this taken and modded from another script that was realeased?
and what is your question/ desion if you have posted this in the right place?

That is my script.

Offline Ttil_Np.csWoW

  • Major
  • *
  • Posts: 55
  • The Berserkers Are Coming....
Re: Killing spree w/ bonuses
« Reply #3 on: September 02, 2007, 12:03:50 am »
Maby hes asking for bousnses to be added?
I will be back to play soldat, just not now , but i will....... some day.

Offline Tosty

  • Soldier
  • **
  • Posts: 172
  • Ultimate TW Medic
    • Just Click it
Re: Killing spree w/ bonuses
« Reply #4 on: September 02, 2007, 08:35:46 am »
Yes i am asking for bonuses like clustere or berserk to be given along w/ the spree