gstorage_test.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //===== rAthena Script =======================================
  2. //= Sample: Guild Storage Test
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20140208
  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. .@flag = guildopenstorage;
  23. if (.@flag == 1) {
  24. mes "[Guild Warehouse]";
  25. mes "The guild warehouse is being used right now.";
  26. mes "Please wait a while, then come back.";
  27. } else if (.@flag == 2) {
  28. mes "[Guild Warehouse]";
  29. mes "You can't use this service if you're not in a guild!";
  30. }
  31. cutin "kafra_06",255;
  32. close;
  33. }