Thread: [pi] adding respawn

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 [pi] adding respawn 
    Banned
    Join Date
    May 2011
    Posts
    1,010
    Thanks given
    78
    Thanks received
    64
    Rep Power
    0
    i need it that the player respawns @ the dung start when he dies in the dung
    if some1 can plz help, it would be apreciated

    i supose this is in the givelife method...

    but ive added it and it doesnt work...

    Code:
    		} else if (c.inDung()) {
    			c.getPA().resetDung();
    			movePlayer(3233,9293,0);
    Code:
    public void resetDung() {	
    		c.getPA().movePlayer(3233,9293,0);
    	}
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2010
    Age
    30
    Posts
    612
    Thanks given
    20
    Thanks received
    7
    Rep Power
    9
    in config.java
    public static final int RESPAWN_X = 3095; // when dead respawn here
    public static final int RESPAWN_Y = 3472;
    under add

    public static final int RESPAWNDUNG_X = 3233; // when dead respawn here
    public static final int RESPAWNDUNG_Y = 9293;
    then in PlayerAssist.java
    look something like this

    if (c.pitsStatus == 1) {
    movePlayer(2399, 5173, 0);
    } else if(c.duelStatus <= 4) { // if we are not in a duel repawn to wildy
    movePlayer(Config.RESPAWN_X, Config.RESPAWN_Y, 0);
    c.isSkulled = false;
    c.skullTimer = 0;
    c.attackedPlayers.clear();
    } else if (c.inFightCaves()) {
    c.getPA().resetTzhaar();
    } else if (c.inRFD()) {
    c.getPA().resetRFD();

    } else if (c.inDung()) {


    movePlayer(Config.RESPAWNDUNG_X, Config.RESPAWNDUNG_Y, 0);


    } else { // we are in a duel, respawn outside of arena
    Client o = (Client) Server.playerHandler.players[c.duelingWith];
    if(o != null) {
    o.getPA().createPlayerHints(10, -1);
    if(o.duelStatus == 6) {
    o.getTradeAndDuel().duelVictory();

    Might work
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    May 2011
    Posts
    1,010
    Thanks given
    78
    Thanks received
    64
    Rep Power
    0
    didnt work, i respawn @ home
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    May 2011
    Posts
    1,010
    Thanks given
    78
    Thanks received
    64
    Rep Power
    0
    i need this, else i cant go on... bc now if they die
    they keep stuff
    so i cant add tht they get like ags and shit in a dung... bc they can keep it if they die
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    you sure your inDung has the correct coords?
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    May 2011
    Posts
    1,010
    Thanks given
    78
    Thanks received
    64
    Rep Power
    0
    yes, becuse ive also added that u cant tele out and that works fine
    Reply With Quote  
     

  7. #7  
    Registered Member
    Lennard's Avatar
    Join Date
    Mar 2010
    Posts
    924
    Thanks given
    0
    Thanks received
    234
    Rep Power
    274
    add this in config.java

    Code:
    public static final int RESPAWNDUNG_X = 3233; // when dead respawn here
    public static final int RESPAWNDUNG_Y = 9293;
    in playerassist.java

    Code:
    if (c.pitsStatus == 1) {
    movePlayer(2399, 5173, 0);
    } else if(c.duelStatus <= 4 && !c.inDung()) { // if we are not in a duel repawn to wildy
    movePlayer(Config.RESPAWN_X, Config.RESPAWN_Y, 0);
    c.isSkulled = false;
    c.skullTimer = 0;
    c.attackedPlayers.clear();
    } else if (c.inFightCaves()) {
    c.getPA().resetTzhaar();
    } else if (c.inRFD()) {
    c.getPA().resetRFD();
    } else if (c.inDung()) {
    movePlayer(Config.RESPAWNDUNG_X, Config.RESPAWNDUNG_Y, 0);
    } else { // we are in a duel, respawn outside of arena
    Client o = (Client) Server.playerHandler.players[c.duelingWith];
    if(o != null) {
    o.getPA().createPlayerHints(10, -1);
    if(o.duelStatus == 6) {
    o.getTradeAndDuel().duelVictory();
    Try something like that
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    May 2011
    Posts
    1,010
    Thanks given
    78
    Thanks received
    64
    Rep Power
    0
    already in config, and tried tht be4
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Apr 2011
    Posts
    500
    Thanks given
    3
    Thanks received
    40
    Rep Power
    0
    Your bumping wayyyyyy to much. Don't do that. its against the rules.
    Reply With Quote  
     

  10. Thankful user:


  11. #10  
    Retired. Stop PMing me.


    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    17
    Posts
    7,526
    Thanks given
    1,805
    Thanks received
    2,830
    Rep Power
    5000
    Please do not bump more than once in a 24-hour period.
    Attached image
    Reply With Quote  
     

Page 1 of 2 12 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. Help Npc respawn [PI]
    By Defiled-X in forum Help
    Replies: 2
    Last Post: 02-15-2013, 04:38 PM
  2. [pi] respawn
    By artist in forum Help
    Replies: 6
    Last Post: 06-14-2011, 05:43 PM
  3. Respawn
    By RSPS-RC in forum Help
    Replies: 1
    Last Post: 09-30-2010, 09:12 PM
  4. respawn help
    By shrogg in forum Help
    Replies: 3
    Last Post: 07-23-2009, 08:34 AM
  5. NPC Respawn Fix
    By Palidino in forum Tutorials
    Replies: 8
    Last Post: 11-24-2008, 09:45 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
  •