diff options
Diffstat (limited to 'npc/guilds/logs.txt')
-rw-r--r-- | npc/guilds/logs.txt | 38 |
1 files changed, 38 insertions, 0 deletions
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: |