npcid command
currently $mobid returns an entityID (changes each spawn cycle, since its a track of current spawns i believe) instead of NPCID.
Is there a command variable to identify the npcid of a mob for the purpose of effects like quest::castspell(npcid, spell id). I currently have npcs that are requiring a conditional casting, but with the number of them created: I was rather hoping to find a variable instead of making a new pl file for each npc. Adding the spell to their spelllist in hopes they cast it at the proper times isnt a real option due to the nature of the spell's intent. reason behind it: Im trying to get an unconscious npc to cast a long duration Feign Death upon spawning and quest::doanim(16) just doesnt seem to work. (I believe that is due to the emotes currently being bugged on 0.7.0) |
The only thing I see in the quest*.* code seems to be about globals. As tedious as this may sound, you might try scrounging through the existing quest pl files for events that specifically id a spawned mob in order to do something else. Pretty sure all I've ever seen is entityid tho... might need to make a new quest command.
|
if you want the npc to spawn lying down you can do this..
Code:
sub EVENT_SPAWN |
Quote:
The npcid thing came later... Hmm, looking back over the text before I post: Quote:
Many thanks for the coding hand, Cripp! |
ok, I did a little experimenting with this:
useing: Code:
sub EVENT_SPAWN { It appears only 5 appearances are allowed by this command: 0. default/ standing 1. sitting 2. ducked 3. dead 4. kneeling I didnt test past this, as I was seeking the Death form, so not sure if it continues on further (sorry, i should have thought of that) Thanks again for the insight, as it was the $npc->SetAppearance() line that I was totally missing, and never would have found it without ya. :) |
please wiki this, else it will be lost over time.
|
I'm slow, but steady: http://www.eqemulator.net/wiki/wikka...=SetAppearance
Not sure how to set it for linking back to other areas yet, unless that is automatic. Will read up more on that later. |
All times are GMT -4. The time now is 07:44 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.