Thread: [PI]Tile Npc Clipping

Page 1 of 5 123 ... LastLast
Results 1 to 10 of 41
  1. #1 [PI]Tile Npc Clipping 
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    28
    Posts
    4,758
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    First off this isnt mine nor do i claim rights to it. original tutorial is here. [Only registered and activated users can see links. ]

    I will gladly remove this if i need too.



    To start off download these 2 files. / easier cuz i have alot of clippings and wont fit >.<

    [Only registered and activated users can see links. ]


    put them in ./src/server/world

    Open server.java and add this import
    Code:
    import server.world.WalkingCheck;
    then find " void main " and add this under it
    Code:
    		WalkingCheck.check();
    		WalkingCheck.check2();
    save it.
    Open npc.java and find " void getnextwalkingdirection() { "
    replace that whole method with
    Code:
    	private Tile currentTile;
    	
    	public int getNextWalkingDirection() {
    		currentTile = new Tile(absX + moveX, absY + moveY, heightLevel);
    		if(!WalkingCheck.tiles.containsKey(currentTile.getH() << 28 | currentTile.getX() << 14 | currentTile.getY())){
    			int dir;
    			dir = Misc.direction(absX, absY, (absX + moveX), (absY + moveY));
    			if (dir == -1)
    				return -1;
    			dir >>= 1;
    			absX += moveX;
    			absY += moveY;
    			return dir;
    		} else if(WalkingCheck.tiles.get(currentTile.getH() << 28 | currentTile.getX() << 14 | currentTile.getY()) == true) {
    			return -1;
    		} else {
    			return -1;
    		}
    	}
    at the top add the imports
    Code:
    import server.world.Tile;
    import server.world.WalkingCheck;
    Now open commands.java and put this in there somewhere
    Code:
    if (playerCommand.startsWith("clip")) {
    				String filePath = "./src/server/world/WalkingCheck/";
    			BufferedWriter bw = null;
    			try 
    				{				
    			bw = new BufferedWriter(new FileWriter(filePath, true));
    			bw.write("tiles.put("+c.heightLevel+" << 28 | "+c.absX+" << 14 | "+c.absY+", true);");
    			bw.newLine();
    			bw.flush();
    			} 
    				catch (IOException ioe) 
    			{
    				ioe.printStackTrace();
    			} 
    			finally 
    			{
    				if (bw != null)
    			{
    				try 
    				{
    					bw.close();
    				} 
    				catch (IOException ioe2) 
    				{
    				}
    			}
    		}
    	}
    What this does is u walk over a tile u want to clip and type ::clip and it will write out the clipping to a file and you just copy out of the file and add to walkingcheck.java - open the file with notepad or notepad++.

    Any errors just post.
     

  2. #2  
    Registered Member Harambe_'s Avatar
    Join Date
    Jul 2007
    Posts
    503
    Thanks given
    15
    Thanks received
    22
    Rep Power
    13
    Thanks will try it out you should work on player clipping next
    [Only registered and activated users can see links. ]
     

  3. #3  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    28
    Posts
    4,758
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    coder alex has player clipping available in his tragedy pking server which i ripped but its not perfect. lots of methods involved. and i need his permission before i can post it
     

  4. #4  
    Chemist

    Advocatus's Avatar
    Join Date
    Dec 2009
    Age
    28
    Posts
    2,549
    Thanks given
    192
    Thanks received
    761
    Discord
    View profile
    Rep Power
    1332
    Quote Originally Posted by animeking1120 View Post
    coder alex has player clipping available in his tragedy pking server which i ripped but its not perfect. lots of methods involved. and i need his permission before i can post it
    Last release of his that I checked it was client sided and looked like he ripped it from battlescape.
    There is absolutely no need to ask any permission at all from him.

    Edit:: Also it wasn't a hard rip, I ripped it into an Runeful (emulous based) a few months back, it was no big deal. If i recall it was 2 voids server sided, updating the packet, and then just changing the old code to follow a player to
    follow(int,int,int);
    it was on of the easiest rips that I ever did.
    Client sided it was just a few voids and then an obvious block of code in the client processing method.
    Quote Originally Posted by blakeman8192 View Post
    Quitting is the only true failure.
     

  5. #5  
    Registered Member brunexxx's Avatar
    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    5
    Thanks received
    15
    Rep Power
    19
    src\server\model\players\packets\Commands.java:538 : cannot find symbol
    symbol : class BufferedWriter
    location: class server.model.players.packets.Commands
    BufferedWriter bw = null;
    ^
    src\server\model\players\packets\Commands.java:541 : cannot find symbol
    symbol : class BufferedWriter
    location: class server.model.players.packets.Commands
    bw = new BufferedWriter(new FileWriter(filePath, true));

    ^
    src\server\model\players\packets\Commands.java:541 : cannot find symbol
    symbol : class FileWriter
    location: class server.model.players.packets.Commands
    bw = new BufferedWriter(new FileWriter(filePath, true));

    ^
    src\server\model\players\packets\Commands.java:546 : cannot find symbol
    symbol : class IOException
    location: class server.model.players.packets.Commands
    catch (IOException ioe)
    ^
    src\server\model\players\packets\Commands.java:558 : cannot find symbol
    symbol : class IOException
    location: class server.model.players.packets.Commands
    catch (IOException ioe2)
    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    5 errors
    Prima qualquer tecla para continuar . . .

    Can you help me?
     

  6. #6  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,017
    Thanks given
    1,499
    Thanks received
    1,967
    Rep Power
    4898
    Quote Originally Posted by animeking1120 View Post
    coder alex has player clipping available in his tragedy pking server which i ripped but its not perfect. lots of methods involved. and i need his permission before i can post it
    Release w/ credits
     

  7. #7  
    Member Market Banned Market Banned
    Crispytoast's Avatar
    Join Date
    Nov 2010
    Posts
    448
    Thanks given
    19
    Thanks received
    42
    Rep Power
    17
    Confused how this works...

    It fails to write out anything anywhere....

    Lol?
     

  8. #8  
    Registered Member

    Join Date
    Apr 2009
    Posts
    1,728
    Thanks given
    403
    Thanks received
    210
    Rep Power
    390
    Quote Originally Posted by xGenesis R View Post
    Release w/ credits
    You cant take someones work and release it with credits, you need there permission...(analogy time)
    Thats like stealing money from bill gates, going to spend it and saying "This isnt my money its bill gates but since I gave him credits I dont need permission."
     

  9. #9  
    Member Market Banned Market Banned
    Crispytoast's Avatar
    Join Date
    Nov 2010
    Posts
    448
    Thanks given
    19
    Thanks received
    42
    Rep Power
    17
    Quote Originally Posted by Phat 4 u View Post
    You cant take someones work and release it with credits, you need there permission...(analogy time)
    Thats like stealing money from bill gates, going to spend it and saying "This isnt my money its bill gates but since I gave him credits I dont need permission."
    You're comparing ONE of the most wealthiest persons in the world to a bunch of arrogant little kids fighting over snippits of code....Nice analogy(Y)
     

  10. #10  
    Registered Member RuneWings317's Avatar
    Join Date
    Aug 2010
    Posts
    223
    Thanks given
    24
    Thanks received
    30
    Rep Power
    11
    Thanks a lot! I really need this! (I don't think I have it yet... >.<)
     

Page 1 of 5 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. NPC Clipping for 317 (Object Clipping)
    By XJCX in forum Tutorials
    Replies: 14
    Last Post: 03-03-2012, 08:12 PM
  2. [PI]Tile Clipping command >not perfect<
    By Arithium in forum Snippets
    Replies: 7
    Last Post: 12-21-2010, 09:49 PM
  3. Replies: 1
    Last Post: 07-30-2010, 08:39 PM
  4. NPC Clipping Tile Dump Command
    By Flux in forum Help
    Replies: 1
    Last Post: 07-29-2010, 03:11 AM
  5. Need NPC Clipping and Player Clipping
    By Nighel in forum Help
    Replies: 0
    Last Post: 06-05-2010, 11:30 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •