PDA

View Full Version : 0.6.0DR2 PERL Scribespells issues


Magoth78
11-07-2004, 05:16 AM
hello,

I've got a problem with scribespells on my server. The script if working fine on 0.6.0DR1 but not with the latest cvs releases.

Here is the script:

sub EVENT_SAY
{
if ($text=~ /Hail/i){quest::say("Hello, I will scribe yours 20 first [spells] for free. To get the next ones, you will have to pay. You can only scribes spells of your level.");}
if ($text=~ /spells/i){quest::say("Scribing...");
quest::scribespells(20);}
}



Here is the error when someone says 'spells':

[Status] Script error: qst78::EVENT_SAY - Perl runtime error: Usage: scribespell
s() at (eval 249) line 5.

sotonin
11-07-2004, 05:33 AM
this kind of belongs in the quests forum. That looks like a perl syntax error.

fathernitwit
11-08-2004, 03:42 AM
contrary to popular belief... scribespells does not in fact take any arguments... it scribes spells up to the current player's level. Granted this could easily be changed, but has not yet been changed.

The new perl system just properly checks arguments, that is why you are getting an error.

Magoth78
11-08-2004, 07:59 AM
Working fine without argument, thanks.

Mag