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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2013, 08:25 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

Do you just want it to lay there like a trampled slave? If so, code below:

Link to guide here: NPC Appearances

Code:
sub EVENT_SPAWN 
{ 
	quest::settimer("dead",1);
} 

sub EVENT_TIMER 
{ 
	if($timer = "dead") 
	{ 
		$npc->SetAppearance(3); 
		quest::stoptimer("dead");
	}
}

Last edited by Zamthos; 02-03-2013 at 08:30 PM.. Reason: Posted link to guide.
Reply With Quote
  #2  
Old 02-03-2013, 08:30 PM
jdoran
Hill Giant
 
Join Date: Jul 2012
Posts: 212
Default

Thanks, but I'm wondering if there is a way to set this in the database. I have a Perl solution already, I just don't want to create Perl scripts for a bunch of new mobs just so they can be dead.

A lot of appearance-related information is already kept, I am figuring this must be as well.
Reply With Quote
  #3  
Old 02-03-2013, 08:39 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

i don't think it's stored in the database anywhere. otherwise, there wouldn't be scripts that set appearance periodically like in tutorialb.

(maybe this would be something that lua would be ideal for?)

regardless, you don't have to set individual scripts for every npc you want to change appearance like this. just use the zone's default.pl or the global_npc.pl in the templates folder.
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote
Reply


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 03:15 PM.


 

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