yuhsing

Untitled

Jun 1st, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1.  
  2. prontera,155,181,5 script blessme 757,{
  3.  
  4. if (@blessing == 1)end;
  5. if (BaseLevel < 20) {
  6. dispbottom "You have to reach level 20 for Blessing.";
  7. end;
  8. }
  9. if (.bless_need != 0 && countitem(.bless_need) <= 0){
  10. dispbottom "You need "+getitemname(.bless_need)+" before start Blessing.";
  11. end;
  12. }
  13. getmapxy(@mapb$, @xb, @yb, 0 );
  14. if (@mapb$ != .bless_map$) {
  15. dispbottom "You can only do Blessing in "+.bless_mname$+".";
  16. end;
  17. }
  18. if (.bless_needs == 1 && .bless_need != 0){delitem .bless_need,1;}
  19. set @blessing,1;
  20. set @bexp,BaseLevel*5;
  21. dispbottom "Blessing started.";
  22. set @bless_boost,.bless_adj;
  23. if (Class > 4000){
  24. set @bless_boost,@bless_boost/2;
  25. }
  26. addtimer 10000, "blessme::OnBlessed";
  27.  
  28.  
  29. OnBlessed:
  30. if (@blessing != 1) {
  31. end;
  32. }
  33.  
  34. getmapxy(@mapb$, @xb, @yb, 0 );
  35. if (@mapb$ != .bless_map$) {
  36. dispbottom "Blessing is stopped because you are not in "+.bless_mname$+".";
  37. set @blessing,0;
  38. end;
  39. }
  40.  
  41. set @bexp,BaseLevel/@bless_boost*.bless_rate;
  42. if (countitem(.bless_item)) {
  43. set @bexp,@bexp*2;
  44. delitem .bless_item,1;}
  45. getexp @bexp,@bexp;
  46. specialeffect2 14;
  47. dispbottom "Gained "+@bexp*.server_rate+" Exp and J-Exp from Blessing.";
  48. deltimer "blessme::OnBlessed";
  49. addtimer 10000,"blessme::OnBlessed";
  50. end;
  51.  
  52. //=========================SETTING============================
  53. OnInit:
  54. set .bless_need, 523; //Require item to start Blessing. Default 523 (Holy Water) 0 to disable.
  55. set .bless_needs,0; //Item require setting, 0 = only need it in inventory 1 = consumed everytime Blessing started.
  56. set .bless_item,607; //Item for double exp earning. Consumed 1 item/10 seconds, 360/hour, 8640/day
  57. set .bless_map$,"prontera"; //Map require for Blessing
  58. set .bless_mname$, "Prontera City"; //Map name that will be told to player
  59. set .bless_adj,2; //Normal class will earn exp/2 while advance class not
  60. set .bless_rate,1; //Blessing exp rate
  61. set .server_rate,getbattleflag("base_exp_rate")/100; //Your server exp rate. Needed to for dispbottom part.
  62. end;
  63. //============================================================
  64. }
Advertisement
Add Comment
Please, Sign In to add comment