Thread: [PI]Wierd error, need fix plox

Results 1 to 5 of 5
  1. #1 [PI]Wierd error, need fix plox 
    Registered Member
    Join Date
    Sep 2010
    Posts
    448
    Thanks given
    42
    Thanks received
    23
    Rep Power
    4
    The source is overloadx

    pic:



    PlayerSave.java line 329
    Code:
    characterfile.newLine();
    			characterfile.write("pkPoints = ", 0, 11);
    			characterfile.write(Integer.toString(p.pkPoints), 0, Integer.toString(p.pkPoints).length());
    			characterfile.newLine();
    			characterfile.write("isDonator = ", 0, 15);
    			characterfile.write(Integer.toString(p.isDonator), 0, Integer.toString(p.isDonator).length());
    			characterfile.newLine();
    			characterfile.write("donatorChest = ", 0, 15);
    			characterfile.write(Integer.toString(p.donatorChest), 0, Integer.toString(p.donatorChest).length());
    			characterfile.newLine();
    GiveLife method:
    Code:
    public void giveLife() {
    		c.isDead = false;
    		c.faceUpdate(-1);
    		c.freezeTimer = 0;
    		if(c.duelStatus <= 4 && !c.getPA().inPitsWait()) { // if we are not in a duel we must be in wildy so remove items
                		System.out.println("" + c.playerName + " has died.");
    			if (!c.inPits && !c.inFightCaves() && c.playerRights != 3) {
    					c.getItems().resetKeepItems();
    				if((c.playerRights == 2 && Config.ADMIN_DROP_ITEMS) || c.playerRights != 2 || c.playerRights != 3) {
    					if(!c.isSkulled) {	// what items to keep
    						c.getItems().keepItem(0, true);
    						c.getItems().keepItem(1, true);	
    						c.getItems().keepItem(2, true);
    					}	
    					if(c.prayerActive[10] && System.currentTimeMillis() - c.lastProtItem > 700) {
    						c.getItems().keepItem(3, true);
    					}
    			if (c.isInPVP()) { //
    						c.getItems().dropAllItemsPVP(); // PvP drops
    						c.getItems().deleteAllItems(); // delete all items
    					} else {
    						c.getItems().dropAllItems(); // drop all items
    						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.prayerActive[10]) { // if we have protect items 
    						if(c.itemKeptId[3] > 0) {
    							c.getItems().addItem(c.itemKeptId[3], 1);
    						}
    					}
    				}
    				c.getItems().resetKeepItems();
    			} else if (c.inPits) {
    				Server.fightPits.removePlayerFromPits(c.playerId);
    				c.pitsStatus = 1;
    			}
    		}
    		c.getCombat().resetPrayers();
    		for (int i = 0; i < 20; i++) {
    			c.playerLevel[i] = getLevelForXP(c.playerXP[i]);
    			c.getPA().refreshSkill(i);
    		}
    		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 { // 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();
    				}
    			}
    			movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0);
    			if(c.duelStatus != 6) { // if we have won but have died, don't reset the duel status.
    				c.getTradeAndDuel().resetDuel();
    			}
    		}
    		//PlayerSaving.getSingleton().requestSave(c.playerId);
    		PlayerSave.saveGame(c);
    		c.getCombat().resetPlayerAttack();
    		resetAnimation();
    		c.startAnimation(65535);
    		frame1();
    		resetTb();
    		c.isSkulled = false;
    		c.attackedPlayers.clear();
    		c.headIconPk = -1;
    		c.skullTimer = -1;
    		c.damageTaken = new int[Config.MAX_PLAYERS];
    		c.getPA().requestUpdates();
    	}
    Help please, thanks.
    Reply With Quote  
     

  2. #2  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Code:
    characterfile.write("isDonator = ", 0, 15);
    theres your error. between the " " theres only 12 not 15.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    gomomo11's Avatar
    Join Date
    May 2010
    Posts
    2,379
    Thanks given
    268
    Thanks received
    196
    Rep Power
    177
    Change
    characterfile.write("isDonator = ", 0, 15);
    To
    characterfile.write("isDonator = ", 0, 12);
    Attached image
    no external links without affiliate
    Reply With Quote  
     

  5. #4  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    Quote Originally Posted by gomomo11 View Post
    Change

    To
    your basically telling him what i just said and being a post count whore..
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Sep 2010
    Posts
    448
    Thanks given
    42
    Thanks received
    23
    Rep Power
    4
    Thanks guys, i didnt even see
    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] Wierd Error REP++ FOR FIX
    By nMik in forum Help
    Replies: 9
    Last Post: 02-16-2011, 09:04 PM
  2. help with this run.bat error plox
    By Georgeo in forum Help
    Replies: 1
    Last Post: 04-12-2010, 07:24 AM
  3. Wierd Error!
    By Ash in forum Help
    Replies: 5
    Last Post: 11-08-2009, 07:09 PM
  4. Wierd Error
    By 35518 in forum Help
    Replies: 4
    Last Post: 06-29-2009, 10:10 AM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •