Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 06-10-2023, 07:43 AM
Jleadford83
Fire Beetle
 
Join Date: Mar 2015
Posts: 12
Question Need help with locking expedition

I can't seem to find the reason this seems to go off. I get no warnings. The debug message fires, but I can still invite a logged in alt.

Code:
sub EVENT_ENTERZONE {
	my $dz = quest::get_expedition();
	if($dz) {
		quest::settimer("lock", 60);
	}
}

sub EVENT_TIMER {
	my $dz = quest::get_expedition();
	if($timer eq "lock" && $dz) {
		quest::stoptimer("lock");
		$dz->SetLocked(true);
		quest::debug("Locked Expedition");
	}
}
I am very new to writing scripts so pls lend me your wisdom.
Reply With Quote
  #2  
Old 06-10-2023, 09:19 AM
Jleadford83
Fire Beetle
 
Join Date: Mar 2015
Posts: 12
Default

I got it working just had to use .lua not sure why perl did not work.
Reply With Quote
Reply

Tags
quest, quests


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 04:20 PM.


 

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