gstorage_test.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //===== rAthena Script =======================================
  2. //= Sample: Guild Storage Test
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20180906
  7. //===== Description: =========================================
  8. //= Contains commands needed for a guild warehouse NPC.
  9. //============================================================
  10. prontera,165,188,4 script Guild Warehouse 112,{
  11. cutin "kafra_06",2;
  12. mes "[Guild Warehouse Coupler]";
  13. mes "This is the guild warehouse coupler service.";
  14. mes "You will not receive zeny for this is a test.";
  15. next;
  16. if (select("Access Guild Warehouse","Exit") != 1) {
  17. mes "[Guild Warehouser]";
  18. mes "Come back whenever you want.";
  19. cutin "kafra_06", 255;
  20. close;
  21. }
  22. switch(guildopenstorage()){
  23. case GSTORAGE_STORAGE_ALREADY_OPEN:
  24. mes "[Guild Warehouse]";
  25. mes "you are using your storage.";
  26. mes "Please wait a while, then come back.";
  27. break;
  28. case GSTORAGE_ALREADY_OPEN:
  29. mes "[Guild Warehouse]";
  30. mes "The guild warehouse is being used right now.";
  31. mes "Please wait a while, then come back.";
  32. break;
  33. case GSTORAGE_NO_GUILD:
  34. mes "[Guild Warehouse]";
  35. mes "You can't use this service if you're not in a guild!";
  36. break;
  37. case GSTORAGE_NO_STORAGE:
  38. mes "[Guild Warehouse]";
  39. mes "The guild does not have a guild storage.";
  40. break;
  41. case GSTORAGE_NO_PERMISSION:
  42. mes "[Guild Warehouse]";
  43. mes "You don't have permission to use the guild storage!";
  44. break;
  45. }
  46. cutin "kafra_06",255;
  47. close;
  48. }