Jump to content
  • 0

Need Help with this Script


Yonko

Question


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.03
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

I used this script together with wav files its perfectly 100% working. But i want to add features on this how can i ladderized into top 10 pvp killers

here's the script of mine

- script DOTAPVP -1,{

OnPCKillEvent:

set @PlayersKilledStreak,@PlayersKilledStreak + 1;

set PlayersKilled,PlayersKilled + 1;

getmapxy .map$,.@x,.@y,0;

if (!attachrid(killedrid)) end;

message strcharinfo(0),"You have been killed by "+ rid2name(killerrid);

if (@PlayersKilledStreak >= 100) callsub L_endStreak,"Beyond Godlike";

if (@PlayersKilledStreak >= 80) callsub L_endStreak,"Godlike";

if (@PlayersKilledStreak >= 60) callsub L_endStreak,"Monster Kill";

if (@PlayersKilledStreak >= 50) callsub L_endStreak,"Wicked Sick";

if (@PlayersKilledStreak >= 40) callsub L_endStreak,"Unstoppable";

if (@PlayersKilledStreak >= 30) callsub L_endStreak,"Mega-kill";

if (@PlayersKilledStreak >= 20) callsub L_endStreak,"Dominating";

if (@PlayersKilledStreak >= 10) callsub L_endStreak,"Killing Spree";

else goto L_endStreak2;

L_endStreak:

announce rid2name(killerrid) +" has ended "+ strcharinfo(0) +"'s "+ getarg(0) +" streak at "+ .map$,0;

L_endStreak2:

set @PlayersKilledStreak,0;

if (!attachrid(killerrid)) end;

if (@PlayersKilledStreak == 10) callsub L_Streak,"killingspree.wav","on a Killing Spree","";

if (@PlayersKilledStreak == 20) callsub L_Streak,"dominating.wav","Dominating!","";

if (@PlayersKilledStreak == 30) callsub L_Streak,"megakill.wav","on a Mega Kill!","";

if (@PlayersKilledStreak == 40) callsub L_Streak,"unstoppable.wav","Unstoppable!","";

if (@PlayersKilledStreak == 50) callsub L_Streak,"wickedsick.wav","Wicked Sick!","";

if (@PlayersKilledStreak == 60) callsub L_Streak,"monsterkill.wav","on a Monster Kill!","";

if (@PlayersKilledStreak == 80) callsub L_Streak,"godlike.wav","GodLike!",". Will someone ever stop him/her?";

if (@PlayersKilledStreak >= 100 && !(@PlayersKilledStreak % 2)) callsub L_Streak,"holyshit.wav","BEYOND GODLIKE!",". Someone kill him/her!";

goto OnWhisperGlobal;

L_Streak:

announce strcharinfo(0) +" is "+ getarg(1) +" with "+ @PlayersKilledStreak +" kills at "+ .map$ + getarg(2),0;

soundeffectall getarg(0),0,.map$;

return;

OnWhisperGlobal:

dispbottom "Your current Streak : "+ @PlayersKilledStreak;

dispbottom "Your total Kills : "+ PlayersKilled;

end;

}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...