PDA

View Full Version : Simple quest borked


Slimshaydy
02-12-2021, 11:02 AM
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?

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
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
my $=info = quest::saylink("info", 1);
my $=gate = quest::saylink("gate", 1);

should be:

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