Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2019, 05:20 PM
rabbet330
Sarnak
 
Join Date: May 2019
Posts: 31
Default 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?

Last edited by joligario; 11-02-2019 at 05:45 PM..
Reply With Quote
  #2  
Old 11-02-2019, 05:46 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Pretty sure death complete is for NPCs only
Reply With Quote
  #3  
Old 11-02-2019, 06:05 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

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?
Reply With Quote
  #4  
Old 11-02-2019, 06:39 PM
rabbet330
Sarnak
 
Join Date: May 2019
Posts: 31
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:13 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3