Thread: OSRS PK Release | Elvarg Based | Amazing Combat | NPC Pk Bots | Custom Interfaces |

Page 29 of 29 FirstFirst ... 19272829
Results 281 to 288 of 288
  1. #281  
    Registered Member KFC MANAG3R's Avatar
    Join Date
    Aug 2017
    Posts
    13
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Dexter View Post
    Hi guys never worked with 317 before any ideas how i get a run.bat for source and client wrote up? i shall be using this source to learn thanks alot Oak you sir are a legend saved me allot of time.
    use eclipse.
    Reply With Quote  
     

  2. #282  
    Execution X Owner

    Join Date
    Jun 2016
    Posts
    67
    Thanks given
    19
    Thanks received
    4
    Rep Power
    33
    can run eclipse on my laptop as i get a dll error that i cant fix untill my laptop is back from its service.
    while (life()) {
    wakeup();
    eating();
    coding();
    sleeping();
    if(isAweekend()){
    socialLife();
    }
    }
    Reply With Quote  
     

  3. #283  
    Registered Member
    Professor Oak's Avatar
    Join Date
    Jun 2016
    Posts
    1,312
    Thanks given
    857
    Thanks received
    1,069
    Rep Power
    2712
    Quote Originally Posted by Dexter View Post
    can run eclipse on my laptop as i get a dll error that i cant fix untill my laptop is back from its service.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. Thankful user:


  5. #284  
    Registered Member
    Join Date
    Aug 2017
    Posts
    38
    Thanks given
    2
    Thanks received
    5
    Rep Power
    36
    anyone else get serious performance issues with npcs? specifically npc aggression/following?

    edit: i have implemented the following piece of code.

    Code:
    //Play church organ
    case 3500:
    	player.getPacketSender().sendMessage("You strike a key on the organ. It makes a loud noise...");
    					
    	boolean theUndeadHeardYou = false;
    	for (NPC npc : player.getLocalNpcs()) {
    		if (npc.getPosition().isWithinDistance(player.getPosition(), 15)) {
    			npc.getCombat().attack(player);
    			theUndeadHeardYou = true;
    		}
    	}
    					
    	if (theUndeadHeardYou)
    		player.getPacketSender().sendMessage("A hoard of undead are approaching!");
    					
    	break;
    there are about 10 or 11 nearby npcs that aggro to the player when it is executed, but there server freezes for about 5 seconds, and the npcs move one tile every 4 or 5 ticks or so until the server catches up. ive also noticed this when running through a group of npcs and they aggro me/ follow me in combat, even with one npc attacking me. there are serious performance issues and i wondered if anyone knew what the problem was?
    Reply With Quote  
     

  6. #285  
    Registered Member
    Join Date
    Jul 2017
    Posts
    21
    Thanks given
    7
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Crystals View Post
    anyone else get serious performance issues with npcs? specifically npc aggression/following?

    edit: i have implemented the following piece of code.

    Code:
    //Play church organ
    case 3500:
    	player.getPacketSender().sendMessage("You strike a key on the organ. It makes a loud noise...");
    					
    	boolean theUndeadHeardYou = false;
    	for (NPC npc : player.getLocalNpcs()) {
    		if (npc.getPosition().isWithinDistance(player.getPosition(), 15)) {
    			npc.getCombat().attack(player);
    			theUndeadHeardYou = true;
    		}
    	}
    					
    	if (theUndeadHeardYou)
    		player.getPacketSender().sendMessage("A hoard of undead are approaching!");
    					
    	break;
    there are about 10 or 11 nearby npcs that aggro to the player when it is executed, but there server freezes for about 5 seconds, and the npcs move one tile every 4 or 5 ticks or so until the server catches up. ive also noticed this when running through a group of npcs and they aggro me/ follow me in combat, even with one npc attacking me. there are serious performance issues and i wondered if anyone knew what the problem was?
    Code:
    boolean theUndeadHeardYou = false;
    Is the wrong way about doing this. You need to define the boolean in the player class, and create a getter/setter method for it. Then use it in the context of the player entity object.

    As for the npcs bugging out I'm not sure this base doesn't have the best npc following/clipping but then again I don't think I've seen a release that did out of the box.

    Maybe you need to rework this code to use a task.
    Looking to expand my knowledge and learn. I want to start a small personal project preferably with an actual OSRS deob. If you have any advice or information that would help me along the way please message me.
    Reply With Quote  
     

  7. #286  
    Registered Member
    Join Date
    Aug 2017
    Posts
    38
    Thanks given
    2
    Thanks received
    5
    Rep Power
    36
    i know this isn't a help topic but i need to ask, is it possible with the current setup to have a NPC follow another NPC? I've tried

    Code:
    npc.getMovementQueue().setFollowCharacter(npc2);
    npc.getMovementQueue().follow();
    but this had no effect. i just wondered if i was missing anything.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #287  
    Registered Member
    Join Date
    Oct 2017
    Posts
    9
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    my cache downloads to desktop how to fix this
    Reply With Quote  
     

  9. #288  
    Registered Member
    Join Date
    Sep 2013
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Thanks dude, do you have a .bat file for both of them perhaps? (to run the client / source)
    Reply With Quote  
     

Page 29 of 29 FirstFirst ... 19272829

Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Replies: 37
    Last Post: 08-15-2014, 06:27 AM
  2. Xero-Edition Pk Based | Amazing Combat
    By Guruu in forum Selling
    Replies: 42
    Last Post: 08-05-2014, 09:48 PM
  3. Replies: 36
    Last Post: 10-27-2012, 10:35 PM
  4. Replies: 95
    Last Post: 09-01-2010, 01:21 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
  •