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 03-29-2012, 03:53 PM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default preventing a spell cast

Is there anyway to prevent a specific spell or set of spells from being cast without trashing normal spell function. Basicly I want to stop players from casting any gate or teleportation spell while in a specific zone so that they have to complete a quest before leaving. I was thinking something along the lines of the following.

player.pl
Code:
sub EVENT_CAST {

  if($spell_id == 36 || 16234) {
          InterruptSpell(spellid);
    }
}
But InterruptSpell(spellid); doesn't exist outside of $mob-> and I don't think it would work in the manner I am wanting. To top off the problem list with this idea I read that sub EVENT_Cast only detects successful spell casts and not the attempt. Any ideas?
Reply With Quote
  #2  
Old 03-29-2012, 07:12 PM
Jeknos
Fire Beetle
 
Join Date: Oct 2010
Posts: 10
Default

I think your best bet is to add those spells to the blocked_spells table for that zone and then use the quest to add a teleporter npc.
Reply With Quote
  #3  
Old 03-29-2012, 09:44 PM
blackdragonsdg
Dragon
 
Join Date: Dec 2008
Location: Tennessee
Posts: 656
Default

That certainly would be alot easier than what I was trying to do. I can't believe I forgot about that table.
Reply With Quote
Reply


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