Log in

View Full Version : spells i hate them.....


spider661
07-25-2008, 10:45 PM
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

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);
}
}
}