Jump to content
  • 0

Error when my mob is killed by another mob.


Question

Posted

I created a script that spawns mobs on a map and it executes a script upon there death. It works fine when a player kills them, but I need a command to detects when a non-player attached mob (bomb poring) kills the mob. Otherwise I get [Error]: script:op_2: invalid data for operator C_EQ. I just want it to execute an action when a mob is killed by the bombs also.

Peopleperson49

OnMobKill:
if(getcharid(2)==0) { }
if($GName==getcharid(2)) { }
if($GName!=getcharid(2)) { }
end;

3 answers to this question

Recommended Posts

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...