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

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

Reply
 
Thread Tools Display Modes
  #16  
Old 01-24-2014, 01:26 AM
Township EQ
Hill Giant
 
Join Date: Sep 2013
Posts: 118
Default

Code:
sub EVENT_SPAWN	{ 
		$npc->SetAppearance(3);
		$npc->SetBodyType(11);
		$npc->TempName("");
}

sub EVENT_COMBAT {
	if($combat_state == 1) {
		$npc->TempName("a_crypt_skeleton");
		$npc->SetBodyType(3);
		quest::me("a pile of bones springs to life.");
	}
}
This is the entire script that I wrote for an NPC with a skeleton model. The actual name of the NPC is pileofbones. It tempnames to nothing and shows the skeleton "sitting" or as a pile of bones.. and it's on an aggressive faction. As soon as it goes into combat it stands up.. sets its bodytype to undead and tempnames to the name you see there.

I've never used special attack flags to make anything untargetable. I've just always used bodytype 11. Perhaps you can copy an paste this whole thing and see if it works? I recommend putting it on faction 623. As far as the SetTargetable thing.. try 0 for false.. 1 for true.
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 07:02 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3