yuhsing

Untitled

May 30th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1.  
  2.  
  3. //http://rathena.org/board/topic/57784-request-dota-runes/page__fromsearch__1
  4.  
  5. guild_vs3,49,50,5 script Runes 757,{
  6. // dispbottom "Walkthrough to get Runes.";
  7. // end;
  8.  
  9. OnTouch:
  10. switch( .Runes ){
  11. Case 1:
  12. sc_start SC_INCATKRATE,( .Duration * 1000 ),100;
  13. sc_start SC_INCMATKRATE,( .Duration * 1000 ),100;
  14. break;
  15. Case 2:
  16. skill "AS_CLOAKING",10,1;
  17. sc_start SC_CLOAKING,( .Duration * 1000 ),10;
  18. break;
  19. Case 3:
  20. sc_start4 SC_REGENERATION,( .Duration * 1000 ),-10,1,0,0;
  21. break;
  22. Case 4:
  23. getmapxy( .@Map$,.@X,.@Y,0,strcharinfo(0) );
  24. clone .@Map$,.@X,.@Y,"",getcharid(0),getcharid(0),"",1,.Duration;
  25. clone .@Map$,.@X,.@Y,"",getcharid(0),getcharid(0),"",1,.Duration;
  26. break;
  27. Case 5:
  28. sc_start SC_SpeedUp1,( .Duration * 1000 ),0;
  29. break;
  30. default: end;
  31. }
  32. announce "[ "+strcharinfo(0)+" ] has gained "+.Names$[.Runes]+".",bc_self,0x00FF00;
  33. hideonnpc strnpcinfo(0);
  34. delwaitingroom;
  35. set .Runes,0;
  36. set .RuneDelay,gettimetick(2) + .Duration;
  37. while( .RuneDelay > gettimetick(2) ) sleep2 1000;
  38.  
  39. OnInit:
  40. // Runes Duration in Seconds
  41. set .Duration,60;
  42.  
  43. // Name of Each Runes.
  44. setarray .Names$[1],
  45. "Double Damage", // 2 x ATK Rate
  46. "Invisibility", // Cloaking
  47. "Regeneration", // HP / SP Regeneration
  48. " Clone", // Create 2 Clones
  49. " Haste"; // Improve Movement Speed
  50.  
  51. // Random Coordinate where NPC will Shown Again
  52. setarray .CoordinateX[0],67,68;
  53. setarray .CoordinateY[0],30,30;
  54.  
  55. sc_end SC_CLOAKING;
  56. sc_end SC_REGENERATION;
  57. set .Random,rand( getarraysize( .CoordinateX ) );
  58. movenpc strnpcinfo(0),.CoordinateX[ .Random ],.CoordinateY[ .Random ];
  59. hideoffnpc strnpcinfo(0);
  60. if( !.Runes ) set .Runes,rand( 1,( getarraysize( .Names$ ) - 1 ) );
  61. if( .Runes ) waitingroom " "+.Names$[.Runes],0;
  62. end;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment