EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   Bug with $npc->SaveGaurdSpot (https://www.eqemulator.org/forums/showthread.php?t=42393)

t0neg0d 04-14-2019 01:55 PM

Bug with $npc->SaveGaurdSpot
 
I'm assuming this method sets the npc's return point once they are no longer attacking something?

Either way, once this method is called in perl or lua...

$npc->SaveGuardSpot();
$npc->SaveGuardSpot(1/0);

or

npc:SaveGuardSpot();
npc:SaveGuardSpot(1/0);

...the script will stop working.

Is there another way to stop an npc from returning to their spawn point? Or is this even the correct way of doing it?

demonstar55 04-14-2019 03:14 PM

Looks like you need to provide x, y, z, and heading (in that order)

t0neg0d 04-14-2019 03:51 PM

Quote:

Originally Posted by demonstar55 (Post 262146)
Looks like you need to provide x, y, z, and heading (in that order)

Thanks a ton. That did it!

cannon 04-15-2019 05:46 PM

Code
 
Can you post the code you used to add the x y z? Thanks.


All times are GMT -4. The time now is 08:02 AM.

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