WhiteEagle Posted February 12, 2021 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 11 hours ago Share Posted February 12, 2021 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 Quote Link to comment Share on other sites More sharing options...
0 Elijah23 Posted February 13, 2021 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Thursday at 02:33 PM Share Posted February 13, 2021 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; Quote Link to comment Share on other sites More sharing options...
0 WhiteEagle Posted February 13, 2021 Group: Members Topic Count: 79 Topics Per Day: 0.02 Content Count: 480 Reputation: 67 Joined: 08/28/12 Last Seen: 11 hours ago Author Share Posted February 13, 2021 (edited) 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 February 13, 2021 by WhiteEagle Quote Link to comment Share on other sites More sharing options...
0 grenat50 Posted February 13, 2021 Group: Members Topic Count: 15 Topics Per Day: 0.01 Content Count: 69 Reputation: 79 Joined: 02/20/20 Last Seen: December 1, 2024 Share Posted February 13, 2021 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) Quote Link to comment Share on other sites More sharing options...
Question
WhiteEagle
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.