EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Need help with locking expedition (https://www.eqemulator.org/forums/showthread.php?t=43886)

Jleadford83 06-10-2023 07:43 AM

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.

Jleadford83 06-10-2023 09:19 AM

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


All times are GMT -4. The time now is 11:10 PM.

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