EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Simple quest borked (https://www.eqemulator.org/forums/showthread.php?t=43186)

Slimshaydy 02-12-2021 11:02 AM

Simple quest borked
 
Im teaching myself based off a few test scripts a friend sent me. This was working fine I added something to do it and now for 3 hours idk why it wont work...im overlooking something im sure. Any help please?

Code:

sub EVENT_SAY {
my $=info = quest::saylink("info", 1);
my $=gate = quest::saylink("gate", 1);

if ($text =~/hail/i) {
                plugin::Whisper("Hey $name. Welcome to Carnage. I can give you some $info about the server. Make sure you get a $gate item too!");
                }
if ($text =~/gate/i) {
                plugin::Whisper("summon it emwtf!");
                }
if ($text =~/info/i) {
                plugin::DiaWind("The slaughter awaits! {gold}Carnage Reborn!~ <br> {bullet} {lb} Some cool custom stuff im trying to add!~ <br> {bullet}  {lb} Max level 70~ <br>  {bullet}  {lb} Fully Custom end game content!~ <br>  {bullet} {lb} 2-3 Box Minimum not sure yet~ <br>  {bullet} {lb} End Game Storyline!~ ");
}
        }

Tia <3

joligario 02-12-2021 11:13 AM

Quote:

Originally Posted by Slimshaydy (Post 266122)
Im teaching myself based off a few test scripts a friend sent me.

If you really want to learn, then there are a few resources to assist.
- https://eqemu.gitbook.io/quest-api/ is a great place to start
- Review existing quests in your quest folder and https://github.com/ProjectEQ/projecteqquests
- Use #questerrors in-game to see if quests are failing.
- Google "perl basic tutorial" for resources on how to use variables and general script structure

Slimshaydy 02-12-2021 11:14 AM

Thank you so much!

Sturm 02-13-2021 02:36 PM

Code:

my $=info = quest::saylink("info", 1);
my $=gate = quest::saylink("gate", 1);

should be:
Code:

my $info = quest::saylink("info", 1);
my $gate = quest::saylink("gate", 1);



All times are GMT -4. The time now is 11:53 AM.

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