Jump to content
  • 0
WhiteEagle

UMOB_BASEEXP and UMOB_JOBEXP for getunitdata/setunitdata

Question

Is someone kind enough to give me the code to add UMOB_BASEEXP and UMOB_JOBEXP to getunitdata/setunitdata.
I would need these for events like "Monster of the Day",
where the exp for individual monsters are raised.
Would be awesome ❤️

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
22 hours ago, WhiteEagle said:

Is someone kind enough to give me the code to add UMOB_BASEEXP and UMOB_JOBEXP to getunitdata/setunitdata.
I would need these for events like "Monster of the Day",
where the exp for individual monsters are raised.
Would be awesome ❤️

why not simply use this script command in your script?

getexp base_exp,job_exp;

 

Share this post


Link to post
Share on other sites
  • 0

Because then it is only set for the individual player.
If you are in a party, it is not counted for the other party members and if you set it for the party, everyone gets the full EXP, no matter how high the level difference of the individual party members is.
So many checks need to be built in to make it work as it should.
With setunitdata, every time the Monster of the Day changes, you could just change the EXP and be done.

For instances, you could determine the exp for each individual MvP, e.g. how long a player needs to get to the MvP. The faster the player arrives, the more exp the MvP gives and and and

Edited by WhiteEagle

Share this post


Link to post
Share on other sites
  • 0

Why don't you use OnNPCKillEvent ? There is no umob_baseexp possible because of the complexion of the exp gained. However, you have a few options:
1. Use OnNPCKillEvent -> you can manage the time (fastest player arrived), you can give bonus xp if mvp for the whole party through script.
2. Spawn a mvp with an event script that launch when died, add a timer with the spawn, then you can find a formula to give % xp based on the current amount of xp the mvp give. If you want to give the bonus to the whole party make sure to use addrid, then check if they are on the same map as the person who killed the mvp. 
3. Create a umob_baseexp that will set a percentage value, then you can add this percentage to the code that gives mob xp when died. (simple coding)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.