Jump to content
The Latest Source Code & Server Pack - 66% OFF [LIMITED STOCK] Read more... ×

Orion Project - Interlude Server Files

Sign in to follow this  
SHKEd

The formula for calculating EXP as a percentage?

Recommended Posts

How do I calculate the percentages to move to the next level based on the correct EXP value from the database and xml. I need a calculation formula

(I apologize for the clumsy translation)

Share this post


Link to post
Share on other sites
55 minutes ago, SHKEd said:

How do I calculate the percentages to move to the next level based on the correct EXP value from the database and xml. I need a calculation formula

(I apologize for the clumsy translation)

Why you need something like that? What are you going to do?

Share this post


Link to post
Share on other sites
2 hours ago, Damon said:

Why you need something like that? What are you going to do?

CMS module for website ?  

Share this post


Link to post
Share on other sites
41 minutes ago, SHKEd said:

CMS module for website ?  

I would like to see this php code then I could say something.

Share this post


Link to post
Share on other sites
11 minutes ago, Damon said:

I would like to see this php code then I could say something.

//Something like this =)

l1 =  $base->get_tolvl($char_lvl + 1); //GET XML LVL TO
l2 =  $base->get_exp_char($char); //GET CURRENT EXP CHAR FROM DB `characters.exp`


//JS VUE
procent(l1,l2){
  let m = (l1*100)/l2;
  return parseFloat(m).toFixed(2);
},

 

Share this post


Link to post
Share on other sites
3 minutes ago, SHKEd said:

//Something like this =)

l1 =  $base->get_tolvl($char_lvl + 1); //GET XML LVL TO
l2 =  $base->get_exp_char($char); //GET CURRENT EXP CHAR FROM DB `characters.exp`


//JS VUE
procent(l1,l2){
  let m = (l1*100)/l2;
  return parseFloat(m).toFixed(2);
},

 

So, probably your answer is here: game/data/xml/experience.xml

Share this post


Link to post
Share on other sites
3 minutes ago, Damon said:

So, probably your answer is here: game/data/xml/experience.xml

This is the l1 variable from the code - yes. I take the value from there. 

But my percentage calculation formula does not work correctly. I would like to know how the game is calculated. I got 90 percent instead of 12 in the game. 
 

Share this post


Link to post
Share on other sites
4 minutes ago, SHKEd said:

This is the l1 variable from the code - yes. I take the value from there. 

But my percentage calculation formula does not work correctly. I would like to know how the game is calculated. I got 90 percent instead of 12 in the game. 
 

