Jump to content
  • 0

OnNPC Kill + Summon monster?


Question

7 answers to this question

Recommended Posts

Posted

Like already discussed in this area, you should use the monster command and an additional label to be triggered when the monster dies if you only want to trigger the death of a few certain monsters.

OnNPCKillEvent should only be used if you want a general label which is triggered whenever any monster on the server is killed. You could want to use this, for instance, if you want to count all the monsters a player kills, but not if you want to trigger the death of certain, few monsters.

The resource difference might not be that noticable for all cases, since we are talking about a very short time duration, but it still exists and if you run many unoptimised scripts, you will eventually notice a different.

Posted

 

OnNPCKillEvent:
if( killedrid == 1002 ){
    monster "this",-1,-1,"Another mob",1002,1,"";
}
end;

 

what does the  -1, -1 mean?

 

current coordinate .....

Posted (edited)

 

 

OnNPCKillEvent:
if( killedrid == 1002 ){
    monster "this",-1,-1,"Another mob",1002,1,"";
}
end;

 

what does the  -1, -1 mean?

 

current coordinate .....

Thanks, get a new good knowledge /no1

 

I think  it  can also be done with this type  of mob spawn, if only  to kill and summon a mob

 

<map name>,<x1>,<y1>,<x2>,<y2>%TAB%monster%TAB%<monster name>%TAB%<mob id>,<amount>,<delay1>,<delay2>,<event>
Edited by QQfoolsorellina

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...