Spawning a corpse
Hey all,
I hope I have a easy question. Basically what I want to do is spawn a corpse that when hailed depops and gives you a quest item. I know how to do the quest item/depop, but not sure how to spawn a "corpse". Not sure if this has to be scripted or if there is a DB way to do it. Thanks in advance for your help, and if this is in the wrong forum I apologize. :) |
i don't think you can spawn an actual corpse...
but what you could do is spawn npc with a name like "soandso' corpse" and give him laying down animation |
Create the NPC in the database with all the details you want including the race, sex, and size. Be sure to give it the 'ABH' special attack flags, so that it's immune to melee, magic, and won't ever aggro. Make the name in the database as "Soandso's corpse".
Next, write up your quest script for the depop and whatever other conversation you want to happen. Add the following code. Code:
sub EVENT_SPAWN { |
Thanks so much for the help guys, I will give this a try.
Edit: Oh, is there somewhere I can see what each number for the SetAppearance function does or do I just need to play with it? |
I don't know if there is a good list of them anywhere, but you can always use this little script I wrote to check each one manually:
Code:
sub EVENT_SAY { |
Thanks Trev, you are my hero.
|
Be sure you have emotes enabled in your EQ configuration or you won't see most of them once you get into the 30s.
|
Quote:
|
To test animations do we just need to use SetAnimation instead of SetAppearance?
|
You can use the command #doanim <number> to test out animations. Or, you can use that quest script and use:
DoAnim(<animnum>) I had already made a list of animations for some work I was doing in a zone, so I just went and made a new page in the wiki for it here: http://www.eqemulator.net/wiki/wikka...AnimationsList That might be useful to you, but I made that list using a Drakkin, so I am not sure how other races might show up with the same animations. |
Bah, you're absolutely right. I was thinking of the animations, not the appearances. I was trying to correct a quest script last week and realized after about an hour that I didn't have emotes on, so there was no hope of getting the NPC to make the right animation.
Great to see that list compiled in the wiki, you're so on the ball at not only figuring things out, but at documenting them well. Great work as always =) |
All times are GMT -4. The time now is 09:08 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.