Thread: [P.I]Dying help! - unsovled

Results 1 to 8 of 8
  1. #1 [P.I]Dying help! - unsovled 
    Cyber Security

    Join Date
    Apr 2011
    Posts
    153
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    where do i find the flag that tells the server to update the players animations, and place that in the death method.
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    the method resetAnimation?
    Reply With Quote  
     

  3. #3  
    Cyber Security

    Join Date
    Apr 2011
    Posts
    153
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    Quote Originally Posted by Dwyane Wade View Post
    the method resetAnimation?
    to fix this issue

    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    use
    Code:
    resetAnimation();
    it should be standart in any server
    Reply With Quote  
     

  5. #5  
    Cyber Security

    Join Date
    Apr 2011
    Posts
    153
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    can you help me fix it and what file is it in
    Reply With Quote  
     

  6. #6  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    prob in ur givelife method in playerassisant
    Reply With Quote  
     

  7. #7  
    Shake n Bake

    Organic's Avatar
    Join Date
    Apr 2010
    Posts
    2,499
    Thanks given
    204
    Thanks received
    324
    Rep Power
    588
    Code:
    	public void giveLife() {
    		c.killerId = findKiller();
    		Client o = (Client) PlayerHandler.players[c.killerId];
    		if(o != null) {
    			if (c.killerId != c.playerId)
    				o.sendMessage(getKM());
    				c.playerKilled = c.playerId;
    		}
    		c.playerKilled = c.playerId;
    		c.isDead = false;
    		c.faceUpdate(-1);
    		c.freezeTimer = 0;
    		removeAllWindows();
    		c.tradeResetNeeded = true;
    			if (!c.inBarbDef) {
    				c.getItems().resetKeepItems();
    				if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS) || c.playerRights != 2) {
    					if(!c.isSkulled) {	// what items to keep
    						c.getItems().keepItem(0, true);
    						c.getItems().keepItem(1, true);	
    						c.getItems().keepItem(2, true);
    					}
    					if (c.inFightCaves()) {
    						resetTzhaar();
    					}	
    					if(c.protectItem) {
    						c.getItems().keepItem(3, true);
    					}
    					c.getItems().dropAllItems(); // drop all items
    					if(c.playerRights == 0) {
    						c.getItems().deleteAllItems(); // delete all items
    					}
    					if(!c.isSkulled) { // add the kept items once we finish deleting and dropping them	
    						for (int i1 = 0; i1 < 3; i1++) {
    							if(c.itemKeptId[i1] > 0) {
    								c.getItems().addItem(c.itemKeptId[i1], 1);
    							}
    						}
    					}	
     					if(c.protectItem) { // if we have protect items 
    						if(c.itemKeptId[3] > 0) {
    							c.getItems().addItem(c.itemKeptId[3], 1);
    						}
    					}
    				}
    			}
    		c.getItems().resetKeepItems();
    		c.getCombat().resetPrayers();
    		for (int i = 0; i < 20; i++) {
    			c.playerLevel[i] = getLevelForXP(c.playerXP[i]);
    			c.getPA().refreshSkill(i);
    		}
    		PlayerSave.saveGame(c);
    		c.getCombat().resetPlayerAttack();
    		resetAnimation();
    		c.startAnimation(65535);
    		frame1();
    		resetTb();
    		c.isSkulled = false;
    		c.attackedPlayers.clear();
    		c.headIconPk = -1;
    		c.skullTimer = -1;
    		resetDamageDone();
    		c.specAmount = 10;
    		c.getCombat().resetPrayers();
    		c.damageTaken = new int[Config.MAX_PLAYERS];
    		c.getPA().requestUpdates();
    		c.protectItem = false;
    		c.getItems().addSpecialBar(c.playerEquipment[c.playerWeapon]);
    		c.sendMessage("Oh dear you are dead!");
    		movePlayer(3222,3222,0);
    	}

    Just live life at its fullest.

    LOL
    Reply With Quote  
     

  8. #8  
    Cyber Security

    Join Date
    Apr 2011
    Posts
    153
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    It wont work
    Code:
    src\server\model\mobile\players\PlayerAssistant.java:1371: error: cannot find sy
    mbol
                                    o.sendMessage(getKM());
                                                  ^
      symbol:   method getKM()
      location: class PlayerAssistant
    src\server\model\mobile\players\PlayerAssistant.java:1380: error: cannot find sy
    mbol
                            if (!c.inBarbDef) {
                                  ^
      symbol:   variable inBarbDef
      location: variable c of type Client
    src\server\model\mobile\players\PlayerAssistant.java:1382: error: cannot find sy
    mbol
                                    if((c.playerRights == 2 && Config.ADMIN_DROP_ITE
    MS) || c.playerRights != 2) {
                                                                     ^
      symbol:   variable ADMIN_DROP_ITEMS
      location: class Config
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    3 errors
    Press any key to continue . . .
    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] Dying
    By Thee Rooney in forum Help
    Replies: 8
    Last Post: 07-25-2012, 09:06 AM
  2. Not Dying Help?
    By Defiled-X in forum Help
    Replies: 8
    Last Post: 02-21-2012, 09:36 PM
  3. Delta Dying
    By Spades in forum Help
    Replies: 1
    Last Post: 03-19-2010, 01:59 AM
  4. [DavidScape] Dying?
    By thefunnypro in forum Help
    Replies: 5
    Last Post: 02-02-2010, 09:26 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
  •