Advertisement
Guest User

Untitled

a guest
Apr 26th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. turbo_room,66,82,6 script Donation NPC 4_F_SCIENCE,{
  2.  
  3. mes "Donation Exchanger";
  4. mes "I can exchange Pods for stuff.";
  5. next;
  6. mes "Donation Exchanger";
  7. mes "Please see our Forums for our";
  8. mes "Exchange Rate of Proof of Donation";
  9. next;
  10. .@menu = select("Headgear:Armor:Shield:Shoes:Weapons");
  11. switch(.@menu) {
  12.  
  13. case 1:
  14. mes "Donation Exchanger";
  15. mes "Headgears cost pods and something something";
  16. openshop("HeadgearPods");
  17. close;
  18. break;
  19.  
  20. // do the same for case 1 to below
  21. case 2:
  22. openshop("ArmorPods");
  23. close;
  24. break;
  25.  
  26. case 3:
  27. openshop("ShieldPods");
  28. close;
  29. break;
  30.  
  31. case 4:
  32. openshop("ShoesPods");
  33. close;
  34. break;
  35.  
  36. case 5:
  37. openshop("WeaponsPods");
  38. close;
  39. break;
  40. }
  41. }
  42.  
  43. // Enter your headgears here
  44. // Repeat script for ArmorPods, ShoesPods, etc.
  45. - script HeadgearPods FAKE_NPC,{
  46.  
  47. OnInit:
  48. tradertype(NST_CUSTOM);
  49. sellitem 501,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
  50. end;
  51.  
  52. - script ArmorPods FAKE_NPC,{
  53.  
  54. OnInit:
  55. tradertype(NST_CUSTOM);
  56. sellitem 502,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
  57. end;
  58.  
  59. - script ShieldPods FAKE_NPC,{
  60.  
  61. OnInit:
  62. tradertype(NST_CUSTOM);
  63. sellitem 503,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
  64. end;
  65.  
  66. - script ShoesPods FAKE_NPC,{
  67.  
  68. OnInit:
  69. tradertype(NST_CUSTOM);
  70. sellitem 504,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
  71. end;
  72.  
  73.  
  74. - script WeaponsPods FAKE_NPC,{
  75.  
  76. OnInit:
  77. tradertype(NST_CUSTOM);
  78. sellitem 505,1,1; // Sells 1 Red Potion for 1 Currency (Pods)
  79. end;
  80.  
  81. // Sets Pods as the store currency
  82. OnCountFunds:
  83. setcurrency(countitem("7179"));
  84. end;
  85.  
  86. // I don't know about this I just copied it from the trader sample.
  87. // The 's'/'have'/'has' is about getting the correct grammar/plural
  88. OnPayFunds:
  89. dispbottom ""+price+" Pod" + (@price == 1?"":"s") + " " + (@price == 1?"has":"have") + " been deducted from your inventory."; // put @ before '+price+' so it is '+@price+'
  90. if( countitem(pods) < @points || countitem("7179") < price-points) // put @ before each one, forum is censoring them
  91. end;
  92. delitem 7179,@points;
  93. delitem 7179,@price-@points;
  94. purchaseok();
  95. end;
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement