View previous topic :: View next topic |
Author |
Message |
Wallack
Joined: 30 Apr 2012 Posts: 27
|
Posted: Sat Apr 16, 2016 20:22 Post subject: Event on XP gain? |
|
|
Hi.
żIs there a way to create a script that fires when the character gains XP?
Normally when killing monsters you gain XP and I want a script that when the character gets xp, do some checks.
I know I could do something in the ondeath script of the creatures but that would give me the killer and not anyone who got xp from kiilling it.
I basically want to level up characters from 41 to 80 and while they can get XP by killing monsters now, they won't level up, so I want to check the xp they have and the xp required for the next level so if that happens, I can fire the event to show the actual level up interface.
Is there any way to work with such event?
thanks. |
|
Back to top |
|
|
pethrowilo
Joined: 21 Dec 2014 Posts: 7 Location: China
|
Posted: Sun Apr 17, 2016 0:48 Post subject: |
|
|
Just scale module xp to 0, and hook all xp modification script, make something you want on your hook.
It'll be over kill for a plugin to do something script alone can handle quite well. |
|
Back to top |
|
|
|