Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 09-08-2009, 11:09 AM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

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 {
 quest::settimer(1,1);
}

sub EVENT_TIMER {
 if($timer eq "1") {
  $npc->SetAppearance(1);
  quest::stoptimer(1);
 }
}
If you already have code in the EVENT_SPAWN and EVENT_TIMER blocks, make sure to merge the code in rather than maintaining two separate blocks of the same type. This is the same sort of code that currently puts the Sleeper to sleep (laying down), it should give you a corpse well enough.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:59 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3