Thread: [EMULOUS] Xp stops at 200m?

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1 [EMULOUS] Xp stops at 200m? 
    Member

    Join Date
    Nov 2008
    Age
    27
    Posts
    4,859
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    Pls help!
    Reply With Quote  
     

  2. #2  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Code:
    	if(xp > 200000000) {
    		return;
    	}
    Show me the method that add skill xp.
    Reply With Quote  
     

  3. #3  
    Member

    Join Date
    Nov 2008
    Age
    27
    Posts
    4,859
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    Quote Originally Posted by PapaDoc View Post
    Code:
    	if(xp > 200000000) {
    		return;
    	}
    Show me the method that add skill xp.
    what class is it? >.<
    Reply With Quote  
     

  4. #4  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Client for winterLove (almost every server)
    Player for Hyperion

    Reply With Quote  
     

  5. #5  
    Member

    Join Date
    Nov 2008
    Age
    27
    Posts
    4,859
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    @papa.

    Doesnt work. Errors where ever i put it.


    @Kastro.

    Im using Emulous... It does say in the thread title...
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jun 2008
    Age
    27
    Posts
    2,312
    Thanks given
    485
    Thanks received
    231
    Rep Power
    0
    playerAssistant.
    Reply With Quote  
     

  7. #7  
    Member

    Join Date
    Nov 2008
    Age
    27
    Posts
    4,859
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    Code:
    	public boolean addSkillXP(int amount, int skill){
    		if (amount+c.playerXP[skill] < 0 || c.playerXP[skill] > 2000000000) {
    			return false;
    		}
    		int oldLevel = getLevelForXP(c.playerXP[skill]);
    		c.playerXP[skill] += amount;
    		if (oldLevel < getLevelForXP(c.playerXP[skill])) {
    			if(skill != 3) { //hp doesn't level
    				c.playerLevel[skill] = getLevelForXP(c.playerXP[skill]);
    			} else {
    				c.playerLevel[skill] += 1; // hp only increases by one
    			}
    			levelUp(skill);
    			c.gfx100(199);
    			requestUpdates();
    		}
    		setSkillLevel(skill, c.playerLevel[skill], c.playerXP[skill]);
    		return true;
    	}

    thats my add skill xp :O
    Reply With Quote  
     

  8. #8  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Quote Originally Posted by James Mason View Post
    @papa.

    Doesnt work. Errors where ever i put it.


    @Kastro.

    Im using Emulous... It does say in the thread title...
    Ofcourse it wouldn't work you bloody idiot it's just a example.

    You had 2b xp set in there... ???

    Code:
    	public boolean addSkillXP(int amount, int skill){
    		if (amount + c.playerXP[skill] < 0) {
    			return false;
    		}
    		if(c.playerXP[skill] >= 200000000) {
    			c.playerXP[skill] = 200000000;
    			return false;
    		}
    		int oldLevel = getLevelForXP(c.playerXP[skill]);
    		c.playerXP[skill] += amount;
    		if (oldLevel < getLevelForXP(c.playerXP[skill])) {
    			if(skill != 3) {
    				c.playerLevel[skill] = getLevelForXP(c.playerXP[skill]);
    			} else {
    				c.playerLevel[skill] += 1;
    			}
    			levelUp(skill);
    			c.gfx100(199);
    			requestUpdates();
    		}
    		setSkillLevel(skill, c.playerLevel[skill], c.playerXP[skill]);
    		return true;
    	}
    Reply With Quote  
     

  9. #9  
    Member

    Join Date
    Nov 2008
    Age
    27
    Posts
    4,859
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    lol i did that but now xp does stop at 200m+...

    so if i had 1 xp off 200m xp and gain 2 xp it will take me to 200m and 1 xp and doesnt go up any more :O
    Reply With Quote  
     

  10. #10  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Quote Originally Posted by Kastro View Post
    ^ The E-Thug is angry. ^
    The E-Loser posts again.
    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

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