Advertisement
Emistry

[RO] Miner Event

Jul 31st, 2017
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. // https://rathena.org/board/topic/112035-fatal-error-player-not-attached/
  2.  
  3. prontera,147,163,6 script Shadow Miner 1169,{
  4. doevent .npc_name$+"::OnTalk";
  5. }
  6.  
  7.  
  8. - script Announcerm -1,{
  9.  
  10. OnInit:
  11. .map$ = "mine_evt";
  12. disablenpc "Shadow Miner";
  13. .npc_name$ = strnpcinfo(3);
  14. end;
  15.  
  16. OnMinute35:
  17. stopnpctimer;
  18. killmonster .map$,"All";
  19. announce "xxxxxxxxxx.",bc_all,0xAA42F9;
  20. sleep 4000;
  21. announce "xxxxxxxxxxxx.",bc_all,0xAA42F9;
  22. enablenpc "Shadow Miner";
  23. sleep 4000;
  24. announce "xxxxxxxxxx.",bc_all,0xAA42F9;
  25. sleep 4000;
  26. announce "xxxxxxxxx.",bc_all,0xAA42F9;
  27. sleep 60000;
  28. announce "xxxxxxxxxx.",bc_all,0xAA42F9;
  29. disablenpc "Shadow Miner";
  30.  
  31. if(getmapusers(.map$) == 0) {
  32. announce "xxxxxxxxxxxxx.",bc_all,0xAA42F9;
  33. }
  34. else {
  35. mapannounce .map$,"Shadow Miner: xxxxxxxx.",bc_all,0xAA42F9;
  36. sleep 6000;
  37. mapannounce .map$,"Shadow Miner: xxxxxxx.",bc_all,0xAA42F9;
  38. sleep 6000;
  39. mapannounce .map$,"Shadow Miner: xxxxxxx.",bc_all,0xAA42F9;
  40. sleep 10000;
  41. mapannounce .map$,"Shadow Miner: xxxxxxx.",bc_all,0xAA42F9;
  42. sleep 10000;
  43. mapannounce .map$,"Shadow Miner: xxxxxxx.",bc_all,0xAA42F9;
  44. sleep 6000;
  45. if(getmapusers(.map$) > 0) {
  46. mapannounce .map$,"Shadow Miner: xxxxx",bc_all,0xAA42F9;
  47. sleep 2000;
  48. for ( .@i = 5; .@i > 0; .@i-- ) {
  49. mapannounce .map$,"Shadow Miner: "+ .@i,bc_all,0xAA42F9;
  50. sleep 1000;
  51. }
  52. mapannounce .map$,"Shadow Miner: Go!.",bc_all,0xAA42F9;
  53. playBGMall "mining";
  54. monster .map$,0,0,"Gold Node",3512,80, .npc_name$+"::OnCrystalKilled1";
  55. monster .map$,0,0,"Diamantinum Node",3511,5, .npc_name$+"::OnCrystalKilled2";
  56. initnpctimer;
  57. }
  58. }
  59. end;
  60.  
  61. OnTimer80000:
  62. mapannounce "Shadow Miner: Se acabo jejeje, los devolvere a Prontera",bc_all,0xAA42F9;
  63. killmonster .map$,"All";
  64. end;
  65.  
  66. OnTimer83500:
  67. stopnpctimer;
  68. mapwarp .map$,"prontera",155,184;
  69. disablenpc "Shadow Miner";
  70. end;
  71.  
  72. OnCrystalKilled1:
  73. getitem 969,10;
  74. end;
  75.  
  76. OnCrystalKilled2:
  77. getitem 33005,1;
  78. end;
  79.  
  80. OnTalk:
  81. mes "[^AA42F9Fiebre del Mineral^000000]";
  82. mes "xxxxxxxxxxx:";
  83. if (select("XXX.", "YYYY.") == 1) {
  84. mes "xxxxxxxxx.";
  85. specialeffect2 35;
  86. sleep2 100;
  87. specialeffect2 6;
  88. sleep2 1200;
  89. specialeffect2 71;
  90. specialeffect2 389;
  91. specialeffect2 36;
  92. specialeffect2 389;
  93. sleep2 825;
  94. addtimer (10 * 1000), .npc_name$+"::OnCheck";
  95. warp .map$,98,45;
  96. }
  97. else {
  98. mes "xxxxxxxxxxx.";
  99. }
  100. close;
  101.  
  102. OnCheck:
  103. if (strcharinfo(3) == .map$ && getequipid(EQI_COSTUME_HEAD_TOP) == 33008 && getequipid(EQI_HAND_R) == 33007) {
  104. addtimer ( 10 * 1000 ), .npc_name$+"::OnCheck";
  105. }
  106. else {
  107. message strcharinfo(0),"You will be kick out for not complying with the rules of the event: use of equipment.";
  108. sleep2 3000;
  109. warp "prontera",155,184;
  110. }
  111. end;
  112. }
  113.  
  114. //================= Mapflags =======================
  115.  
  116. mine_evt mapflag nowarp
  117. mine_evt mapflag nowarpto
  118. mine_evt mapflag noteleport
  119. mine_evt mapflag nosave
  120. mine_evt mapflag nomemo
  121. mine_evt mapflag nobranch
  122. mine_evt mapflag noloot
  123. mine_evt mapflag noskill
  124. mine_evt mapflag nopenalty
  125. mine_evt mapflag noreturn
  126. mine_evt mapflag pvp off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement