guild_warehouse.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. //===== rAthena Script =======================================
  2. //= Guild Warehouse Manager
  3. //===== Description: =========================================
  4. //= [Walkthrough Conversion]
  5. //= Gives players access to their guild storage and log.
  6. //===== Changelogs: ==========================================
  7. //= 1.0 First Version. [Lemongrass]
  8. //============================================================
  9. - script GuildWarehouse -1,{
  10. mes "[Warehouse Manager]";
  11. mes "How are you? We are specialized in guild warehouses. This is our ^0000cdstory^000000:";
  12. mes "Why can't guild members share a storage? We started off with that simple question.";
  13. next;
  14. mes "[Warehouse Manager]";
  15. mes "You can open the warehouse for 1000 Zeny or look up the usage history of the guild.";
  16. mes "How can I help you?";
  17. next;
  18. if( select( "Open guild warehouse:View warehouse usage history" ) == 1 ){
  19. .@guildid = getcharid( 2 );
  20. if( .@guildid == 0 ){
  21. mes "[Warehouse Manager]";
  22. mes "The guild storage is only available for guild members.";
  23. close;
  24. }
  25. if( getgdskilllv( .@guildid, "GD_GUILD_STORAGE" ) == 0 || !guild_has_permission( GUILD_PERM_STORAGE ) ){
  26. mes "[Warehouse Manager]";
  27. mes "It seems that it is not yet possible for your guild to use the guild warehouse or you do not have access permissions for the warehouse.";
  28. mes "Please come back after checking the guild skill and the permission to access the warehouse.";
  29. close;
  30. }
  31. if( Zeny < 1000 ){
  32. mes "[Warehouse Manager]";
  33. mes "I am afraid you do not have enough money to settle the fee.";
  34. mes "The fee is 1000 Zeny.";
  35. close;
  36. }
  37. mes "[Warehouse Manager]";
  38. mes "I will open the guild storage for you then. Have a memorable time!";
  39. close2;
  40. if( Zeny < 1000 ){
  41. // Cheat prevention
  42. end;
  43. }
  44. if( guildopenstorage() == GSTORAGE_OPEN ){
  45. Zeny -= 1000;
  46. end;
  47. }else{
  48. mes "[Warehouse Manager]";
  49. mes "I am afraid someone else is using the warehouse right now.";
  50. mes "Please try again after a while.";
  51. close;
  52. }
  53. }else{
  54. .@guildid = getcharid( 2 );
  55. if( .@guildid == 0 ){
  56. mes "[Warehouse Manager]";
  57. mes "The guild storage is only available for guild members.";
  58. close;
  59. }
  60. if( getgdskilllv( .@guildid, "GD_GUILD_STORAGE" ) == 0 || !guild_has_permission( GUILD_PERM_STORAGE ) ){
  61. mes "[Warehouse Manager]";
  62. mes "It seems that it is not yet possible for your guild to use the guild warehouse or you do not have access permissions for the warehouse.";
  63. mes "Please come back after checking the guild skill and the permission to access the warehouse.";
  64. close;
  65. }
  66. mes "[Warehouse Manager]";
  67. mes "I will show you the usage history of the warehouse. Usage history will be retained for up to 3 months.";
  68. mes "Have a memorable time!";
  69. close2;
  70. guildopenstorage_log();
  71. end;
  72. }
  73. }
  74. alberta,114,65,5 duplicate(GuildWarehouse) Guild Warehouse Manager#alberta 896
  75. aldebaran,146,122,3 duplicate(GuildWarehouse) Guild Warehouse Manager#aldebaran 896
  76. amatsu,100,156,5 duplicate(GuildWarehouse) Guild Warehouse Manager#amatsu 896
  77. ayothaya,203,173,3 duplicate(GuildWarehouse) Guild Warehouse Manager#ayothaya 896
  78. brasilis,204,227,3 duplicate(GuildWarehouse) Guild Warehouse Manager#brasilis 896
  79. comodo,204,153,3 duplicate(GuildWarehouse) Guild Warehouse Manager#comodo 896
  80. dewata,196,193,3 duplicate(GuildWarehouse) Guild Warehouse Manager#dewata 896
  81. einbech,182,124,3 duplicate(GuildWarehouse) Guild Warehouse Manager#einbech 896
  82. einbroch,238,203,3 duplicate(GuildWarehouse) Guild Warehouse Manager#einbroch 896
  83. geffen,128,68,3 duplicate(GuildWarehouse) Guild Warehouse Manager#geffen 896
  84. gonryun,164,127,5 duplicate(GuildWarehouse) Guild Warehouse Manager#gonryun 896
  85. harboro1,288,212,5 duplicate(GuildWarehouse) Guild Warehouse Manager#harboro1 896
  86. hugel,91,158,5 duplicate(GuildWarehouse) Guild Warehouse Manager#hugel 896
  87. izlude,133,149,3 duplicate(GuildWarehouse) Guild Warehouse Manager#izlude 896
  88. lighthalzen,162,102,3 duplicate(GuildWarehouse) Guild Warehouse Manager#lighthalzen 896
  89. louyang,210,111,5 duplicate(GuildWarehouse) Guild Warehouse Manager#louyang 896
  90. malaya,238,206,3 duplicate(GuildWarehouse) Guild Warehouse Manager#malaya 896
  91. morocc,168,107,3 duplicate(GuildWarehouse) Guild Warehouse Manager#morocc 896
  92. moscovia,211,200,5 duplicate(GuildWarehouse) Guild Warehouse Manager#moscovia 896
  93. niflheim,200,184,3 duplicate(GuildWarehouse) Guild Warehouse Manager#niflheim 896
  94. payon,180,106,3 duplicate(GuildWarehouse) Guild Warehouse Manager#payon 896
  95. prontera,150,191,3 duplicate(GuildWarehouse) Guild Warehouse Manager#prontera 896
  96. rachel,123,145,3 duplicate(GuildWarehouse) Guild Warehouse Manager#rachel 896
  97. umbala,106,160,3 duplicate(GuildWarehouse) Guild Warehouse Manager#umbala 896
  98. veins,205,130,3 duplicate(GuildWarehouse) Guild Warehouse Manager#veins 896
  99. xmas,155,140,5 duplicate(GuildWarehouse) Guild Warehouse Manager#xmas 896
  100. yuno,176,187,3 duplicate(GuildWarehouse) Guild Warehouse Manager#yuno 896