summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-03-23 02:09:12 -0300
committerJesusaves <cpntb1@ymail.com>2019-03-23 02:09:12 -0300
commite62562b4c5b72b6ad0552f2072e5fc38af432c1a (patch)
tree6950091f15427e6f05f15c1d9db02e04a511a24b
parent416caf7957aa2df05c40fafa85cb0afec6ee6782 (diff)
downloadserverdata-e62562b4c5b72b6ad0552f2072e5fc38af432c1a.tar.gz
serverdata-e62562b4c5b72b6ad0552f2072e5fc38af432c1a.tar.bz2
serverdata-e62562b4c5b72b6ad0552f2072e5fc38af432c1a.tar.xz
serverdata-e62562b4c5b72b6ad0552f2072e5fc38af432c1a.zip
Implement the ability to guilds go from max 16 members to max 32 members (iirc)
-rw-r--r--db/re/skill_tree.conf1
-rw-r--r--npc/guilds/logs.txt38
2 files changed, 39 insertions, 0 deletions
diff --git a/db/re/skill_tree.conf b/db/re/skill_tree.conf
index afd8da0d7..3f4cb445f 100644
--- a/db/re/skill_tree.conf
+++ b/db/re/skill_tree.conf
@@ -34,6 +34,7 @@ Human: {
WE_MALE: 0
WE_FEMALE: 0
SN_SHARPSHOOTING: 0
+ GD_EXTENSION: 0
// Magical
AL_HEAL: 3
diff --git a/npc/guilds/logs.txt b/npc/guilds/logs.txt
index 142109b23..fcd555f99 100644
--- a/npc/guilds/logs.txt
+++ b/npc/guilds/logs.txt
@@ -5,7 +5,45 @@
// Guild Facility - Contains recipe list
guilds,47,39,0 script Guild Logs NPC_NO_SPRITE,{
+ .@gid=getcharid(2);
mesc l("Your guild doesn't know any recipes."), 1;
+ if (getguildrole(.@gid, getcharid(3)) > GPOS_VICELEADER)
+ close;
+ do
+ {
+ select
+ l("Do nothing"),
+ rif(strcharinfo(0) == getguildmaster(.@gid), l("Raise max members"));
+ mes "";
+
+ switch (@menu) {
+ case 2:
+ .@cur_lv=getguildlvl(.@gid);
+ .@min_lv=(getskilllv(GD_EXTENSION)+1)*4;
+ .@price=.@min_lv*274;
+ if (.@cur_lv < .@min_lv)
+ {
+ mesc l("Guild Level is not enough: @@/@@", .@cur_lv, .@min_lv);
+ next;
+ break;
+ }
+ mesc l("Raising this skill will allow to recruit 4 more members.");
+ mesc l("The cost for Guild Vault is @@ GP.", .@price);
+ next;
+ select
+ rif($GUILD_BANK[.@gid] >= .@price, l("Upgrade it")),
+ l("Don't upgrade it");
+ mes "";
+ if (@menu == 1 && $GUILD_BANK[.@gid] >= .@price)
+ {
+ $GUILD_BANK[.@gid]-=.@price;
+ skill GD_EXTENSION, getskilllv(GD_EXTENSION)+1, 0;
+ break;
+ }
+ break;
+ }
+
+ } while (@menu != 1);
close;
OnInit: