Advertisement
Guest User

Untitled

a guest
Jul 26th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. //===== rAthena Script =======================================
  2. //= Custom Revival Quest
  3. //===== By: ==================================================
  4. //= GM Takumira - please don't remove.
  5. //============================================================
  6.  
  7. // Reward ID / Amount Initiating ( Check db/Item_db.txt || db/Item_db2.txt )
  8. setarray .Reward[0],
  9. 607,10, // Reward 1 + Amount
  10. 608,5, // Reward 2 + Amount
  11. 501,3, // etc......
  12. 512,1; // Last Reward 1 ( Max. ~64 Items )
  13.  
  14.  
  15. set .@npcname$,"^0000FF[ Takumirai ]^000000";
  16.  
  17. guild_vs5,39,51,5 script Dead Takumirai 849,{
  18.  
  19. if(gettimetick(2) - helped1 < (60 * 60 * 20)) {
  20. mes .@npcname$;
  21. mes "........";
  22. mes "There's a Note in his arm!";
  23. next;
  24. mes "[Note:]";
  25. mes "You must wait";
  26. mes "Until 20 Hours are over!";
  27. close;
  28. }
  29. mes "Legendary Takumirai is lying on the floor.";
  30. mes ".....";
  31. next;
  32. mes "there was a Note in his chest.";
  33. mes "Here is the list to Revive this Legendary Man.";
  34. next;
  35. mes "^cc000015x Poison Bottle";
  36. mes "150x Poison Spores";
  37. mes "50x Green Herbs";
  38. mes "and 20x Karvodailnirol.^000000";
  39. next;
  40. switch(select("-Cancel:-Yes, Lets Give it")) {
  41. case 1:
  42. close;
  43. }
  44. case 2:
  45. if (countitem(678) < 15 || countitem(7033) < 150 || countitem(511) < 50 || countitem(972) < 20){
  46. mes "You haven't all the Items.";
  47. mes "Here is the list from the Note again.";
  48. next;
  49. mes "^cc000015x Poison Bottle";
  50. mes "150x Poison Spores";
  51. mes "50x Green Herbs";
  52. mes "and 20x Karvodailnirol.^000000";
  53. close;
  54. } else {
  55. mes .@npcname$;
  56. mes "Ok thanks for the items.";
  57. delitem 678, 15; // Poison Bottle
  58. delitem 7033, 150; // Poison Spore
  59. delitem 511, 50; // Green Herb
  60. delitem 972, 20; // Karvodailnirol
  61. next;
  62. mes .@npcname$;
  63. mes ".....";
  64. mes "Something is happening";
  65. next;
  66. mes ".....";
  67. next;
  68. mes .@npcname$;
  69. mes "Who dares awake me..";
  70. setnpcdisplay("Dead Takumirai",980);
  71. sleep2 5000;
  72. next;
  73. mes .@npcname$;
  74. mes "Arrrgggg..";
  75. next;
  76. mes "My body is transforming to monster again..";
  77. setnpcdisplay("Dead Takumirai",999);
  78. mes .@npcname$;
  79. mes "You will die for this..";
  80. killmonsterall "guild_vs5";
  81. donpcevent "Room of Life::OnEnable";
  82. end;
  83.  
  84.  
  85.  
  86.  
  87. // Room of Life
  88. // ======================================
  89. guild_vs5,1,1,0 script Room of Life 66,{
  90. OnEnable:
  91. enablenpc "Room of Life";
  92. set .MyMobs,10;
  93. monster "guild_vs5",47,75,"Ancient Mimic",1699,5,"Room of Life::OnMyMobDead";
  94. monster "guild_vs5",47,44,"Anubis",1098,5,"Room of Life::OnMyMobDead";
  95. end;
  96.  
  97. OnDisable:
  98. killmonsterall "guild_vs5";
  99. disablenpc "Room of Life";
  100. end;
  101.  
  102. OnMyMobDead:
  103. set .MyMobs,.MyMobs-1;
  104. if (.MyMobs < 1) {
  105. mapannounce "guild_vs5",strcharinfo(0)+" has succeeded in eliminating the monsters.",bc_map;
  106. sleep2 3000;
  107. mapannounce "guild_vs5",strcharinfo(0)+" Legendary Dead Takumirai Again Sleeping.",bc_map;
  108. set BaseExp,+160000;
  109. set JobExp,+100000;
  110. set helped1,gettimetick(2);
  111. setnpcdisplay("Dead Takumirai",849);
  112. warp "prontera",120,110;
  113. for( set .@a,0; .@a < getarraysize( .Reward ); set .@a,.@a + 2 ){
  114. getitem .Reward[.@a],.Reward[.@a+1], $@partymemberaid[.@i];
  115. }
  116. dispbottom "Gained those items as Reward for Finishing Stage Game";
  117. warp "prontera",120,110;
  118.  
  119. }
  120. end;
  121. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement