Thread: PI FightCaves

Results 1 to 9 of 9
  1. #1 PI FightCaves 
    Registered Member
    Join Date
    Feb 2013
    Posts
    112
    Thanks given
    35
    Thanks received
    8
    Rep Power
    0
    Okkk sooo... I was testing out my server and I found out that the Fight Caves entrance wasnt working..
    In firstclickobject I found this...

    Code:
    case 11833:
    			c.getPA().enterCaves();
    		break;
    Which doesnt work... So I keep looking and found this...

    Code:
    case 24306:
    			if(c.heightLevel == 2)
    				Server.getWarriorsGuild().handleKamfreena(c, true);
    			break;
    I cant figure out how to replicate that to try to make the entrance work, the enterCaves method is in PlayerAssistant.java and the FightCaves.java file doesnt contain any information on enterCaves, so im not sure how to create the teleport(as the original didnt work).


    Yes, the object id is correct
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2014
    Posts
    435
    Thanks given
    18
    Thanks received
    35
    Rep Power
    11
    post your enterCaves method


    OSRS Pure
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2013
    Posts
    112
    Thanks given
    35
    Thanks received
    8
    Rep Power
    0
    Quote Originally Posted by Audi View Post
    post your enterCaves method

    Code:
    public void enterCaves() {
    		c.getPA().movePlayer(2413,5117, c.playerId * 4);
    		c.waveId = 0;
    		c.tzhaarToKill = -1;
    		c.tzhaarKilled = -1;
    		EventManager.getSingleton().addEvent(new Event() {
    			public void execute(EventContainer e) {
    				Server.fightCaves.spawnNextWave((Client)PlayerHandler.players[c.playerId]);
    				e.stop();
    			}
    		}, 10000);
    	}
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2014
    Posts
    435
    Thanks given
    18
    Thanks received
    35
    Rep Power
    11
    Try changing it to this
    Code:
    public void enterCaves() {
    		c.getPA().movePlayer(2413, 5117, c.playerId * 4);
    		c.waveId = 0;
    		c.tzhaarToKill = -1;
    		c.tzhaarKilled = -1;
    		CycleEventHandler.addEvent(c, new CycleEvent() {
    			@Override
    			public void execute(CycleEventContainer container) {
    				container.stop();
    			}
    			@Override
    			public void stop() {
    				Server.fightCaves.spawnNextWave((Client) PlayerHandler.players[c.playerId]);
    			}
    		}, 10);
    	}


    OSRS Pure
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2013
    Posts
    112
    Thanks given
    35
    Thanks received
    8
    Rep Power
    0
    Quote Originally Posted by Audi View Post
    Try changing it to this
    Code:
    public void enterCaves() {
    		c.getPA().movePlayer(2413, 5117, c.playerId * 4);
    		c.waveId = 0;
    		c.tzhaarToKill = -1;
    		c.tzhaarKilled = -1;
    		CycleEventHandler.addEvent(c, new CycleEvent() {
    			@Override
    			public void execute(CycleEventContainer container) {
    				container.stop();
    			}
    			@Override
    			public void stop() {
    				Server.fightCaves.spawnNextWave((Client) PlayerHandler.players[c.playerId]);
    			}
    		}, 10);
    	}
    Nope still didn't work... Any other ideas?
    Reply With Quote  
     

  6. #6  
    Coding coding coding...

    Ivo's Avatar
    Join Date
    Mar 2008
    Age
    33
    Posts
    1,425
    Thanks given
    30
    Thanks received
    147
    Rep Power
    2017
    By doesnt work you mean you cannot enter caves or wave wont start?
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Feb 2013
    Posts
    112
    Thanks given
    35
    Thanks received
    8
    Rep Power
    0
    Quote Originally Posted by Ivo View Post
    By doesnt work you mean you cannot enter caves or wave wont start?
    I cannot enter the cave when i click cave entrance.
    Reply With Quote  
     

  8. #8  
    Registered Member Lil Peep's Avatar
    Join Date
    Oct 2012
    Posts
    881
    Thanks given
    234
    Thanks received
    58
    Rep Power
    0
    Try adding a check for the 2 tiles in front of the door

    if the player is at this x and y, or this x and y, then teleport.. If that doesn't work you at least can clear that from your suspicion
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Feb 2013
    Posts
    112
    Thanks given
    35
    Thanks received
    8
    Rep Power
    0
    Quote Originally Posted by stormrunner View Post
    Try adding a check for the 2 tiles in front of the door

    if the player is at this x and y, or this x and y, then teleport.. If that doesn't work you at least can clear that from your suspicion
    Ok so I added a check and it still didnt work, however if I spawn in the cave (using :bject) I am able to click it and be teleported into the caves.
    Also.. the exit cave works fine.
    Reply With Quote  
     


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. [pi] fightcave waves don't spawn {repp++}
    By CusYaBasic in forum Help
    Replies: 2
    Last Post: 01-28-2012, 06:02 PM
  2. Fix pi fightcave?
    By Santi Cazorla in forum Help
    Replies: 3
    Last Post: 11-22-2010, 07:26 PM
  3. pi fightcave fix
    By Romania Clan in forum Requests
    Replies: 4
    Last Post: 09-19-2010, 10:11 AM
  4. [PI]FightCaves For PI! Rep++!
    By walid in forum Help
    Replies: 3
    Last Post: 06-24-2010, 01:35 PM
  5. [PI] FightCaves
    By Vanikan in forum Help
    Replies: 2
    Last Post: 05-25-2010, 10:35 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
  •