EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   spells i hate them..... (https://www.eqemulator.org/forums/showthread.php?t=25788)

spider661 07-25-2008 10:45 PM

spells i hate them.....
 
i need to remove some spells from the players spell book.. i use a spell scriber and im working on a quest and need to remove the spells that have to do with porting from the players spell book so they actually have to walk to where they are told rather then port.. i see the quest object to remove spells from the spell book by slot but how am i suppose to know what slot its in..

anyways can this be done.. and if not is there something i can do in the player script to make them fizzle or something if a global is set?

also if i have to go the player file way does the player.pl have to be in every zone or just the main quest folder like the default.pl


PS sorry i posted this in wrong place please move it if you feel it should be.. was not done on purpose really!!

spider661 07-26-2008 02:57 PM

i got it im sure there is a better way and if anyone can figure it out please say so.. but this is what i got.

player.pl
Code:

sub EVENT_ENTERZONE
{
quest::settimer("spell",2);
}
sub EVENT_TIMER
{
if($timer == "spell")
{
if($client->CastingSpellID() == 36)
{
quest::say("Bim has cursed you.. This spell will not work at this time!");
$client->InterruptSpell(36);
}
}
}



All times are GMT -4. The time now is 10:50 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.