On Kill Trigger?

09/08/2010 02:56 C#Nooby#1
How would i go about adding a on kill trigger?

I've figured out on death, but on kill I can't seem to find out how.

I was going for something like this,

Code:
if (Loc.Map == 700) // Event Map
                {
                    if (MyClient.MyChar.EventKills == 1)
                       MyClient.AddSend(Packets.ChatMessage(2005, "[Event]", "All", MyClient.MyChar.Name + " has defeated a player in the map / +50 cps]", 2005, 0));
                    MyClient.MyChar.Teleport(1002, 430, 380);
                }
If anyone could explain where i would put this, & what exactly is wrong with the code, i'd be greatful.(:
09/08/2010 03:08 Arcо#2
What do you mean a kill trigger?
And for NewestCOServer I assume.
09/08/2010 03:18 C#Nooby#3
Quote:
Originally Posted by .Arco View Post
What do you mean a kill trigger?
And for NewestCOServer I assume.
Yea tanels source.

Hm, onkill as in.. playerkill. Simple as that xP

Like, On kill gain +5 cps

On death lose -2 cps, // I figured out how to do on death

Juss not on kill's.
09/08/2010 04:23 Arcо#4
Would assume somewhere in the takeattack void of character.cs