gstorage_test.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //===== rAthena Script =======================================
  2. //= Sample: Guild Storage Test
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20130325
  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. menu "Access Guild Warehouse", GS_OPEN, "Exit", GS_EXIT3;
  17. GS_OPEN:
  18. set @flag,guildopenstorage();
  19. if(@flag == 1) goto GS_EXIT1;
  20. if(@flag == 2) goto GS_EXIT2;
  21. goto GS_EXIT4;
  22. GS_EXIT1:
  23. mes "[Guild Warehouse]";
  24. mes "The guild warehouse is being used right now.";
  25. mes "Please wait a while, then come back.";
  26. goto GS_EXIT4;
  27. GS_EXIT2:
  28. mes "[Guild Warehouse]";
  29. mes "You can't use this service if you're not in a guild!";
  30. goto GS_EXIT4;
  31. GS_EXIT3:
  32. mes "[Guild Warehouser]";
  33. mes "Come back whenever you want.";
  34. GS_EXIT4:
  35. cutin "kafra_06",255;
  36. close;
  37. }