EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Resetting characters at death (https://www.eqemulator.org/forums/showthread.php?t=42688)

rabbet330 11-02-2019 05:20 PM

Resetting characters at death
 
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:

Code:

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:

Code:

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

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



All times are GMT -4. The time now is 02:16 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.