• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

guide hideout help

Newbie Spellweaver
Joined
Jan 31, 2014
Messages
23
Reaction score
11
PHP:
} else if (sub[0].equalsIgnoreCase("sethideout")) {
            if (chr.getGuildId() == 0) {
                chr.dropMessage("You are currently not in a guild.");
            } else if (chr.getGuildRank() != 1) {
                chr.dropMessage("You are not allowed to change this Guilds Hideout.");
            } else if (chr.getMapId() == ???) {
                chr.dropMessage("You are not allowed to use this map.");
            } else {
                chr.getGuild().setHideout(chr.getMapId());
                chr.dropMessage("You have changed your Guilds Hideout.");  
            }

??? = map id.

if you want to block more maps, just add || chr.getMapId() == ???

example :

chr.getMapId() == 0 || chr.getMapId() == 1
 
Upvote 0
Back
Top