summaryrefslogtreecommitdiff
path: root/npc/guilds/storage.txt
blob: bae5c985be572078b12e2b0d8deb898f6ba9a73c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Moubootaur Legends Script
// Author:
//    Jesusalva
// Description:
//  Guild Facility - Guild Storage

guilds,33,28,0	script	Guild Storage	NPC_NO_SPRITE,{
    goto OnStorage;

OnStorage:
    .@gid=getcharid(2);
    if (.@gid < 1)
        end;
    if (getguildlvl(.@gid) < 2)
    {
        npctalkonce l("Your guild needs to have at least level 2 to use storage feature.");
    }
    else
    {
        if (getguildrole(.@gid, getcharid(3)) > GPOS_MEMBER)
        {
            dispbottom l("Your rank must be regular member or above.");
            end;
        }
        if (guildopenstorage())
        {
            npctalkonce l("Someone else is using the guild storage right now. Please wait.");
        }
    }
    end;

OnInit:
    .distance=2;
    end;
}