Jump to content
  • 0

Help!


Hercules

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  104
  • Reputation:   1
  • Joined:  05/04/12
  • Last Seen:  

- script DotaPvP -1,{
OnPCKillEvent:
set $@PlayerKiller$,strcharinfo(0);
set PlayersKilled,PlayersKilled + 1;
set @PlayersKilledStreak,@PlayersKilledStreak + 1;
message strcharinfo(0),"You have a Killing Spree of "+ @PlayersKilledStreak;
message strcharinfo(0),"You killed a total amount of "+ PlayersKilled +" people.";
message strcharinfo(0),"The last person you killed was: "+ rid2name(killedrid);
getmapxy $@map$,.@x,.@y,0;
if (!attachrid(killedrid)) end;
set $@PlayerKilled$,strcharinfo(0);
if (@PlayersKilledStreak >= 80) callsub L_endStreak,"Beyond Godlike";
if (@PlayersKilledStreak >= 70) 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 $@PlayerKiller$ +" has ended "+ $@PlayerKilled$ +"'s "+ getarg(0) +" streak at "+ $@map$,0;
L_endStreak2:
message strcharinfo(0),"You have been killed by "+ $@PlayerKiller$;

How can i trigger this script in specific maps not all maps??

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

OnPCKilLEvent:
if( strcharinfo(3) != "mapname" ) end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  104
  • Reputation:   1
  • Joined:  05/04/12
  • Last Seen:  

OnPCKilLEvent:
if( strcharinfo(3) != "mapname" ) end;

Ohh my,i double post it.Sorry i thought that i did not post it yet due to my internet slowness /sry

Where should i put this line??

like this??

- script DOTAPVP -1,{

OnPCKillEvent:
if( strcharinfo(3) != "bat_c01" ) end;
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 >= 10) callsub L_endStreak,"Beyond Godlike";
 if (@PlayersKilledStreak >= 9) callsub L_endStreak,"Godlike";
 if (@PlayersKilledStreak >= 8) callsub L_endStreak,"Monster Kill";
 if (@PlayersKilledStreak >= 7) callsub L_endStreak,"Wicked Sick";
 if (@PlayersKilledStreak >= 6) callsub L_endStreak,"Unstoppable";
 if (@PlayersKilledStreak >= 5) callsub L_endStreak,"Mega-kill";
 if (@PlayersKilledStreak >= 4) callsub L_endStreak,"Dominating";
 if (@PlayersKilledStreak >= 3) callsub L_endStreak,"Killing Spree";
 else goto L_endStreak2;

But it does not work..

Edited by SkyPirate
Link to comment
Share on other sites

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...