Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2017, 08:30 PM
Baelu
Sarnak
 
Join Date: Jun 2017
Posts: 30
Default Transporter

Made a simple npc to teleport to bazaar but it doesnt seem to do anything. Got it in quest folder in freeporttemple folder. And under the npc id (tried name too and it wouldnt work either) anyways code is

Code:
sub EVENT_SAY {
	if($text=~/hail/i) {
		plugin::Whisper("Hello, would you like to visit the  " . quest::saylink("Bazaar", 1) . "?");
	} 
	elsif($text=~/Bazaar/i) {
		plugin::Whisper("Very well.");
	quest::zone(Bazaar);
	}
	}

	sub EVENT_SPAWN {
	plugin::SetMobColor(quest::ChooseRandom(0..255), quest::ChooseRandom(0..255), quest::ChooseRandom(0..255));
}
}
Reply With Quote
  #2  
Old 06-15-2017, 09:17 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Cursory glance, your bracket counts are not matching, check them again.
Reply With Quote
  #3  
Old 06-15-2017, 10:42 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

As provocating stated, you had an extra bracket. You also have a bareword in quest::zone().

Code:
sub EVENT_SAY {
    if($text=~/hail/i) {
        plugin::Whisper("Hello, would you like to visit the  " . quest::saylink("Bazaar", 1) . "?");
    } elsif($text=~/Bazaar/i) {
        plugin::Whisper("Very well.");
        quest::zone("bazaar");
    }
}

sub EVENT_SPAWN {
    plugin::SetMobColor(quest::ChooseRandom(0..255), quest::ChooseRandom(0..255), quest::ChooseRandom(0..255));
}
Reply With Quote
  #4  
Old 06-16-2017, 09:13 AM
Baelu
Sarnak
 
Join Date: Jun 2017
Posts: 30
Default

Makes sense, will try it out. Thank you.
Reply With Quote
  #5  
Old 06-16-2017, 01:41 PM
Baelu
Sarnak
 
Join Date: Jun 2017
Posts: 30
Default

Flawless, thanks a lot.
Reply With Quote
  #6  
Old 06-16-2017, 06:56 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

You're welcome. Glad you're enjoying my mob armor color plugin. You don't have to make it random every time they spawn by the way.
Reply With Quote
  #7  
Old 06-17-2017, 08:51 AM
Baelu
Sarnak
 
Join Date: Jun 2017
Posts: 30
Default

One of my favorite plug ins lol, so simple yet so neat imo
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 05:52 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