Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-28-2019, 09:52 AM
Sturm
Hill Giant
 
Join Date: Dec 2015
Posts: 116
Default

You have a syntax error else if should be elsif in Perl.

Code:
sub EVENT_SAY {
	if($text=~/hail/i) {
		quest::say("$name, where do you want to go today? I can send you to the [". quest::saylink("temple") . "] ?");
	}
	elsif($text=~/temple/i) {
		quest::say("Let me know if this spell works....I just wrote it!");
		quest::movepc(729,-55,44,-158.81); # TODO: fix coordinates later
	}
}
Also ensure the file is named #Arias.pl not #arias.pl - pretty sure their case sensitive.

An easy way to check your syntax is to open a command window then change directory to where your quests are located:

cd C:/EQ_Emu/quests (or whatever your path is to that folder)

then:

perl -c #Arias.pl

That should spit out any error's and tell you what line it's on or near, then you just gotta figure out what's wrong there.

Oh! Right nearly forgot the in-game command is: #reloadquests

Happy Scripting!
__________________
Developer of the Imperium Server.
https://imperium-eq.com/
Reply With Quote
 

Tags
dialog, pearl, quest, script


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:18 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3