EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Pull template. (https://www.eqemulator.org/forums/showthread.php?t=43180)

ahamilton634 02-08-2021 04:20 PM

Pull template.
 
This is probably a dumb question, but I'm implementing a system where you go to your guildmaster to learn spells. I was wondering if there was a way I could create a master script, and then have that script be pulled by the script for each npc I wish to assign it to. So have one script maybe global/default_druid.pl get pulled by gfaydark/Uleen_Laughingwater.pl. The reason I want to do it this way instead of copying and pasting the entire script into each NPC quest, is because I'd like to make changes to this later that would then affect all of the NPCs pulling this master quest.
It's probably stupid simple but I couldn't find the answer with cursory Googling.
Thanks!

Vanderdoody 08-13-2021 04:17 PM

Not to necro, but did anyone ever figure it out? This would be a cool idea.

Huppy 08-13-2021 05:03 PM

Well, I wouldn't be the energetic one for something that deep as the OP's plan, but, it could easily be done by spawning an NPC by each of the caster classes home GM (as an example). Those npc's, all with the same name (multi-spawned), like, GM_Spell_Teacher. Then put the master script (under that name), in global, using if($class eq "Druid"), or if($class eq "Cleric"), and so on, and so on. That's just my brain on coffee..... ;)

ahamilton634 09-23-2021 10:37 PM

That's a good suggestion. I've done that for other types of NPCs like the bot unlocker, but since I have spells scribed by an NPC, I repurposed the spell vendors to fill these roles. So these are all existing NPCs of different names. It'd be preferable to me to just have a master script be pulled.


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

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