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 01-21-2008, 11:55 AM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default Kiling NPC with a quest

Is there a way to KILL an NPC with a quest command?

Like quest::killself?
or perhaps set ist curent hp to 0?
or deal leathal damage?

in otherwords I need NPC to DIE as a result of event, with dieing animation, faction hits to anyone on its agro list, corpse fading animation etc (i know I can just depop them but thats not the same thing)

thanks =)
Reply With Quote
  #2  
Old 01-28-2008, 02:45 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

anyone? =)
Reply With Quote
  #3  
Old 01-28-2008, 03:51 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

I think you're looking for $npc->Kill().

Example:
Code:
sub EVENT_SAY {
	if ($text=~/kill yourself/i) {
		quest::say("As you wish, oh great one");
		$npc->Kill();
	}
}
Found here: QuestObjects (Wiki).

Something interesting about the quest system is that, basically, the quest:: commands are wrappers for the commands listed in the above Wiki article. For example, you can make an NPC say something using $npc->Say(), although that one in particular takes an additional option (format).
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #4  
Old 01-28-2008, 04:27 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

ahh thank you so much!
i will try it out. I was just over that list of comands you mentioned, unfortunately looking at that list and knowing how to use it is 2 diffirent things =)

speicaly when it comes to special "format" set up, as you said =)

there is another thing there which perhaps you could help me with.
I am looking at:

GetEquipmentColor(material_slot)
GetEquipmentMaterial(material_slot)
GetEquipment(material_slot)


could you tell me to properly use this?
I read that on one of the server they got npcs customly dressed by randomly assigning them material of armor by slot. I would like to try to do the same thing, just not sure how to write up this script.
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 04:59 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