Jump to content
  • 0
joelolopez

Script like this :>

Question

i need a script like this,

 

onpcdieevent

 

-is there any way to detect if you've been killed by a monster on "onpcdieevent"

 

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


- script Dead -1,{

OnPCDieEvent:

dispbottom "You have been killed by "+rid2name(killerrid)+".";

}

Link to comment
Share on other sites

sir i think there's a misunderstanding, im asking for a way to tell if wether you've been killed by a monster or not a monster(which is a player ofcourse) on onpcdieevent

Link to comment
Share on other sites

Hi, Joe.

-	script	Dead	-1,{

OnPCDieEvent:

dispbottom "You have been killed by a "+((getmonsterinfo(killerrid,0)=="Dummy")?"Player":"Monster")+".";

end;

}

I'm just going by what http://ea.dj-yhn.com/index.php?c=getmonsterinfo says I haven't actually tested this before so script is untested. Edited by Skorm
Link to comment
Share on other sites

Tell whether what monster kill you?

its kinda like that... script that tells wether if its monster or a player who killed you , it will just identify if a monster id or a player id

Hi, Joe.

-	script	Dead	-1,{
OnPCDieEvent:
dispbottom "You have been killed by a "+((getmonsterinfo(killerrid,0)=="Dummy")?"Player":"Monster")+".";
end;
}
I'm just going by what http://ea.dj-yhn.com/index.php?c=getmonsterinfo says I haven't actually tested this before so script is untested.

 

 

sir skorm heres my situation, im fixing this ghost pvp announcer script

the problem that i encountered here is when i im killed by a monster in a dungeon or field

my death counter increases lol

 

so im thinking of a solution for this problem

 

if i could only identify wether a monster or a player killed my character

 

i will set the condition if my killer id is a player +1 death

and if a monster id then death will not increase...

Edited by joelolopez
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...

Important Information

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