Advertisement
johnlol

narrador

May 27th, 2019
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*________________________________________________________
  2.  /               ____                                     \
  3.  |              |  __|                                    |
  4.  |              | |_ _  _  __ _ _ __  _  __               |
  5.  |              |  _| || |/ _` | '_ \| |/ _ \             |
  6.  |              | |__ \/ | (_| | | | | | (_) |            |
  7.  |              |____|__/ \__,_|_| |_|_|\___/             |
  8.  |                                                        |
  9.  |                                                        |
  10.  |--------------------------------------------------------|
  11.  | Nome do Script: Narrador PvP                           |
  12.  |--------------------------------------------------------|
  13.  | Criado por: Evanio (Arkwright)                         |
  14.  |--------------------------------------------------------|
  15.  | Versão 1.1                                            |
  16.  |--------------------------------------------------------|
  17.  | Descrição: Sistema de Narrador do PvP. Possibilida     |
  18.  | mais de uma escolha de narrador para o jogador.        |
  19.  |--------------------------------------------------------|
  20.  | Changelog:                                             |
  21.  | 1.0 Script Criado (18/02/2014) [Evanio]                |
  22.  | 1.1 NPC Atualizado (08/03/2016) [Evanio]               |
  23.  \________________________________________________________/
  24. */
  25. sec_in02.gat,126,179,6  script  Narrador PvP    4_M_BARMUND,{ callfunc "NarratorPvP",0; }
  26.  function   script  NarratorPvP {
  27.     set .@vip,99;   //Nivel do Group_ID que pode issaR
  28. //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  29. if(getgroupid()<.@vip){mes "Desculpe mas você não pode usar este npc";close;end;}
  30.     Locutor:
  31.         mes "[Narrador PvP]";
  32.         mes "Temos disponíveis quatro tipos de narradores PvP.";
  33.         mes "Eles irão animar um pouco a sua batalha.";
  34.         mes "Escolha um para si.";
  35.         mes " ";
  36.         mes "OBS* Ative os sons para escuta-lo.";
  37.         next;
  38.         switch(select("UnrealTournament","Badass","Flamboyant","Pimp")) {
  39.  
  40.             case 1: @loc = 0; soundeffect "locutor0.wav",0; goto Loc;
  41.             case 2: @loc = 1; soundeffect "locutor1.wav",0; goto Loc;
  42.             case 3: @loc = 2; soundeffect "locutor2.wav",0; goto Loc;
  43.             case 4: @loc = 3; soundeffect "locutor3.wav",0;
  44.                 Loc:
  45.                 mes "[Narrador PvP]";
  46.                 mes "Você realmente deseja escolher esse narrador?";
  47.                 next;
  48.                 if(select("Sim","Não")==2) { goto Locutor; }
  49.                 #ST = @loc;
  50.                 mes "[Narrador PvP]";
  51.                 mes "Narrador Selecionado.";
  52.                 close;
  53.     }
  54. }
  55.  
  56. -   script  CtrlLoc -1,{
  57.  
  58. OnPCKillEvent:
  59.     getmapxy @map$,@x,@y,0;
  60.         for(.@a = 0;.@a<getarraysize($@MapName$);.@a++) {
  61.             if($@MapName$[.@a]==@map$) {
  62.                 @Killer = getcharid(0);
  63.                 @Morto$ = rid2name(killedrid);
  64.                 @Killed = getcharid(0,rid2name(killedrid));
  65.                 if(@Killed==@Killer) end;
  66.                     @WD2++;
  67.                     if(#ST==0) { @WD = @WD2; }
  68.                         if(#ST==0 && @WD2>12) { @WD = 0; @Tocar$ = "";}
  69.                             if(#ST==1) { @WD = @WD2+12;}
  70.                         if(#ST==1 && @WD2>12) { @WD = 0; @Tocar$ = "";}
  71.                             if(#ST==2) { @WD = @WD2+24; }
  72.                         if(#ST==2 && @WD2>12) { @WD = 0; @Tocar$ = "";}
  73.                             if(#ST==3) { @WD = @WD2+36; }
  74.                         if(#ST==3 && @WD2>12) { @WD = 0; @Tocar$ = "";}
  75.                     if($@Sounds$[@WD]!="") { @Tocar$ = $@Sounds$[@WD]; }
  76.                         mapannounce @map$,(Sex?"O":"A")+" Jogador"+ (Sex?" ":"a")+" [ "+strcharinfo(0)+" ] matou [ "+@Morto$+" ] | "+@Tocar$,bc_map;
  77.                             if($@Sounds$[@WD]!="") { soundeffectall $@Sounds$[@WD]+".wav",0; }
  78.                                 if(#ST==1) { soundeffectall $@SoundsE$[1]+".wav",0; }
  79.                                     if(#ST==3) { soundeffectall $@SoundsE$[3]+".wav",0; soundeffectall $@SoundsE$[4]+".wav",0; }
  80.             }
  81.         }
  82.         end;
  83.  
  84. OnPCDieEvent:
  85.     getmapxy @map$,@x,@y,0;
  86.         for(.@a = 0;.@a<getarraysize($@MapName$);.@a++) {
  87.             if($@MapName$[.@a]==@map$) {
  88.                 @WD2 = 0;
  89.                 @WD = 0;
  90.             }
  91.         }
  92.     end;
  93.  
  94. OnInit:
  95.     deletearray $@Sounds$;
  96.     deletearray $@MapName$;
  97. // ---------------   Adicionar mapas PVP aqui   ------------
  98.     setarray $@MapName$[0],"pvp_y_1-1","pvp_y_1-2","pvp_y_1-4","pvp_y_2-1","pvp_y_2-2","pvp_y_2-4","pvp_y_3-1","pvp_y_3-2","pvp_y_3-4";
  99. //-------------------------------------------------------
  100.     setarray $@Sounds$[1],"First Blood","Double Kill","Triple Kill","Killing Spree","Mega Kill","Ultra Kill","Monster Kill","Unstoppable","WhickedSick","GodLike","HolyShit","Rampage";
  101.     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";
  102.     setarray $@Sounds$[25],"Cherry Popper","Fabulous","It's a three way","Rainbow Warrior","Homicidal","Big Bear","Macho","Savage","Domination","Superstar","Yey","Like OMG";
  103.     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";
  104.     setarray $@SoundsE$[1],"bullet","bullet_glass","bling","chainin";
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement