Need help on where to put this script.
I am making a spell that summons eight temporary pets that fight for the summoner for a limited time. When these temp pets are summoned their features and race are randomized. Is this possible? Where would the .pl files go so it works with every zone? Templates?
Kind of confused on this one, but I think I can figure everything else out once somebody gets me in the right direction. Thanks. |
You would save it in your quest/spells folder and name the file <spellid>.pl. So, if the spell is 12345, it would be 12345.pl as the name. Here is an example of one of my spell scripts so you can get an idea of how to do them:
Code:
# Script for setting a cap on Growth spells |
Thank you very much. This helped a ton.
|
Figured it out. It was actually easier than I thought and all I had to do was put the name of the npc file from the spell into the quest/templates folder and when that npc is spawned by the temporary spell each one of those npcs change to something random.
Code:
#Put in eqemu/quests/templates folder. Name it NPCname.pl Question: What would I need to add to this to get all of these NPC's to change to the right size? I tried the line of If $randomrace == X but they don't seem to work. |
LOL, the script example I gave above just happens to be related to handling player race sizes. So, you should be able to use the array from that script and set the size of the NPC with something like this:
Code:
%RaceSizes = ( |
Worked like a charm :P Alright, so I got random races and sizes aced. Now I just need to learn how to get their full armor model working on spawn. Right now, they spawn with their mail chest piece and that's it.
|
Check out this thread for examples of how to do that and more:
http://www.eqemulator.org/forums/showthread.php?t=33511 |
All times are GMT -4. The time now is 07:38 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.