ID:155385
![]() Jul 18 2011, 7:18 pm
|
|
Ok i am sure this is something simple but how do I make a mob give the person who slays it experience points to level up
|
![]() Jul 18 2011, 7:51 pm
|
|
You can define an experience var and add to it randomly using rand() proc when a person kills a specific mob. Then you can use if() to check if required experience is met or not and if yes, add one to level and you are done. :)
|
So like
mob |
That will only define the vars for the mob, you need to override this mob's Del() proc to add experience to someone who killed it. Or you can make a Death() proc and add experience to the killer. :)
|
In your deathcheck, make sure you have
src.exp+=//Numerical Value/Formula And make sure to trigger the deathcheck every time an ability is triggered. Or however often you want it to :3 |