[Release] Option to fully disable autoban in the properties file

Page 1 of 4 1234 LastLast
Results 1 to 15 of 51
  1. #1
    You've got my respect! Traitor is offline
    MemberRank
    Apr 2008 Join Date
    Portland,OregonLocation
    959Posts

    [Release] Option to fully disable autoban in the properties file

    Basically this allows you to toggle autoban (enabled or disabled) in a properties file (world.properties)
    The .patch is based on revision 174 of valhalla, but if you know how to read .patch files you should be able to apply this to any source.
    I'm fairly sure this works.

    PLEASE NOTE THAT THIS DISABLES AUTOBAN ENTIRELY, INCLUDING THE AUTO-BANNING OF SUMMONING BAG HACKERS, AND SMEGA HACKERS AND OTHER AUTOBANS

    Here's it is:
    Code:
    Index: src/net/sf/odinms/net/channel/ChannelServer.java
    ===================================================================
    --- src/net/sf/odinms/net/channel/ChannelServer.java	(revision 174)
    +++ src/net/sf/odinms/net/channel/ChannelServer.java	(working copy)
    @@ -100,6 +100,7 @@
     	private int dropRate;
     	private int bossdropRate;
     	private int petExpRate;
    +	public  boolean autoban;
     	private boolean gmWhiteText;
     	private boolean cashshop;
     	private boolean dropUndroppables;
    @@ -170,6 +171,7 @@
     						moreThanOne = Boolean.parseBoolean(props.getProperty("net.sf.odinms.world.morethanone", "false"));
     						gmWhiteText = Boolean.parseBoolean(props.getProperty("net.sf.odinms.world.gmWhiteText", "false"));
     						cashshop = Boolean.parseBoolean(props.getProperty("net.sf.odinms.world.cashshop", "false"));
    +						autoban = Boolean.parseBoolean(props.getProperty("net.sf.odinms.world.autoban", "false"));
     						Properties dbProp = new Properties();
     						fr = new FileReader("db.properties");
     						dbProp.load(fr);
    Index: src/net/sf/odinms/server/AutobanManager.java
    ===================================================================
    --- src/net/sf/odinms/server/AutobanManager.java	(revision 174)
    +++ src/net/sf/odinms/server/AutobanManager.java	(working copy)
    @@ -35,6 +35,7 @@
     import java.util.TreeSet;
     import net.sf.odinms.client.MapleClient;
     import net.sf.odinms.tools.MaplePacketCreator;
    +import net.sf.odinms.net.channel.ChannelServer;
     //import org.slf4j.Logger;
     //import org.slf4j.LoggerFactory;
     
    @@ -94,7 +95,7 @@
     			reasonList.add(reason);
     			this.reasons.put(acc, reasonList);
     		}
    -		if (this.points.get(acc) >= AUTOBAN_POINTS) {
    +		if (this.points.get(acc) >= AUTOBAN_POINTS && ChannelServer.getInstance(c.getChannel()).autoban) {
     			String name = c.getPlayer().getName();
     			StringBuilder banReason = new StringBuilder("Autoban for Character ");
     			banReason.append(name);
    Index: world.properties
    ===================================================================
    --- world.properties	(revision 174)
    +++ world.properties	(working copy)
    @@ -32,6 +32,9 @@
     # allow GM's to talk in white background text
     net.sf.odinms.world.gmWhiteText=true
     
    +# allows you to change if autoban is on or not
    +net.sf.odinms.world.autoban=true
    +
     # spawn a character for debugging purposes on every map
     net.sf.odinms.world.faekchar=false
    Also uploaded for people who don't know how to save files as .patch

    edit:
    If it doesn't patch for you, just manually patch it in. It isn't a very tough job to do.
    Attached Files Attached Files


  2. #2
    Enthusiast darkfluxay is offline
    MemberRank
    Sep 2008 Join Date
    CanadaLocation
    25Posts

    Re: [Release] Option to disable autoban in the properties file

    Good Job !

  3. #3
    Proficient Member Twdtwd is offline
    MemberRank
    Apr 2008 Join Date
    USALocation
    162Posts

    Re: [Release] Option to disable autoban in the properties file

    Wow, so simple.. it looks like it would work, im going to test it.
    If it works Great job!

    Twdtwd

  4. #4
    Proficient Member ecoreck is offline
    MemberRank
    Aug 2008 Join Date
    154Posts

    Re: [Release] Option to disable autoban in the properties file

    Finally. Thank you very much.

    Would !cheaters still work though?

  5. #5
    You've got my respect! Traitor is offline
    MemberRank
    Apr 2008 Join Date
    Portland,OregonLocation
    959Posts

    Re: [Release] Option to disable autoban in the properties file

    Quote Originally Posted by ecoreck View Post
    Finally. Thank you very much.

    Would !cheaters still work though?
    Yeah, it doesn't mess with that at all.

  6. #6
    Account Upgraded | Title Enabled! Sonny Rocks! is offline
    MemberRank
    Sep 2008 Join Date
    In a box!Location
    275Posts

    Re: [Release] Option to disable autoban in the properties file

    Good Job. Now we don't need the guides on how to turn off autoban.

  7. #7
    You've got my respect! Traitor is offline
    MemberRank
    Apr 2008 Join Date
    Portland,OregonLocation
    959Posts

    Re: [Release] Option to disable autoban in the properties file

    Quote Originally Posted by Sonny Rocks! View Post
    Good Job. Now we don't need the guides on how to turn off autoban.
    Yeah, I was kind of surprised that no one has done this before.

  8. #8
    Alpha Member YouAreNotBob is offline
    MemberRank
    Aug 2008 Join Date
    1,542Posts

    Re: [Release] Option to disable autoban in the properties file

    Very nice/useful

  9. #9
    Account Upgraded | Title Enabled! Signalize is offline
    MemberRank
    Nov 2008 Join Date
    USALocation
    363Posts

    Re: [Release] Option to disable autoban in the properties file

    remember, this takes away the autoban for real hackers as well (summon bag, kipe, smega)

  10. #10
    Alpha Member Markii is offline
    MemberRank
    Nov 2008 Join Date
    NewyorkLocation
    1,917Posts

    Re: [Release] Option to disable autoban in the properties file

    Looks very nice

  11. #11
    You've got my respect! Traitor is offline
    MemberRank
    Apr 2008 Join Date
    Portland,OregonLocation
    959Posts

    Re: [Release] Option to disable autoban in the properties file

    Quote Originally Posted by Signalize View Post
    remember, this takes away the autoban for real hackers as well (summon bag, kipe, smega)
    Forgot to add that into the OP, thanks.

  12. #12
    Account Upgraded | Title Enabled! iamSTEVE is offline
    MemberRank
    Jul 2008 Join Date
    528Posts

    Re: [Release] Option to disable autoban in the properties file

    This would disable all the autobans, but only a few are especially faulty, namely checkhighdamage and that special movement autoban that autobans any mage that teleports in El nath.

  13. #13
    Account Upgraded | Title Enabled! lonerzboy is offline
    MemberRank
    Apr 2008 Join Date
    Singapore~Location
    305Posts

    Re: [Release] Option to disable autoban in the properties file

    idk will this affect the patch,but i spot typo.
    Code:
    --- world.properties	(revision 174)
    +++ world.properties	(working copy)
    @@ -32,6 +32,9 @@
     # allow GM's to talk in white background text
     net.sf.odinms.world.gmWhiteText=true
     
    +# allows you to change if autoban is on or not
    +net.sf.odinms.world.autoban=true
    +
     # spawn a character for debugging purposes on every map
     net.sf.odinms.world.faekchar=false
    isnt it supposed to be fakechar?

  14. #14
    You've got my respect! Traitor is offline
    MemberRank
    Apr 2008 Join Date
    Portland,OregonLocation
    959Posts

    Re: [Release] Option to disable autoban in the properties file

    Quote Originally Posted by lonerzboy View Post
    idk will this affect the patch,but i spot typo.
    Code:
    --- world.properties	(revision 174)
    +++ world.properties	(working copy)
    @@ -32,6 +32,9 @@
     # allow GM's to talk in white background text
     net.sf.odinms.world.gmWhiteText=true
     
    +# allows you to change if autoban is on or not
    +net.sf.odinms.world.autoban=true
    +
     # spawn a character for debugging purposes on every map
     net.sf.odinms.world.faekchar=false
    isnt it supposed to be fakechar?
    That "typo" wasn't me, that was the original odinms developers.

  15. #15
    Enthusiast darkfluxay is offline
    MemberRank
    Sep 2008 Join Date
    CanadaLocation
    25Posts

    Re: [Release] Option to fully disable autoban in the properties file

    They are germans, lmao, they can't spell properly, what can you do? Just have to thank them for it. They did an awesome job anyhow.



Page 1 of 4 1234 LastLast

Advertisement