Advertisement
Guest User

Untitled

a guest
Nov 13th, 2017
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 4.41 KB | None | 0 0
  1. -   script  Pontos  MvP -1,{
  2. OnNPCKillEvent:
  3. if(killedrid== 1059 || killedrid== 1157 || killedrid== 1087 || killedrid== 1785 ||
  4.  
  5. killedrid== 1150 || killedrid== 1038 || killedrid== 1251 || killedrid== 1159 ||
  6.  
  7. killedrid== 1492 || killedrid== 1046 || killedrid== 1312 || killedrid== 1272 ||
  8.  
  9. killedrid== 1389 || killedrid== 1630 || killedrid== 1190 ||
  10. killedrid== 1112 || killedrid== 1147 || killedrid== 1086){
  11. set PontoMvp,PontoMvp+1;
  12. dispbottom "Parabens "+strcharinfo(0)+", Sua recompensa por derrotar esse montros e
  13.  
  14. 1 Ponto MvP! Agora voce possui "+PontoMvp+" pontos.";
  15. }
  16.  
  17. if(killedrid== 1929 || killedrid== 1779 || killedrid== 1708 ||killedrid== 1734 ||
  18.  
  19. killedrid== 1685 || killedrid== 1719 || killedrid== 1623 || killedrid== 1658){
  20. set PontoMvp,PontoMvp+5;
  21. dispbottom "Parabens "+strcharinfo(0)+", Sua recompensa por derrotar esse montros e
  22.  
  23. 5 Pontos MvP! Agora voce possui "+PontoMvp+" pontos.";
  24. }
  25.  
  26. if(killedrid== 1871 || killedrid== 1583 || killedrid== 1751 || killedrid== 1768 ||
  27.  
  28. killedrid== 1832 || killedrid== 1874 || killedrid== 1917 || killedrid== 1647 ||
  29.  
  30. killedrid== 1649 || killedrid== 1650 || killedrid== 1651 || killedrid== 1648 ||
  31.  
  32. killedrid== 1646){
  33. set PontoMvp,PontoMvp+10;
  34. dispbottom "Parabens "+strcharinfo(0)+", Sua recompensa por derrotar esse montros e
  35.  
  36. 10 Pontos MvP! Agora voce possui "+PontoMvp+" pontos.";
  37. }
  38.  
  39. if(killedrid== 1956){
  40. set PontoMvp,PontoMvp+15;
  41. dispbottom "Parabens "+strcharinfo(0)+", Sua recompensa por derrotar esse montros e
  42.  
  43. 15 Pontos MvP! Agora voce possui "+PontoMvp+" pontos.";
  44. }
  45. end;
  46. {
  47.  
  48.  
  49. shop    MVSHOP1 -1,512:-1
  50. shop    MVSHOP2 -1,512:-1
  51. end;
  52.  
  53. }
  54.  
  55. prontera,50,50,4    script  Pontos  MVP 587;{
  56. prontera,50,50,4    script  Pontos  MVP Pontos  MVP ;{
  57. mes "[^FF0000Pontos MVP^000000]";
  58. mes "•MVP e a abreviação para Most Valuable Player, que significa Jogador de Maior
  59.  
  60. Valor.";
  61. mes "•É uma definição que não se limita apenas à Ragnarök Online.";
  62. next;
  63. mes "[^FF0000Pontos MVP^000000]";
  64. mes "•A dificuldade de um MVP está pelo seu HP, dano e Experiência altíssimos.";
  65. mes "•Eles são do tipo Chefe, ou seja, possuem certas prioridades que um monstro
  66.  
  67. comum não possui.";
  68. next;
  69. mes "[^FF0000Pontos MVP^000000]";
  70. mes "•Os MVPs são livres para todos os jogadores: qualquer um poderá atacar um MVP
  71.  
  72. sem estar infringindo a regra de Kill Steal.";
  73. mes "•Entretanto, se houver abuso e habilidade, os infratores deverão ser
  74.  
  75. denunciados.";
  76. next;
  77. mes "[^FF0000Pontos MVP^000000]";
  78. mes "Deseja trocar seus pontos MvP por itens?";
  79. switch(select("[^339966+^000000] Sim.:[^FF0000+^000000] Não."))
  80. {
  81. case 1:
  82. next;
  83.     mes "[^FF0000LPontos    MVP^000000]";
  84.     mes "^FF0000Escolha a categoria de itens que lhe interessa:^000000";
  85.     set @s, select("Utilidades:Hats");
  86.     message strcharinfo(0),"Esta loja só aceita Pontos MvP.";
  87.     dispbottom "Você tem "+PontoMvp+" Pontos MvP.";
  88.     callshop "MVSHOP"+@s,1;
  89.     npcshopattach "MVSHOP"+@s;
  90.     end;
  91. case 2:
  92. close;
  93. }
  94.  
  95. OnBuyItem:
  96. mes "[^FF0000Pontos MVP^000000]";
  97. if (PontoMvp==0){mes "Você não possui Pontos Mvp"; close;}
  98. if (PontoMvp>=1){
  99.     set .@i,0;
  100.     while (.@i < getarraysize(@bought_nameid)) {
  101.         set .@j, 0;
  102.         while (.@j < getarraysize(getd(".Shop"+@s))) {
  103.             if(getd(".Shop"+@s+"["+.@j+"]") == @bought_nameid[.@i]) {
  104.                 set @itemcost, (getd(".Shop"+@s+"["+(.@j+1)+"]") *
  105.  
  106. @bought_quantity[.@i]);
  107.                 set @totalcost, @totalcost + @itemcost;
  108.                 break; }
  109.             set .@j, .@j+2; }
  110.         set .@i, .@i+1; }
  111.     if (@totalcost > Ponto  Mvp) dispbottom "Você não tem o suficiente de
  112.  
  113. Pontos  MvP " ;
  114.     else
  115.         {
  116.         set .@i,0;
  117.         while (.@i < getarraysize(@bought_nameid)) {
  118.             getitem @bought_nameid[.@i], @bought_quantity[.@i];
  119.            
  120.             dispbottom "Você comprou "+@bought_quantity[.@i]+"x
  121.  
  122. "+getitemname(@bought_nameid[.@i])+".";
  123.  
  124.             set .@i, .@i+1; }
  125.         set PontoMvp,PontoMvp-@totalcost;
  126.         mes "Seu total de Pontos MvP agora e "+PontoMvp+".";}
  127.     set @totalcost,0;
  128.     deletearray @bought_nameid[0], 128;
  129.     deletearray @bought_quantity[0], 128;
  130. close;
  131.     end;
  132. }
  133.  
  134. OnInit:
  135.     setarray .Currency[1],507;
  136.     setarray .Shop1[0],12210,1,12208,1,12103,5;
  137.     setarray .Shop2[0],5518,300,5374,300,2202,100;
  138.  
  139.     set .@i,1;
  140.     while (.@i <= getarraysize(.Currency)) {
  141.         set .@j,0;
  142. while (.@j < getarraysize(getd(".Shop"+.@i))) {
  143.             npcshopdelitem "MVSHOP"+.@i,512;
  144.             npcshopgetitem "MVSHOP"+.@i, getd(".Shop"+.@i+"["+.@j+"]"),
  145.  
  146. getd(".Shop"+.@i+"["+(.@j+1)+"]");
  147.             set .@j, .@j+2; }
  148.         set .@i, .@i+1; }
  149.     end;} } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement