Advertisement
johnlol

Auto_Resu_PVP

Aug 7th, 2023
2,809
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VeriLog 5.25 KB | Gaming | 0 0
  1. //------------------------------------------------
  2.  
  3.  
  4. -   script  Auto_Resu_PVP   -1,{
  5.  
  6. OnPCDieEvent:
  7.     if(strcharinfo(3) == "guild_vs1" || strcharinfo(3) == "guild_vs3" || strcharinfo(3) == "guild_vs4"){
  8.     dispbottom "You will be revived in 3 Seconds.";
  9.     sleep2 3000;
  10.     //progressbar "0xFF0000",3;
  11.     recovery 0;
  12.     //atcommand "@alive "+strcharinfo(0);
  13.     //atcommand "@alive";
  14.     //atcommand "@heal";
  15. }
  16. }
  17.  
  18.  
  19. //------------------------------------------------
  20.  
  21. /*
  22. -   script  Auto_Resu_PVP_Infi  -1,{
  23. OnInit:
  24.     setarray .map$,"guild_vs1","guild_vs3","guild_vs4";
  25.     end;
  26. OnPCDieEvent:
  27.     if(strcharinfo(3) != .map$) end;
  28.     if( !killerrid )// suicide
  29.         warp "prontera",0,0;
  30.     else
  31.     dispbottom "You will respawn in 3 Seconds.";
  32.     sleep2 3000;
  33.         warp strcharinfo(3),0,0;
  34.     percentheal 100,100;
  35. }
  36. */
  37.  
  38. //------------------------------------------------
  39.  
  40. /*
  41. -   script  Auto_Resu_PVP_vs1   -1,{
  42. OnPCDieEvent:
  43. if(strcharinfo(3) == "guild_vs1") {
  44.     dispbottom "You will respawn in 3 Seconds.";
  45.     sleep2 3000;
  46.     atcommand "@alive";
  47.     //atcommand "@heal";
  48.     warp "guild_vs1",0,0;
  49. }
  50. end;
  51. }
  52.  
  53. -   script  Auto_Resu_PVP_vs3   -1,{
  54. OnPCDieEvent:
  55. if(strcharinfo(3) == "guild_vs3") {
  56.     dispbottom "You will respawn in 3 Seconds.";
  57.     sleep2 3000;
  58.     atcommand "@alive";
  59.     //atcommand "@heal";
  60.     warp "guild_vs3",0,0;
  61. }
  62. end;
  63. }
  64.  
  65. -   script  Auto_Resu_PVP_vs4   -1,{
  66. OnPCDieEvent:
  67. if(strcharinfo(3) == "guild_vs4") {
  68.     dispbottom "You will respawn in 3 Seconds.";
  69.     sleep2 3000;
  70.     atcommand "@alive";
  71.     //atcommand "@heal";
  72.     warp "guild_vs4",0,0;
  73. }
  74. end;
  75. }
  76. */
  77.  
  78. //------------------------------------------------
  79.  
  80. /*
  81. -   script  Auto_Resu_PVP_vs1_Infi  -1,{
  82. OnPCDieEvent:
  83. if(strcharinfo(3) == "guild_vs1"){
  84. dispbottom "You will respawn in 5 Seconds.";
  85. sleep2 5000;
  86. warp "guild_vs1",0,0;
  87. atcommand "@revive "+strcharinfo(0);
  88. //specialeffect2 37; sc_start SC_INCREASEAGI,240000,10;
  89. //specialeffect2 42; sc_start SC_BLESSING,240000,10;
  90. //end;
  91. }
  92. }
  93. */
  94.  
  95. //------------------------------------------------
  96.  
  97. /*
  98. -   script  F_PVPRecovery   -1,{
  99.     end;
  100. OnPCDieEvent:
  101.     .@map$ = strcharinfo(3);
  102.     .@nme$ = strcharinfo(0);
  103.     if( .@map$ == "guild_vs1" ) {
  104.         for( .@s = 5; .@s >= 0; .@s-- ) {
  105.             message .@nme$ ,"You will respawn in  "+.@s+" second"+ ( .@s > 1 ? "s" : "") +".";
  106.             sleep2 1000;
  107.         }
  108.         recovery 0;
  109.         warp .@map$,0,0;
  110.     }
  111.     end;
  112. }
  113. */
  114.  
  115. //------------------------------------------------
  116.  
  117. /*
  118. -   script  F_PVPRecovery   -1,{
  119. OnPCDieEvent:
  120.     .@map$ = strcharinfo(3);
  121.     if(inarray(.map$,.@map$) != -1){
  122.         for(.@y = 5; .@y; .@y--){
  123.             message strcharinfo(0),"You will respawn in "+.@y+" second"+((.@y > 1)?"s":"")+".";
  124.             sleep2 1000;
  125.         }
  126.         recovery 0;
  127.         repairall;
  128.         if(.size_buffs) {
  129.             for(;.@i < .size_buffs;.@i+= 3)
  130.                 sc_start .buffs[.@i],.buffs[.@i + 1],.buffs[.@i + 2];
  131.         }
  132.         warp .@map$,0,0;
  133.     }
  134. end;
  135.  
  136. OnInit:
  137.     setarray .map$, "guild_vs1","guild_vs3","guild_vs4";
  138.              // Buff         Duration(ms) Lvl
  139.     setarray .buffs, SC_INCREASEAGI, 5*60*1000,   10,
  140.              SC_BLESSING,    5*60*1000,   10;
  141.     .size_buffs = getarraysize(.buffs);
  142. end;
  143. }
  144. */
  145.  
  146. //------------------------------------------------
  147.  
  148. /*
  149. -   script  SpawnOnDeath    FAKE_NPC,{
  150. OnPCDieEvent:
  151.     setarray .@pvpmap$, "guild_vs1", "guild_vs3", "guild_vs4"; // add your pvp maps here
  152.     for(.@i=0; .@i<getarraysize(.@pvpmap$);.@i++)
  153.     if (strcharinfo(PC_MAP)==.@pvpmap$[.@i]) {
  154.         sleep2 5000; // give 5 sec to respawn
  155.         warp .@pvpmap$[.@i], 0, 0; // respawn on same map(randomly) where player died
  156.     }
  157.     end;
  158. }
  159. */
  160.  
  161. //------------------------------------------------
  162.  
  163. /*
  164. -   script  AutoRes::alaure HIDDEN_WARP_NPC,{
  165.     end;
  166.    
  167. OnPCDieEvent:
  168.     .@found = 0;
  169.     for( .@i = 0; .@i < getarraysize(.autoresMap$) && .@found == 0; .@i++ )
  170.     {
  171.         if(strcharinfo(3) == .autoresMap$[.@i])
  172.         {
  173.             .@found = 1;
  174.             addtimer .secondsDelay * 1000, strnpcinfo(3) + "::OnAutoRes";
  175.         }
  176.     }
  177.     end;
  178.    
  179. OnAutoRes:
  180.     charcommand "#alive " + strcharinfo(0);
  181.     //recovery 0;
  182.     for( .@i = 0; .@i < getarraysize(.buffList); .@i++ )
  183.     {
  184.         sc_start .buffList[.@i], .buffDuration[.@i] * 60000, .buffLevel[.@i];
  185.     }
  186.     end;
  187.    
  188. OnInit:
  189.     initnpctimer;
  190.     setarray .autoresMap$, "guild_vs1", "guild_vs3", "guild_vs4";
  191.     .secondsDelay = 5;
  192.     setarray .buffList, SC_INCREASEAGI, SC_BLESSING, SC_ENDURE;
  193.     setarray .buffLevel, 10, 10, 10;
  194.     setarray .buffDuration, 2, 1; //in minutes
  195.     end;
  196. }
  197. */
  198.  
  199. //--------------Esta Com Erro!---------------------
  200.  
  201. /*
  202. -   script  PvP_Resu    -1,{
  203.  
  204. OnInit:
  205.     set .map$,"guild_vs1","guild_vs3","guild_vs4";
  206.     end;
  207. OnPCDieEvent:
  208.     if(getmapflag(strcharinfo(3),mf_pvp) == 0)
  209.     end;
  210.     if(strcharinfo(3) != .map$)
  211.     end;
  212.     dispbottom "You'll be revived in 3 seconds";
  213.     sleep2 3000;
  214.     warp strcharinfo(3),0,0;
  215.     if(HP == 0) atcommand "@alive";
  216.     percentheal 100,100;
  217.     end;
  218. }
  219. */
  220.  
  221. //------------------------------------------------
  222.  
  223. /*
  224. -   script  PvP_Resu_Death  -1,{
  225.  
  226. OnPCDieEvent:
  227. if(strcharinfo(3) == "guild_vs1" || strcharinfo(3) == "guild_vs3" || strcharinfo(3) == "guild_vs4"){
  228. set .death,.death+1;
  229. if(.death<3) {
  230. announce "You have died "+.death+" times",bc_map;
  231. dispbottom "You'll be revived in 3 seconds";
  232. sleep2 3000;
  233. if(HP == 0) atcommand "@alive";
  234. percentheal 100,100;
  235. }
  236. else {
  237. dispbottom "Died more than 3 times" ;
  238. end;
  239. }
  240. }
  241. }
  242.  
  243. */
  244.  
  245. //------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement