Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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