Guest User

Untitled

a guest
May 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. Be aware of that this script isn't done yet still some few problem. (:
  2.  
  3. var endchat = "Okay, cya next time!";
  4. var next = "Sup? I can give you some items depending on what Job and level you are ;-).";
  5. var ifnot = "Sorry you do not have the require job or lvl to procced.";
  6. var ok = "There you go enjoy your items and armour!";
  7. var status = 0;
  8.  
  9. function start() {
  10. status = -1;
  11. action(1,0,0);
  12. }
  13.  
  14. function action(m,t,s) {
  15. if (m == 1) {
  16. status++;
  17. }
  18. else {
  19. cm.dispose();
  20. }
  21. if (status == 0) {
  22. cm.sendNext(next);
  23. }
  24. else if (status == 1) {
  25. cm.sendSimple("Sup I can give you an armour and a good wep for your current lvl, just press at the job you currently have.\r\n#L0##bWarrior#1\r\n#L1##bMagician#1\r\n#L2##bArcher#1\r\n#L3##bThief#1\r\n#L4##bPirate#1");
  26. }
  27. else if (status == 2) {
  28. if (s == 0) {
  29. if (cm.getPlayer().getGender() == 0) {
  30. if (cm.getPlayer().getJobId() == 100) {
  31. if (cm.getPlayer().getLevel() <= 10) {
  32. cm.gainItem(1302007,1);
  33. cm.gainItem(1402014,1);
  34. cm.gainItem(1432015,1);
  35. cm.sendOk(ok);
  36. cm.dispose();
  37. }
  38. else if (cm.getPlayer().getJobId() == 110 || 120 || 130) {
  39. }
  40. if (cm.getPlayer().getLevel() >= 30 && lvl <= 79) {
  41. cm.gainItem(1302008,1);
  42. cm.gainItem(1402002,1);
  43. cm.gainItem(1302071,1);
  44. cm.sendOk(ok);
  45. cm.dispose();
  46. }
  47. else if (cm.getPlayer().getJobId() == 111 || 121 || 131) {
  48. if (cm.getPlayer().getLevel() >= 80) {
  49. cm.gainItem(1302018,1);
  50. cm.gainItem(1402004,1);
  51. cm.gainItem(1432010,1);
  52. cm.sendOk(ok);
  53. cm.dispose();
  54. }
  55. else {
  56. cm.sendOk(ifnot);
  57. cm.dispose();
  58. }
  59. }
  60. }
  61. }
  62. }
  63. }
  64. }
Add Comment
Please, Sign In to add comment