Thread: Exp Problem

Results 1 to 3 of 3
  1. #1 Exp Problem 
    Registered Member
    Join Date
    Jun 2010
    Posts
    84
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Well i still gain exp but it doesnt update on the skills interface tell after i lvl up..
    lets say it says i have 1000 attack exp
    and i hit a 1 and get 4 exp. it should then say 1004 exp for attack but it stays at 1000 tell i get the next lvl then it would update to 2000
    any ideas?
     

  2. #2  
    Member

    Join Date
    May 2008
    Posts
    1,288
    Thanks given
    50
    Thanks received
    92
    Rep Power
    0
    Code:
    setSkillLevel(SKILL #, playerLevel[SKILL #], playerXP[SKILL #]);
    Wherever you add xp.
    e.g.
    After you add hitpoints xp add this.
    Code:
    setSkillLevel(3, playerLevel[3], playerXP[3]);
    In case you don't have setSkillLevel:
    Code:
        public void setSkillLevel(int skillNum, int currentLevel, int XP){
    	outStream.createFrame(134);
    	outStream.writeByte(skillNum);
    	outStream.writeDWord_v1(XP);
    	outStream.writeByte(currentLevel);
        }
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Posts
    84
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    thank you, i had it in a if statement.
    must have got it there while i was messing with hp
     


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
  •