Advertisement
Guest User

Untitled

a guest
May 5th, 2012
1,138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. prontera,146,304,5 script Reseter 407,{
  2. mes .npcname$;
  3. mes "So are you satisfied with your";
  4. mes "current stat allocation?";
  5. mes "Of course not, if you want to make";
  6. mes "a change then listen on.";
  7. next;
  8. mes .npcname$;
  9. mes "I use the power of the";
  10. mes "^009900"+getitemname(.stoneid)+"^000000 to help adventurers";
  11. mes "reset their stat choices.";
  12. mes "Of course the more powerful the";
  13. mes "adventurer, the more ^009900"+getitemname(.stoneid)+"s^000000";
  14. mes "I need the perform the reset.";
  15. next;
  16. for(set .@i,0; .@i<getarraysize(.minrange); set .@i,.@i+1) {
  17. if(BaseLevel >= .minrange[.@i] && BaseLevel <= .maxrange[.@i]) {
  18. set .@stonesreq,.stones[.@i];
  19. }
  20. }
  21. mes .npcname$;
  22. mes "For instance you ["+strcharinfo(0)+"] would require.";
  23. mes "["+.@stonesreq+"] "+getitemname(.stoneid)+" to reset all your stats to 1 and get all your status points back.";
  24. next;
  25. switch(select("Tell me More!","Lets reset NOW","First Time Free Reset","Later")) {
  26. case 1:
  27. mes .npcname$;
  28. for(set .@i,0; .@i<getarraysize(.minrange); set .@i,.@i+1) {
  29. mes "Base Lvl ^000099"+.minrange[.@i]+" - "+.maxrange[.@i]+"^000000 ^009900["+.stones[.@i]+" "+getitemname(.stoneid)+"]^000000";
  30. }
  31. close;
  32. case 2:
  33. mes .npcname$;
  34. mes "Ok let's start checking.";
  35. next;
  36. if(Weight > 0) {
  37. mes .npcname$;
  38. mes "Lower your weight to 0";
  39. close;
  40. }
  41. if(checkcart()) { setcart 0; }
  42. if(checkfalcon()) { setfalcon 0;}
  43. if(checkriding()) { setriding 0;}
  44. if(countitem(.stoneid) >= .@stonesreq) {
  45. delitem .stoneid,.@stonesreq;
  46. resetstatus;
  47. close;
  48. }
  49. else {
  50. mes .npcname$;
  51. mes "You do not have enough ^009900"+getitemname(.stoneid)+"s^000000";
  52. close;
  53. }
  54. case 3:
  55. if( !Freebies ){
  56. set Freebies,1;
  57. mes "Welcome...this is your first character free reset...";
  58. resetstatus;
  59. }else{
  60. mes "You have reset for free already.";
  61. }
  62. close;
  63.  
  64. case 4:
  65. close;
  66. }
  67.  
  68. OnInit:
  69. set .stoneid,6320; //reset stone id = 6320 ?
  70. set .npcname$,"["+strnpcinfo(0)+"]";
  71. setarray .minrange[0],1 , 41, 71, 91, 111, 126, 141;
  72. setarray .maxrange[0],40, 70, 90, 110,125, 140, 150;
  73. setarray .stones[0], 1, 2, 3, 4, 5, 6, 7;
  74. end;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement