EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Spawning a mob with player name. (https://www.eqemulator.org/forums/showthread.php?t=33510)

Shamanistik08 05-11-2011 12:59 AM

Spawning a mob with player name.
 
Would like to spawn a nemesis for a quest.

It needs to have the player name. being aggro so faction 79. and depop if combat state is 0 for more than 1 min or so.

Question is : is this possible?

trevius 05-11-2011 02:33 AM

Short answer is yes.

You can just use $npc->TempName("New_name") for setting the name. You will need to get the name of the player first though, but that all depends on how you want to handle that part. Then use a timer from EVENT_COMBAT to set the depop timer if combat state is 0.

If you are trying to clone another character completely, that is a bit more work. Lucky for you, I have already written plugins for handling cloning and just posted them here:

http://www.eqemulator.org/forums/sho...d.php?p=199712

Shamanistik08 05-11-2011 10:56 PM

Here was my idea :

Making a couple types of skeletons (short for gnomes, dwarves.., big for barabarain, Iksar for iksar, etc..) with faction kos, and set damage, no need to complicate.

creating a player.pl script.

On sub even death, asking to spawn a mob according to player race, and name it the name of the player.


So getting the skeleton to spawn with the right size shouldn't be a problem with the "if race". but would really love that people of the group see the name of their fallen comrade on the mob. And I have no idea I could do that.

How I can tell the spawned skeleton that he need a particular name, how I "save" the name, and how I send it to the skeleton.


All times are GMT -4. The time now is 09:45 AM.

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