Thread: A few QUESTions
View Single Post
  #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