Jump to content
  • 0

OnPCDieEvent: - Monster Only?


Question

Posted (edited)

Hello,

 

I'm creating a system where if a player dies, they are auto hidden and must find the spot they died on to carry on.

 

World of Warcraft Style.

 

Is it possible to determine how you have been killed?

 

I only want this to trigger if killed by a monster and not trigger if they was killed by another player in PvP, BG, WoE etc

 

OnPCDieEvent:
 
This is for any death isn't it? if their another trigger to use?
 
i was thinking of using something like;
 
OnPCDieEvent:
            if map="pvp1,pvp2,woe1,woe2" end;
            <else script here>
 
Would this work?
 
Thanks in advanced.
Edited by Total

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

Just adding to @Nitrous's answer here...

-	script	Mob Death	-1,{
OnPCDieEvent:
	if( killerrid > 100000000 ) {
		getunitdata( killerrid, .@killerrid );
		if( getarraysize(.@killerrid) == 49 )
			dispbottom "You were killed by "+getmonsterinfo( .@killerrid[13], MOB_NAME )+".";
	}
}

 

Edited by Skorm

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