Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-2013, 11:13 AM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

Hello and welcome Dhry

I saw your server in the list today and wondered who the dev was. To answer your question: Yes it would be possible to set a qglobal when a character dies. I would probably use EVENT_SLAY on NPCs and set the qglobal when that is triggered. Then use EVENT_ENTERZONE for clients and check the qglobal in that.

That is a little off the cuff though. There are some extremely talented guys who know the scripting system much better than me. Maybe one of them will share a better way!
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
Reply With Quote
  #2  
Old 02-18-2013, 11:36 AM
Dhrystone
Sarnak
 
Join Date: Feb 2013
Posts: 31
Default

Thank you, thank you !

I'm a total newbie. I've just figured out today how to get the Avatar of Mortality to spawn in PoK and how to get her to say some text.

Now the plan, subject to change as I learn and get suggestions of course, is to have her be the agent to put the player in permadeath mode through a quest dialog that would set a qglobal indicating permadeath mode for the player character.

Then using EVENT_SLAY or some mechanism, if a player with that qglobal set to on dies cast some nasty disabling permanent spell on them (spell to be named "Death" of course.)

I want the character to still exist just be disabled by being rendered unable to move or cast. Alternatively they could be ported to some purgatory zone and rendered unable to cast. But the point is to make death reversible by GM action so that in case they died from some bug they could be restored. Also, the ability of the dead to will their gear to someone else.

Players without that permadeath qglobal set would play like an normal PEQ-based server.

I would probably make the effect reversible by talking to the Avatar again -- but only once.

The ultimate idea is to have a leaderboard somewhere (in game?) so that those players who get the highest in level without dying can be recognized for their accomplishment.

Dhry
Reply With Quote
  #3  
Old 02-18-2013, 03:04 PM
Zaela_S
Hill Giant
 
Join Date: Jun 2012
Posts: 216
Default

Quote:
Originally Posted by Drajor View Post
I would probably use EVENT_SLAY on NPCs and set the qglobal when that is triggered. Then use EVENT_ENTERZONE for clients and check the qglobal in that.
Why there is no EVENT_DEATH for clients by default is a mystery to me.
Reply With Quote
  #4  
Old 02-18-2013, 04:09 PM
Dhrystone
Sarnak
 
Join Date: Feb 2013
Posts: 31
Default

Is there some global perl script like player.pl but that applies to all zones?

I could probably implement an EVENT_DEATH in the code and maybe get an official dev to get it in the standard.

Dhry
Reply With Quote
  #5  
Old 02-18-2013, 04:53 PM
Zaela_S
Hill Giant
 
Join Date: Jun 2012
Posts: 216
Default

Quote:
Originally Posted by Dhrystone View Post
I could probably implement an EVENT_DEATH in the code and maybe get an official dev to get it in the standard.
I'm working on an implementation of the quest scripting system in Lua with an eye to fix all the things that seem like oversights or that just aren't designed as well as they should be. And to get away from some of Perl's trickier syntax.

Whether that will be accepted is a whole other matter, though...
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 04:38 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3