Jump to content
  • 0

OnNPCKillEvent Question


Foob

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

Hi,

How to limit the OnNPCKillEent wherein only normal player can be rewarded. I have a script wherein when a monster dies it will drop a specific item using NPCKillEvent but would like to limit it for normal players.

Item will not drop if monster was killed by Homunculus or Pets, how to do this?

Regards,

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

if(getgroupid() > 0) end;

or

if(getgmlevel() > 0) end;

Same thing, only checks if an GM killed it or not. Not sure about homunculus or pets.

Edited by llchrisll
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

On 11/9/2017 at 11:16 PM, llchrisll said:

if(getgroupid() > 0) end;

or

if(getgmlevel() > 0) end;

Same thing, only checks if an GM killed it or not. Not sure about homunculus or pets.

I need pets hehe!

Link to comment
Share on other sites

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.

×
×
  • Create New...