EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Giving weapons to chanter pets (https://www.eqemulator.org/forums/showthread.php?t=28628)

ChaosSlayerZ 06-19-2009 11:45 AM

Giving weapons to chanter pets
 
I have borrowed this code from another thread in order to arm chanter pets with actual weapons.

Code:

sub EVENT_SPAWN
{
        quest::settimer("tmr1", 1);
}

sub EVENT_TIMER
        {       
        if ($timer eq "tmr1")
        {
        quest::stoptimer("tmr1");
        quest::addloot(1025,1);
        quest::addloot(2801,1);
        quest::emote(" arms itself.");
        quest::doanim(9);

        }

}

I named the file 500.pl (the id of first level chanter pet). If I place it folder for any actual zone - it works fine in THAT zone.

But how do I make it so it works in ALl zones by default?
I have tried:

-placing it into Templates folder
-placing it into Plugins folder outside
-placing it the root of Quests folder

no effect.

could someone advise?
thanks!

Dibalamin 06-19-2009 01:15 PM

Should go in the templates folder.

if you are running the current version of the source, you should be able to pile that under the sub EVENT_SPAWN now after Congdar's fix.

Code:

sub EVENT_SPAWN
        {       
       
        quest::addloot(1025,1);
        quest::addloot(2801,1);
        quest::emote(" arms itself.");
        quest::doanim(9);

        }


Dibalamin 06-19-2009 01:17 PM

And I named ours Animation1, Animation2, etc

ChaosSlayerZ 06-19-2009 01:34 PM

well i tried placing it into templates (inside quests right?) no effect :confused:

Capheus 06-19-2009 05:07 PM

I have found that you cannot use #####.pl for templates. I have a bunch of scripts on my bot and I used 29700010.pl and it didn't work. I had use my bot name for it Aimia.pl

ChaosSlayerZ 06-19-2009 06:27 PM

hmm intersting. perhaps then I will go with the pet name instead and see how it works

ChaosSlayerZ 06-19-2009 07:36 PM

I got it. It works with the text names just fine. Thanks everyone!


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

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