Thread: Some OsBrutality Fixes

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27
  1. #11  
    Officially Running

    DreamDesire's Avatar
    Join Date
    Dec 2013
    Posts
    1,184
    Thanks given
    173
    Thanks received
    163
    Rep Power
    168
    Quote Originally Posted by omnee View Post
    Why do you say that?
    I'm in no way experienced in private servers,
    you just said why..
    lowkey
    Reply With Quote  
     

  2. Thankful user:


  3. #12  
    Registered Member omnee's Avatar
    Join Date
    Apr 2011
    Posts
    135
    Thanks given
    30
    Thanks received
    10
    Rep Power
    18
    Quote Originally Posted by Frostydapure View Post
    you just said why..
    It was a honest question, trying to get the opinion of someone more experienced than me, don't know wtf that reply was but alright
    Reply With Quote  
     

  4. Thankful user:


  5. #13  
    Registered Member
    Kris's Avatar
    Join Date
    Jun 2016
    Age
    19
    Posts
    1,904
    Thanks given
    292
    Thanks received
    657
    Rep Power
    256
    Quote Originally Posted by omnee View Post
    It was a honest question, trying to get the opinion of someone more experienced than me, don't wtf that reply was but alright
    Look at the way the things are being handled in the server. Look at the massive amount of bugs - fix one, two more appear. It's simply not a clean source, things aren't being handled properly and that leads to hard-coding in the longer run.

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. Thankful users:


  7. #14  
    Registered Member
    Join Date
    Apr 2016
    Posts
    146
    Thanks given
    48
    Thanks received
    3
    Rep Power
    0
    Here is more 4 bugs not in the list:

    1. Ancient spellbook there are 5 buttons hovors are bugged..
    2. How to Remove objects?
    3. Clan chat ( Allow teleport + copy-kit in clan chat setup is bugged ).
    4. emotes tab ( there are 2 images are invsable ).

    Any help?
    Reply With Quote  
     

  8. #15  
    Registered Member omnee's Avatar
    Join Date
    Apr 2011
    Posts
    135
    Thanks given
    30
    Thanks received
    10
    Rep Power
    18
    Quote Originally Posted by Gkua View Post
    Here is more 4 bugs not in the list:

    1. Ancient spellbook there are 5 buttons hovors are bugged..
    2. How to Remove objects?
    3. Clan chat ( Allow teleport + copy-kit in clan chat setup is bugged ).
    4. emotes tab ( there are 2 images are invsable ).

    Any help?
    The ancient spellbook bug is because there's an interface overriding the sprites used in the hover's interface.
    Go check RSInterface.java, I'm pretty sure it was the deadman mode interfaces that gave me trouble
    Reply With Quote  
     

  9. #16  
    Registered Member
    Join Date
    Nov 2015
    Posts
    65
    Thanks given
    14
    Thanks received
    15
    Rep Power
    16
    [QUOTE=Gkua;5319763]Here is more 4 bugs not in the list:

    1. Ancient spellbook there are 5 buttons hovors are bugged..
    2. How to Remove objects?
    3. Clan chat ( Allow teleport + copy-kit in clan chat setup is bugged ).
    4. emotes tab ( there are 2 images are invsable ).

    Yes what Omnee said about this will help to fix your problems. Use the Os-Brutality #129 client relesed by A-mage (google os-brutality #129, fixes for it are in comments..) This source will be overlooked by all of you if you think its shit. Im not going to tell you why it is amazing, but if you want a half decent server down the road and are WILLING TO PUT THE TIME INTO ACTUALLY CREATING CONTENT AND FIXING PROBLEMS, than you will have a very good server to call your own. It's basic PI, and most of the problems are released fix's in other threads.
    Reply With Quote  
     

  10. Thankful user:


  11. #17  
    Registered Member
    Mojo!'s Avatar
    Join Date
    Nov 2010
    Posts
    1,355
    Thanks given
    922
    Thanks received
    322
    Rep Power
    143
    cool thanks for help
    i felt like this has some kind of anti-leech or at least some good stuff removed/damaged on release intentionally
    [Only registered and activated users can see links. ]
    Everytime you click ^ I get free blood money !!!
    Clicks so far:
    Reply With Quote  
     

  12. #18  
    Registered Member omnee's Avatar
    Join Date
    Apr 2011
    Posts
    135
    Thanks given
    30
    Thanks received
    10
    Rep Power
    18
    Quote Originally Posted by Mojo! View Post
    cool thanks for help
    i felt like this has some kind of anti-leech or at least some good stuff removed/damaged on release intentionally
    May be the case but honestly the problems I have encountered haven't been that hard to fix so far
    Reply With Quote  
     

  13. Thankful user:


  14. #19  
    Registered Member
    Join Date
    Nov 2015
    Posts
    65
    Thanks given
    14
    Thanks received
    15
    Rep Power
    16
    Quote Originally Posted by omnee View Post
    May be the case but honestly the problems I have encountered haven't been that hard to fix so far
    Omnee is right, all of the problems are extremely easy to fix with this source. The benefits it has are hard to really overlook especially concerning clipping.
    Reply With Quote  
     

  15. Thankful user:


  16. #20  
    Banned

    Join Date
    Mar 2009
    Posts
    6,665
    Thanks given
    1,638
    Thanks received
    2,407
    Rep Power
    0
    Quote Originally Posted by omnee View Post
    Why do you say that?
    I'm in no way experienced in private servers, been working with this one for a bit and I'm really enjoying it
    The amount of code used for such simple things, seems unbelievably overkill and annoying to work with

    If the combat was entity based, you could just do something like (Code was written up really quick by hand);

    Code:
    	public static void applyRecoilNPC(final Entity attacker, final Damage damage) {
    		if (!(entity instanceof Player)) {
    			return;
    		}
    		final recoilDamage = damage.getCount() / 10;
    		if (recoilDamage > 0 && entity.getEquipment().contains(RECOIL)) {
    			attacker.getDamageManager().submit(new Damage(DATA));
    			entity.decremetRecoilHits(1);
    			if (entity.getRecoilHits() <= 0) {
    				entity.getEquipment().remove(RECOIL);
    				final Player player = (Player) entity;
    				if (player != null)
    					player.sendOutgoingPacket(new Message("The recoil has shattered"));
    			}
    		}
    	}
    getCloseRandomPlayer() (Also written really quickly from on top of my head):
    Code:
    	public int getRandomClosePlayer() {
    		if (getHitpoints() <= 0 || isDead() || getCombatBuilder().getUnderAttackBy() != null || getCombatBuilder().getTarget() != null)
    			return -1;
    		final List<Player> players = new ArrayList<Player>();
    		RegionManager.getLocalPlayers(getPosition()).forEach(player -> {
    			
    			if (getPosition().isWithinRange(player, distance) && player.getCombatBuilder().getUnderAttackBy() == null) {
    				players.add(player);
    			}
    		});
    		return players.size() > 0 ? players.get(random.nextInt(players.size()) : -1;
    	}
    Compared to:
    Code:
    	public int getCloseRandomPlayer(int i) {
    		ArrayList<Integer> players = new ArrayList<>();
    		for (int j = 0; j < PlayerHandler.players.length; j++) {
    			if (PlayerHandler.players[j] != null) {
    				if (Boundary.isIn(npcs[i], Boundary.GODWARS_BOSSROOMS)) {
    					if (!Boundary.isIn(PlayerHandler.players[j], Boundary.GODWARS_BOSSROOMS)) {
    						npcs[i].killerId = 0;
    						continue;
    					}
    				}
    				if (goodDistance(PlayerHandler.players[j].absX, PlayerHandler.players[j].absY, npcs[i].absX,
    						npcs[i].absY, distanceRequired(i) + followDistance(i)) || isFightCaveNpc(i)) {
    					if ((PlayerHandler.players[j].underAttackBy <= 0 && PlayerHandler.players[j].underAttackBy2 <= 0)
    							|| PlayerHandler.players[j].inMulti())
    						if (PlayerHandler.players[j].heightLevel == npcs[i].heightLevel)
    							players.add(j);
    
    				}
    			}
    		}
    		if (players.size() > 0)
    			return players.get(Misc.random(players.size() - 1));
    		return 0;
    	}
    However, take my code with a grain of salt, I'm by no means the best person on here to give you advice
    Reply With Quote  
     

  17. Thankful user:


Page 2 of 3 FirstFirst 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [RuneEscape] Some bug fixes
    By dragonkk in forum Tutorials
    Replies: 5
    Last Post: 08-19-2011, 06:38 PM
  2. some rs2hd fixes (i hope)
    By Dylan in forum Snippets
    Replies: 4
    Last Post: 03-15-2010, 07:27 AM
  3. some 1 fix it ?:S
    By b33r in forum Help
    Replies: 0
    Last Post: 07-16-2009, 10:13 AM
  4. need some glitchs fixed...
    By silabgarza in forum Help
    Replies: 4
    Last Post: 03-23-2009, 01:35 AM
  5. Need a mod+ code. or some error fixing.
    By .:Programing God:. in forum Help
    Replies: 5
    Last Post: 01-30-2009, 03:32 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •