EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Door script assistance (https://www.eqemulator.org/forums/showthread.php?t=28250)

Dibalamin 05-17-2009 09:57 PM

Door script assistance
 
I'm working on scripting all the Sky gates. How do I -not- use the doors table's destination & use instead the player.pl I've written?

I tried setting the destination xyz to null and that has locked up the zone!
I tried setting them to 0 and it is still locked up atm!

Dibalamin 05-17-2009 11:09 PM

Here is the player.pl file I'm using, basically a copy and paste with slight mods from the player script section. Null values in that table will cause the zone to crash.

Code:

sub EVENT_CLICKDOOR {
       
        if($doorid == 19 || $doorid == 275)        {
                if ($hasitem{20911}){
                        quest::movepc(71,1108,516,-8);       
                        }
                }

        if($doorid == 20 || $doorid == 276 ) {
                if ($hasitem{20919}){
                        quest::movepc(71,574,1463,-765);       
                        }
                }
       
        if($doorid == 9 || $doorid == 265){
                if ($hasitem{20912}){
                        quest::movepc(71,-434,-103,-359);       
                        }
                }

        if($doorid == 13 || $doorid == 278){
                if ($hasitem{20913}){
                        quest::movepc(71,320,654,-55);       
                        }
                }               
       
        if($doorid == 10 || $doorid == 266){
                if ($hasitem{20914}){
                        quest::movepc(71,-781,1185,130);       
                        }
                }       

        if($doorid == 21 || $doorid == 277){
                if ($hasitem{20912}){
                        quest::movepc(71,-434,-103,-359);
                        }
                }       

        if($doorid == 14 || $doorid == 270){
                if ($hasitem{20915}){
                        quest::movepc(71,1089,-884,412);       
                        }
                }               
       
        if($doorid == 15 || $doorid == 271){
                if ($hasitem{20916}){
                        quest::movepc(71,306,-750,772);       
                        }
                }                               
                       
       
        if($doorid == 16 || $doorid == 272){
                if ($hasitem{20917}){
                        quest::movepc(71,-471,-984,1013);       
                        }
                }

        if($doorid == 17 || $doorid == 273){
                if ($hasitem{20918}){
                        quest::movepc(71,-1294,-262,1221);       
                        }
                }       
}



All times are GMT -4. The time now is 02:33 PM.

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