default.pl
I'm using the peq_quests pack which I renamed to quests in the EQEMU folder. I want all mobs that don't have a quest to say the default thing. Do I move the default.pl file into the quests folder, or does the default.pl go into every zone folder? I have it just in the quests folder now but all the other mobs won't say anything when I hail them. BTW the other quests work great.
|
just the quest folder
|
I put the default.pl in the c:\eqemu\quest folder but when I hail any other mob they just turn to me and don't say anything. But the other quests work, any ideas?
Here is the default.pl that is recommended for download on malignus' tutorial sub EVENT_SAY{ $plugin::debug && quest::say("[debug]in qstdefault::EVENT_SAY"); #plugin::showvars(); plugin::dispatch(); } sub EVENT_ITEM{ plugin::dispatch(); } sub EVENT_DEATH{ plugin::dispatch(); } sub EVENT_ATTACK{ plugin::dispatch(); } sub EVENT_SPAWN{ plugin::dispatch(); } sub EVENT_TIMER{ plugin::dispatch(); } sub EVENT_SLAY{ plugin::dispatch(); } sub EVENT_WAYPOINT{ plugin::dispatch(); } Is that right? Thanks |
You dont need all this plugin crap bud.. Here is a nice little default quest for you... :) Btw, syntax may be incorrect, I am very tired right now hehe..
sub EVENT_SAY { if($text=~/Hail/i) quest::say("Hello $name"); } sub EVENT_DEATH{ quest::me("falls to the ground."); } sub EVENT_ATTACK{ quest::me("charges at %name ready to attack."); } } } |
$name, not %name
lose the extra two } at the end (Edit: and enclose the Code:
quest::say("Hello $name"); other than that, that quest is good to go. |
Taking what you both say, is this right then?
sub EVENT_SAY { if($text=~/Hail/i) {quest::say("Hello $name");} } sub EVENT_DEATH{ quest::me("falls to the ground."); } sub EVENT_ATTACK{ quest::me("charges at $name ready to attack."); } and wouldn't you enclose the other two quest lines also if you do the hello $name one? Thanks for the help all. |
No, you wouldn't. If you don't know why, then you really need to brush up on your perl knowledge before you take on the task of writing a bunch of quests.
|
All times are GMT -4. The time now is 11:58 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.