Log in

View Full Version : Resetting characters at death


rabbet330
11-02-2019, 05:20 PM
Saw this idea for a "hardcore" setup:
http://www.eqemulator.org/forums/showthread.php?t=38252

where you go back to level 1 at death. I tried adding this to global_player.pl:

sub EVENT_DEATH_COMPLETE {
quest::level(1);
}
(middle line is indented - just doesn't show up in the post)

as well as replacing the quest line with $client->SetLevel(1,0); but neither worked. I let my level 2 character happily waltz into Kurn's Tower and die, and upon respawn she was still level 2.

Is there a new way to do this? Or some prerequisite I'm missing?

joligario
11-02-2019, 05:46 PM
Pretty sure death complete is for NPCs only

Kingly_Krab
11-02-2019, 06:05 PM
1. Do you have a global_player.lua overriding the global_player.pl?


2. Do you have a zone-specific player.lua/player.pl overriding the global_player.pl?

rabbet330
11-02-2019, 06:39 PM
Ah, thank you. Nothing zone specific but yes there is a lua file with the same name. Deleting/renaming the lua works, and of course it's the easiest way. Is there a way to add it into the lua instead? Here are my failed tries:

function event_death_complete(e)
e.self:Level(1);
end

function event_death_complete(e)
e.self:SetLevel(1,0);
end