Jump to content
  • 0

UMOB_BASEEXP and UMOB_JOBEXP for getunitdata/setunitdata


WhiteEagle

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  455
  • Reputation:   57
  • Joined:  08/28/12
  • Last Seen:  

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 ❤️

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

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;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  455
  • Reputation:   57
  • Joined:  08/28/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  69
  • Reputation:   79
  • Joined:  02/20/20
  • Last Seen:  

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)

Link to comment
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...