PDA

View Full Version : Trouble with spell scriber


Bandor
12-28-2014, 11:51 AM
So he is not wanting to scribe anything lol. Have searched the forums and dont see anything that appears to be wrong though I could be largely mistaken. I want him to scribe all spells/discs up to level 35.

#Quest file for Mesa - Scribe Anso

sub EVENT_SAY {
if($text=~/hail/i) {
quest::say("Hail $class. I can teach you your spells and tomes,up to the 35th level. Do you seek to learn [spells] or [tomes]");
}
if($text=~/spells/i) {
quest::scribespells (35);
}
if($text=~/tomes/i) {
quest::traindiscs 35;
}
}

Kingly_Krab
12-28-2014, 01:22 PM
You're missing parentheses around the 35 in quest::traindiscs(35). Try this: #Quest file for Mesa - Scribe Anso

sub EVENT_SAY {
if($text=~/hail/i) {
quest::say("Hail $class. I can teach you your spells and tomes, up to the 35th level. Do you seek to learn " . quest::saylink("spells", 1) . " or " . quest::saylink("tomes", 1) . "?");
} elsif($text=~/spells/i) {
quest::scribespells(35);
} elsif($text=~/tomes/i) {
quest::traindiscs(35);
}
}

Bandor
12-28-2014, 01:34 PM
Still not scribing anything for me :/

Bandor
12-28-2014, 01:34 PM
nvm its working boy im just a idiot and forgot to have no spells in my spell book first /facepalm

Kingly_Krab
12-28-2014, 01:42 PM
Haha, glad you got it worked out.