Quote:
Originally Posted by Kingly_Krab
You can do some of this in Perl. You could have sub EVENT_DEATH_COMPLETE set their level and skills to 1. As for the other stuff, that's up to you as to how you do that.
|
I'm just learning pearl and reading up on it a bit on the wiki to see what I can learn and figure out. I came across shese two sub EVENT's which standout similarity.
sub EVENT_DEATH_COMPLETE - Triggered when the NPC dies.
and
sub EVENT_SLAY - Triggered whenever an NPC kills someone.
To clarify what I want is to make players lose levels for dieing to NPC's not from killing NPC's and wasn't planning on them losing skill ups
I'm confused though by the description with sub EVENT_SLAY's it sounds like I want, but am in no way a pearl expert so was wondering if you meant that earlier.
I'm not entirely sure what I tweak either I believe I open default.pl or default-actions.pl then change the proper sub EVENT to include something along the lines of "SetBecomeNPCLevel(level 1)" , but I'm not sure that's just my best guess on how it works more or less.