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-19-2013, 01:56 PM
Dhrystone
Sarnak
 
Join Date: Feb 2013
Posts: 31
Default

Somewhat back on topic...with more questions.

Where would I put an EVENT_SLAY sub to intercept the event globally?

Doesn't appear work in global_player.pl in the templates folder, and that's the only global_player.pl I found and it's the one being used because I can change the mysterious voice text and it changes globally.

I found a default.pl file in the plugins folder with an EVENT_SLAY sub in it and thought I'd hit pay dirt, but putting a quest::say in that sub didn't result in the text being said when I die.

The only way I've got anything to work so far is to put the EVENT_SLAY in the .pl for a speciflc NPC and let that NPC kill me.

What am I missing? OR is this even possible without changing the code.

I realize EVENT_SLAY only applies to kills by NPCs and not the other ways players can die but that's actually okay.

Dhry
Reply With Quote
  #2  
Old 02-19-2013, 02:12 PM
Mariomario
Hill Giant
 
Join Date: Jul 2004
Posts: 143
Default

When using the default.pl it only effects NPCs who don't already have a script, so perhaps when you tried it you were killed by an NPC who already had a script of his own, therefore the EVENT_SLAY did not take precedence from the default.pl you had it contained in.

How the script chain of command works:

specific npc.pl then,

folder default.pl then,

global default.pl.

So if you have a default.pl already in a folder for a zone, a global default.pl wouldnt affect anything in that zone, and likewise for an NPC's specific .pl script. Anything you have in the default.pl for the zone wouldnt affect anything for that specific NPC.

I hope this is understandable and you figure out what you're looking for.
__________________
Wrath - Lead Admin and Owner of Enlightened Dark: Ascension

Enlightened Dark: Ascension
Reply With Quote
  #3  
Old 02-19-2013, 03:21 PM
Dhrystone
Sarnak
 
Join Date: Feb 2013
Posts: 31
Default

Thanks. Yes, very clear.

I solved the problem by adding a test of $client->GetCorpseCount > 0 to the EVENT_ENTERZONE event in global_player.pl

This works because after death the first thing that happens is a return to bind point. The ENTERZONE is triggered upon landing on your bind point.

The code in global_player.pl then casts a spell on the player to silence them for 5 days so they can't cast, and moves them to the tutoriala zone. Where there is no exit. It also sets another qglobal. If somehow they get out (maybe by waiting out the 5-day timer) then upon entry into any other zone the same event will trigger putting them right back into...purgatory!

Now, all the dead players will be able to re-enact NO EXIT in the tutoriala zone

The Survivor Server is open for beta testing of the perma-death (actually perma-purgatory) option now.

Turning on the option is done by speaking to the Avatar of Mortality in PoK.

Thank you all for the help and guidance here.

Dhry
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 12:35 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 - 2026, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3