|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Development::Feature Requests Post suggestions/feature requests here. |

08-06-2007, 10:39 AM
|
Sarnak
|
|
Join Date: Jul 2007
Posts: 79
|
|
Ok i found the quest::setnexthpevent but I'm not sure how to set the correct percentage. I tried quest::setnexthpevent(80) for 80% and also tried quest::setnexthpevent(1480200) because thats 80% of his max health and neither worked. Heres the .pl file right now.
sub EVENT_DEATH
{
quest::spawn(2700027,0,0,-532.4,-1920.9,15.6);
}
sub EVENT_HP
{
quest::setnexthpevent(1480200){
quest::spawn(2700036,0,0,-532.4,-1920.9,15.6);
quest::spawn(2700036,0,0,-540.8,-1902.8,15.6);
quest::spawn(2700036,0,0,-569.5,-1895.7,15.6);
quest::spawn(2700036,0,0,-582.0,-1913.3,16.5);
}
}
|
 |
|
 |

08-06-2007, 01:35 PM
|
Sarnak
|
|
Join Date: Aug 2006
Posts: 60
|
|
Quote:
Originally Posted by lanileb
Ok i found the quest::setnexthpevent but I'm not sure how to set the correct percentage. I tried quest::setnexthpevent(80) for 80% and also tried quest::setnexthpevent(1480200) because thats 80% of his max health and neither worked. Heres the .pl file right now.
sub EVENT_DEATH
{
quest::spawn(2700027,0,0,-532.4,-1920.9,15.6);
}
sub EVENT_HP
{
quest::setnexthpevent(1480200){
quest::spawn(2700036,0,0,-532.4,-1920.9,15.6);
quest::spawn(2700036,0,0,-540.8,-1902.8,15.6);
quest::spawn(2700036,0,0,-569.5,-1895.7,15.6);
quest::spawn(2700036,0,0,-582.0,-1913.3,16.5);
}
}
|
There are a few examples in the quest q and a section.
Would do this:
Code:
sub EVENT_SPAWN {
quest::setnexthpevent(80);
}
sub EVENT_AGGRO
{
quest::stoptimer(1);
}
sub EVENT_SLAY {
quest::settimer(1,20);
}
sub EVENT_TIMER {
if ($timer == 1) {
quest::stoptimer(1);
quest::signalwith(2700036,1,0000);
}
}
sub EVENT_HP
{
if($hpevent == 80) {
quest::spawn(2700036,0,0,-532.4,-1920.9,15.6);
quest::spawn(2700036,0,0,-540.8,-1902.8,15.6);
quest::spawn(2700036,0,0,-569.5,-1895.7,15.6);
quest::spawn(2700036,0,0,-582.0,-1913.3,16.5);
}
}
sub EVENT_DEATH
{
quest::spawn(2700027,0,0,-532.4,-1920.9,15.6);
}
You can ignore my timer, event aggro and event slay. They're just for controlling add despawn. I'd add this for your adds 2700036.pl:
Code:
sub EVENT_SIGNAL {
if ($signal == 1) {
quest::depop();
}
}
|
 |
|
 |

08-06-2007, 01:38 PM
|
Hill Giant
|
|
Join Date: Oct 2006
Posts: 248
|
|
add:
sub EVENT_SPAWN
{
#sets the HP event signal for 80% health
quest::setnexthpevent(80);
}
== sfisque
ps: lol striat posted just before me.
|

08-06-2007, 01:50 PM
|
Sarnak
|
|
Join Date: Jul 2007
Posts: 79
|
|
Awesome thank you so much for that script, except the despawn doesn't seem to work properly. I'm gonna try writing my own right now and I'll let ya know how it turns out.
|

08-06-2007, 02:00 PM
|
Sarnak
|
|
Join Date: Jul 2007
Posts: 79
|
|
Ahh I didn't notice the sub EVENT_SIGNAL goes into 2700036.pl I put into 25, one second and I'll try that
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 02:26 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |