summaryrefslogblamecommitdiff
path: root/npc/guilds/storage.txt
blob: 2f8db6d22b4d856d9923b4d353dcf76e0ddd1d63 (plain) (tree)
1
2
3
4
5
6
7
8
9
10







                                                       

                  





                                                                                          
                                                            



                                                                                        











                                                                                             
// Moubootaur Legends Script
// Author:
//    Jesusalva
// Description:
//  Guild Facility - Guild Storage

guilds,33,28,0	script	Guild Storage	NPC_NO_SPRITE,{
    .@gid=getcharid(2);
    if (.@gid < 1)
        end;
    if (getguildlvl(.@gid) < 2)
    {
        npctalkonce l("Your guild need to have at least level 2 to use storage feature.");
    }
    else
    {
        if (getguildrole(.@gid, getcharid(3)) > GPOS_MEMBER)
        {
            dispbottom l("Your position must be the one of a 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;
}