How to Stop players casting certain spells in certain areas
There are areas in EQ where certain spells don’t work or can’t be cast
SOW inside Velketor's Labyrinth levitate etc. I would like to prevent gate and teleport in certain areas I’m hoping it’s possible with an invisible npc |
Take a look at the blocked_spells table in the database:
Code:
mysql> describe blocked_spells; To block a spell in the whole zone, set x,y,z to 0 and x_diff,y_diff,z_diff to a large number (10000 is typically what is used for the current entries in that table). Browsing the entries in the table should give you an idea of what to do. EDIT: Looking at the source, it appears if 'type' is 1, then the spell is blocked zonewide, or if 'type' is 2, then it is blocked only within the cube specified by x,y,z,x_diff,y_diff,z_diff. |
SoW and Levitate blocking are done on a per-zone basis and are set in the zones table itself. But, if you want to stop specific spells from being cast in a whole zone or just part of it, you can use the blocked_spells table to setup what you want blocked and exactly where to block it. There should already be some examples in your table, so you can figure out how to use it based on that.
Edit: Foiled by Derision! |
Wow you guys are the best .... and the more I learn the more I appreciate the design of Everquest.
Thanks guys |
All times are GMT -4. The time now is 02:41 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.