Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2014, 12:32 AM
sklead's Avatar
sklead
Sarnak
 
Join Date: Jul 2005
Posts: 38
Default A few QUESTions

Okay, sorry for the pun, first of all... so I took a break from EQEmu for a while, but I'm getting my server back up and running. However quests aren't entirely working.

I noticed that the quest folder has some .pl files and some .lua files. When I create a quest and save it as a .pl or .lua file the NPC doesn't respond, period. If I take one of the .pl files already in the folder and rename it to match my NPC it also doesn't work. However if I take one of the .lua files and rename it, it works, but the text within looks a lot different from what I remember, namely like this:

Code:
function event_say(e)
	if(e.message:findi("hail")) then
		e.self:Say("Hail, fellow adventurer. Are you from Qeynos?");
	end
end
Is there a guide about writing quests in this format, or am I doing something wrong doing it the old way? By which I mean this:

Code:
sub EVENT_SAY {
  if ($text=~/hail/i) {
    quest::say("Hello, friend. Beautiful is what I would call such a day normally but lately?");
  }
  if ($text=~/your eyes/i) {
    quest::say("Yes. I cannot see any longer, my sight long since lost in the march of years. By the blessings of Tunare and Karana, though, I still make myself useful.");
  }
}
__________________
In my defens, God me defend
Reply With Quote
  #2  
Old 06-20-2014, 04:18 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

If there is a <mob>.lua and a <mob>.pl file in the same folder, the lua file always takes precedence.

https://github.com/EQEmu/Server/wiki/Lua-Parser is a good start for lua quest writing
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #3  
Old 06-20-2014, 06:48 PM
sklead's Avatar
sklead
Sarnak
 
Join Date: Jul 2005
Posts: 38
Default

I've tried deleting a .lua file and creating a .pl file, but it still doesn't work. After searching through the forms some people mentioned a lua51.dll file and perl512.dll file. I have the lua51.dll but I couldn't locate a perl512.dll, so I figured that would be the problem. However, I downloaded the file, put it in the same location as the lua51.dll, created a new mob and wrote a simple quest and saved it as a .pl and it still wouldn't work. I'm getting more familiar with the .lua format, but I just find it easier to write in .pl.
__________________
In my defens, God me defend
Reply With Quote
Reply


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 11:14 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3