Don't forget you need to restart character if you want to see the real data from database.  It's not like you think that you can see exp in LIVE mode if you still are online and farming mobs.
I'll send you DM.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Latest Posts

    • You must be signed in to view the link content in this post. Please Sign In or Sign Up.

      You must be signed in to view the link content in this post. Please Sign In or Sign Up. L2jOrion Server Files Updates (Changeset 29 | Revision 965) BUGS / CORRECTIONS ADDED - Missing spoil drop to Forgotten Crewman (39) and Vagabond Of The Ruins (40). FIXED - Skill: Item Skill: Hold (3190). It did not have the range before. FIXED - Skill: Item Festive Sweeper (444). It had the visual bug of double same item in inventory. FIXED - Signet skills. They can't do damage or somehow effect party members, clan/alliance members etc (Like LOFF). FIXED - Death Penalty bug if the event's place is in peace zone. FIXED - Debuff will work on pets if the event's place is in peace zone. FIXED - Double revive bug in the events DM and CTF. FIXED - Heal bug on teleport after revive in the events DM and CTF. FIXED - Cooltime issue. FIXED - Antharas's hp/mp regenaration. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Benom's teleport skills. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Frintezza's dance skill. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Raid Boss's rates for The Four Sepulchers bosses. Before it worked like rates for simple monsters. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Missing The grand bosses spawn announcements.  (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Can not see target issue in corners or next to walls. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Custom PM on character startup. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Creature: Judge of Light. It had wrong AI type: fighter and it was changed to archer. FIXED - Wrong attack range of some creatures (Like L2OFF). FIXED - Some the Boss skills (Like L2OFF). FIXED - MOS doors. They should be unlocked by skill and not by item. (Like L2OFF). (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report. ADDONS UPDATED - The Events: TVT:  ADDED -  Config: remove or leave the buffs on die. ADDED - Config: remove or leave the cubics on event start. ADDED - Config: List of prohibited classes by id. REMOVED - Config: DMAllowedHealerClasses. ADDED - Config: No reward for tie match. ADDED - Config: Special buffs system for mage and fighter. DM:  ADDED -  Config: remove or leave the buffs on die. ADDED - Config: remove or leave the cubics on event start. ADDED - Config: List of prohibited classes by id. ADDED - Config: No reward for tie match. ADDED - Config: Special buffs system for mage and fighter. ADDED - Config: Spawn/respawn locations from special list. From now on you can create your own location points on //dmevent command. CTF:  ADDED -  Config: remove or leave the buffs on die. ADDED - Config: remove or leave the cubics on event start. ADDED - Config: List of prohibited classes by id. ADDED - Config: No reward for tie match. ADDED - Config: Special buffs system for mage and fighter. MOVED - 2 config files dressme.ini and sellbuffs.ini from Config/custom folder to Config/mods. UPDATED - Extractable items system. From now on we have 2 types: 1. Random item from list by chance. 2. All items from list by chance. ADDED - Config: SpawnCharMaxOffset for Custom Spawn of Character. ADDED - Config for our donate system and if you use our donate system you will need to activate this config. UPDATED - The Autofarm engine: IMPROVED - auto targeting system. IMPROVED - auto finding targets. IMPROVED - Movements. IMPROVED - Skills using. FIXED - Stuck on some actions. OPTIMIZATION IMPROVED - Geodata engine.   Submitter You must be signed in to view the link content in this post. Please Sign In or Sign Up. Submitted 05/30/23 Category You must be signed in to view the link content in this post. Please Sign In or Sign Up.  
    • BUGS / CORRECTIONS ADDED - Missing spoil drop to Forgotten Crewman (39) and Vagabond Of The Ruins (40). FIXED - Skill: Item Skill: Hold (3190). It did not have the range before. FIXED - Skill: Item Festive Sweeper (444). It had the visual bug of double same item in inventory. FIXED - Signet skills. They can't do damage or somehow effect party members, clan/alliance members etc (Like LOFF). FIXED - Death Penalty bug if the event's place is in peace zone. FIXED - Debuff will work on pets if the event's place is in peace zone. FIXED - Double revive bug in the events DM and CTF. FIXED - Heal bug on teleport after revive in the events DM and CTF. FIXED - Cooltime issue. FIXED - Antharas's hp/mp regenaration. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Benom's teleport skills. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Frintezza's dance skill. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Raid Boss's rates for The Four Sepulchers bosses. Before it worked like rates for simple monsters. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Missing The grand bosses spawn announcements.  (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Can not see target issue in corners or next to walls. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Custom PM on character startup. (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report: You must be signed in to view the link content in this post. Please Sign In or Sign Up. ) FIXED - Creature: Judge of Light. It had wrong AI type: fighter and it was changed to archer. FIXED - Wrong attack range of some creatures (Like L2OFF). FIXED - Some the Boss skills (Like L2OFF). FIXED - MOS doors. They should be unlocked by skill and not by item. (Like L2OFF). (Thanks to You must be signed in to view the link content in this post. Please Sign In or Sign Up. for the report. ADDONS UPDATED - The Events: TVT:  ADDED -  Config: remove or leave the buffs on die. ADDED - Config: remove or leave the cubics on event start. ADDED - Config: List of prohibited classes by id. REMOVED - Config: DMAllowedHealerClasses. ADDED - Config: No reward for tie match. ADDED - Config: Special buffs system for mage and fighter. DM:  ADDED -  Config: remove or leave the buffs on die. ADDED - Config: remove or leave the cubics on event start. ADDED - Config: List of prohibited classes by id. ADDED - Config: No reward for tie match. ADDED - Config: Special buffs system for mage and fighter. ADDED - Config: Spawn/respawn locations from special list. From now on you can create your own location points on //dmevent command. CTF:  ADDED -  Config: remove or leave the buffs on die. ADDED - Config: remove or leave the cubics on event start. ADDED - Config: List of prohibited classes by id. ADDED - Config: No reward for tie match. ADDED - Config: Special buffs system for mage and fighter. MOVED - 2 config files dressme.ini and sellbuffs.ini from Config/custom folder to Config/mods. UPDATED - Extractable items system. From now on we have 2 types: 1. Random item from list by chance. 2. All items from list by chance. ADDED - Config: SpawnCharMaxOffset for Custom Spawn of Character. ADDED - Config for our donate system and if you use our donate system you will need to activate this config. UPDATED - The Autofarm engine: IMPROVED - auto targeting system. IMPROVED - auto finding targets. IMPROVED - Movements. IMPROVED - Skills using. FIXED - Stuck on some actions. OPTIMIZATION IMPROVED - Geodata engine.  
    • All reports checked and fixed.
      Topic locked.
    • STATUS: Checked -> Fixed - Improved geodata engine.   STATUS: Checked -> Fixed - Now it looks like real PM.
    • i think this is not working properly # Show Welcome PM on start
      PMWelcomeShow = True
      PMServerName = L2jOrion
      PMText1 = Hello
      PMText2 = Vote for us every 24h I use   You must be signed in to view the link content in this post. Please Sign In or Sign Up.
  • Latest Topics


×