View Single Post
  #3  
Old 08-27-2008, 04:56 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Quest Tutorial Wiki Page:
http://www.eqemulator.net/wiki/wikka...=QuestTutorial

Quest Objects Wiki Page:
http://www.eqemulator.net/wiki/wikka...a=QuestObjects

The only subs you will need should be:
sub EVENT_DEATH
sub EVENT_SIGNAL

And you will probably want to use a signal for the dead NPC to send a signal to the boss. Then, when the boss gets the signal, they remove 100 hps from themselves.
Code:
quest::signal(npc_id, [wait]) - cause an EVENT_SIGNAL on all mobs in the zone with this NPC type, with $signalid = 0. wait is an optional time to wait in ms before sending signal.
quest::signalwith(npc_id,signal_id, [wait]) - same as signal(), except it sets $signal to the supplied signal_id. wait is an optional time to wait in ms before sending signal.

The only tricky part is doing the actual set amount of damage. You might be able to use this command:
Code:
$npc->Damage(from, damage, spell_id, attack_skill, avoidable= true, buffslot= -1, iBuffTic= false);
Though I have no idea what settings to put in there.

But, you might also be able to use something simpler like:
Code:
$mob->SetHP($mob->GetHP() - 100);
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote