johnlol

Narrator PvP

Aug 9th, 2023
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VeriLog 4.24 KB | Gaming | 0 0
  1. //  ________________________________________________________
  2. // /         ____                                   \
  3. // |        |  __|                      |
  4. // |        | |_ _  _  __ _ _ __  _  __             |
  5. // |        |  _| || |/ _` | '_ \| |/ _ \           |
  6. // |        | |__ \/ | (_| | | | | | (_) |          |
  7. // |        |____|__/ \__,_|_| |_|_|\___/           |
  8. // |                                                        |
  9. // |                                                |
  10. // |--------------------------------------------------------|
  11. // | Name of Script: Narrator PvP                           |
  12. // |--------------------------------------------------------|
  13. // | By: Evanio (SynGates)                                  |
  14. // |--------------------------------------------------------|
  15. // | Version 1.0                                    |
  16. // |--------------------------------------------------------|
  17. // | Description: Narrator PvP System, where the player has |
  18. // | more than one choice of narrators.             |
  19. // |--------------------------------------------------------|
  20. // | Changelog:                                             |
  21. // | 1.0 Script maked  (18/02/2014) [Evanio]                |
  22. // \________________________________________________________/
  23. // ----------------------------------------------------------
  24. prt_in,276,139,3    script  Narrator PvP    999,{
  25.  
  26.     Locutor:
  27.         mes "[Narrator PvP]";
  28.         mes "We have available four types of PvP narrators. Choose one of your own.";
  29.         next;
  30.         switch(select("UnrealTournament","Badass","Flamboyant","Pimp")) {
  31.  
  32.             case 1: set @loc,0; soundeffect "locutor0.wav",0; goto Loc;
  33.             case 2: set @loc,1; soundeffect "locutor1.wav",0; goto Loc;
  34.             case 3: set @loc,2; soundeffect "locutor2.wav",0; goto Loc;
  35.             case 4: set @loc,3; soundeffect "locutor3.wav",0;
  36.                 Loc:
  37.                 mes "[Narrator PvP]";
  38.                 mes "You want to select this narrator?";
  39.                 next;
  40.                 if(select("Yes","No")==2) { goto Locutor; }
  41.                 set #ST,@loc;
  42.                 mes "[Narrator PvP]";
  43.                 mes "Narrator selected.";
  44.                 close;
  45.     }
  46. }
  47.  
  48. -   script  CtrlLoc -1,{
  49.  
  50. OnPcKillEvent:
  51.     getmapxy @map$,@x,@y,0;
  52.         for(set .@a,0;.@a<getarraysize($@MapName$);set .@a,.@a+1)
  53.             if($@MapName$[.@a]==@map$) {
  54.     set @Killer,getcharid(0);
  55.     set @Morto$,rid2name(killedrid);
  56.     set @Killed,getcharid(0,rid2name(killedrid));
  57.         if(@Killed==@Killer) end;;
  58.     set @WD2,@WD2+1;
  59.         if(#ST==0) { set @WD,@WD2; }
  60.         if(#ST==0 && @WD2>12) { set @WD,0; set @Tocar$,"";}
  61.             if(#ST==1) { set @WD,@WD2+12;}
  62.             if(#ST==1 && @WD2>12) { set @WD,0; set @Tocar$,"";}
  63.                 if(#ST==2) { set @WD,@WD2+24; }
  64.                 if(#ST==2 && @WD2>12) { set @WD,0; set @Tocar$,"";}
  65.                     if(#ST==3) { set @WD,@WD2+36; }
  66.                     if(#ST==3 && @WD2>12) { set @WD,0; set @Tocar$,"";}
  67.     if($@Sounds$[@WD]!="") { set @Tocar$,$@Sounds$[@WD]; }
  68.         mapannounce @map$,"The Player [ "+strcharinfo(0)+" ] killed [ "+@Morto$+" ] | "+@Tocar$,bc_map;
  69.             if($@Sounds$[@WD]!="") { soundeffectall $@Sounds$[@WD]+".wav",0; }
  70.                 if(#ST==1) { soundeffectall $@SoundsE$[1]+".wav",0; }
  71.                     if(#ST==3) { soundeffectall $@SoundsE$[3]+".wav",0; soundeffectall $@SoundsE$[4]+".wav",0; }
  72.     }
  73.             end;
  74.  
  75. OnPcDieEvent:
  76.     getmapxy @map$,@x,@y,0;
  77.         for(set .@a,0;.@a<getarraysize($@MapName$);set .@a,.@a+1)
  78.             if($@MapName$[.@a]==@map$) {
  79.                 set @WD2,0;
  80.                 set @WD,0;
  81.     }
  82. end;
  83.  
  84. OnInit:
  85.     deletearray $@Sounds$;
  86.     deletearray $@MapName$;
  87. // ---------------   Add here the pvp maps   ------------
  88.     setarray $@MapName$[0],"guild_vs3","guild_vs1";
  89. //-------------------------------------------------------
  90.     setarray $@Sounds$[1],"First Blood","Double Kill","Triple Kill","Killing Spree","Mega Kill","Ultra Kill","Monster Kill","Unstoppable","WhickedSick","GodLike","HolyShit","Rampage";
  91.     setarray $@Sounds$[13],"First of Many","Too Easy","No Chance","Who's next","Five kill stud","Not today dirtbag","Kiss my ass","Damn I'm good","Who's your daddy","Hell yeah","Unbelievable","Champion";
  92.     setarray $@Sounds$[25],"Cherry Popper","Fabulous","It's a three way","Rainbow Warrior","Homicidal","Big Bear","Macho","Savage","Domination","Superstar","Yey","Like OMG";
  93.     setarray $@Sounds$[37],"First Time","Double D's","The juice is loose","It's a four-gy","It's the 5-O","What's my name","Say my name","Mo money","One Bad Mother","Pimpin is easy","Bitch please","Big Pimpin";
  94.     setarray $@SoundsE$[1],"bullet","bullet_glass","bling","chainin";
  95.     end;
  96. }
Add Comment
Please, Sign In to add comment