Anyway to set a player level 1 after death?
I am looking in the db, to see if there's a way to revert a player to level 1 after they die. I think I might just need to edit the code to where the xp lost upon death is calculated, unless someone knows of an easier way? Also while I'm there, I want it so when a player dies they get spawned with their starter gear.
Thanks in advance! Silentrath |
I would think you would do this in attack.cpp
Keep in mind my source is custom and older. The routine you would want is Client::Death On mine there is a line Code:
mylevel = mylevel ? mylevel : 1; Code:
mylevel = 1; |
Got level 1 working by, modifying where it calculates how much xp is lost, just commented out that code and put
Code:
SetLevel(1); |
Where's the delete button? I'm too slow.
|
You should be able to just add an event death to the global player.pl for that
|
Quote:
|
I've been looking into this in a way - Leet or someone, would you mind showing a sample of how to edit it in player.pl?
|
should be as simple as putting this in your global_player.pl file...(not tested though)
Code:
sub EVENT_DEATH { |
All times are GMT -4. The time now is 08:40 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.