EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Trouble with spell scriber (https://www.eqemulator.org/forums/showthread.php?t=39150)

Bandor 12-28-2014 11:51 AM

Trouble with spell scriber
 
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.

Code:

#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:
Code:

#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.


All times are GMT -4. The time now is 08:57 AM.

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