Advertisement
Guest User

Untitled

a guest
Jan 20th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. /*
  2.  
  3. @Author Kyodia
  4. * NPC for : DRAZELMS
  5. * Purpose : Event Trophy Trade-In
  6.  
  7. */
  8.  
  9. var yes1 = "Enjoy! \r\n #b(#kYou have traded #r1 Event Trophy for 10,000 NX#b)#k"
  10. var yes2 = "Enjoy! \r\n #b(#kYou have traded #r2 Event Trophies for 22,500 NX#b)#k"
  11. var no = "I'm not sure you have the items needed!"
  12. var status;
  13.  
  14. function start() {
  15. status = -1;
  16. action(1, 0, 0);
  17. }
  18.  
  19. function action(m, t, s) {
  20. if (mode == 1) {
  21. status++;
  22. }else{
  23. status--;
  24. }
  25. if (status == 0) {
  26. cm.sendSimple("Hey there #h #, need to trade in a #revent trophy#k? \r\n\r\n #L0#Trade #e1#k Event Trophy for #b10,000 NX#k#l \r\n #L1# Trade #e2#k Event Trophies for #b22,500 NX#k #l");
  27. }else if (status == 1) {
  28. if (selection == 0) {
  29. if (cm.haveItem(4000038, 1)) {
  30. cm.sendOk(yes1);
  31. cm.gainNX(10000);
  32. cm.dispose();
  33. }else{
  34. cm.sendOk(no);
  35. cm.dispose();
  36. }else if (selection == 1) {
  37. if (cm.haveItem(4000038, 2)) {
  38. cm.sendOk(yes2);
  39. cm.gainNX(22500);
  40. cm.dispose();
  41. }else{
  42. cm.sendOk(no);
  43. cm.dispose();
  44. }
  45. }
  46. }
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement