Jump to content
  • 0
Hadeszeus

OnPCDieEvent check if killed by MOBS

Question

8 answers to this question

Recommended Posts

  • 0

 

OnPCDieEvent:
 
This special label triggers when a player dies. The variable 'killerrid' 
is set to the ID of the killer.

 

killerrid < 1500000 (min char_id)

Edited by evilpuncker

Share this post


Link to post
Share on other sites
  • 0

 

 

OnPCDieEvent:
 
This special label triggers when a player dies. The variable 'killerrid' 
is set to the ID of the killer.

 

killerrid < 1500000 (min char_id)

 

Dunno why it's not working.. 

 

I tried if 

OnPCDieEvent:
if ( killerrid < 1500000 ) {
 do;
}
else
 
 
and OnPCDieEvent:
if ( killerrid < 150000 ) {
 do;
}
else
 
 
EDITED:
 
Solved.
 
killerrid >= 110000000
Edited by Hadeszeus

Share this post


Link to post
Share on other sites
  • 0

why not do a test ?

 

OnPCDieEvent:  // display killerid 

 

and you will see what killerid is really or the value, in that way you can easily do something on your script

 

its like reversing the process .,.. check the value first then once you have the value do the correct conditional statement

 

you will be amazed ...

 

 

 

 

OnPCDieEvent:
 
This special label triggers when a player dies. The variable 'killerrid'
is set to the ID of the killer.

Share this post


Link to post
Share on other sites
  • 0

OnPCDieEvent:
  if ( killerrid >= 110000000  ) { //--->killed by a mob

...........................

}

  end;

 

 

if(killerrid==getcharid(3))----->killed by him/her self (ex: Grand Cross)

 

if(!killerrid) ----->eat poison potion

Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

OnPCDieEvent:

  if ( killerrid >= 110000000  ) {

...........................

}

  end;

 

 

if(killerrid==getcharid(3))----->killed by him/her self

 

if(!killerrid) ----->eat poison potion

 

Thanks for this

 

if(killerrid==getcharid(3))----->killed by him/her self

if(!killerrid) ----->eat poison potion

 

 

I was able to solved it using killerrid >= 110000000

 

 

Thanks everyone!

Edited by Hadeszeus

Share this post


Link to post
Share on other sites
  • 0

OnPCDieEvent:

  if ( killerrid >= 110000000  ) { //--->killed by a mob

...........................

}

  end;

 

 

if(killerrid==getcharid(3))----->killed by him/her self (ex: Grand Cross)

 

if(!killerrid) ----->eat poison potion

Ohh, always I thought, killerrid will return mobid.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.