[Help] with a WorldMsg code

06/15/2010 15:11 nookie <3#1
hello,

i tryed to code something that if i kill a mob called "DarkLord" then i will that there appears a world message like "Playername" has killed the "DarkLord" the "1" time.

ok now thats my code and if i kill the mob namen DarkLord i dont get a worldmsg, would be nice if someone could help me

Code:
if (this.Name == "DarkLord")
{
Target.Killed += 1;
World.SendMsgToAll("Wow! " + Target.Name + " Has Killed the DarkLord " + Target.Killed.ToString() + " Times!", "Server", 2011);
}
06/15/2010 15:27 xStylo#2
is there a difeniation on this?
else just use Name.
Also it would help if u said wich source u used :)
And make sure u put it in the right place :)
06/15/2010 15:56 nookie <3#3
I already tryed it with Name only but it isnt working...

im working with 5017
06/15/2010 16:07 xStylo#4
do you put it the right place?
under where mob is dead?
06/15/2010 16:34 nookie <3#5
Quote:
Originally Posted by xStylo View Post
do you put it the right place?
under where mob is dead?
dont really know what u mean o.O
06/15/2010 17:57 xStylo#6
where the void for a mob is dying.
did you put it there? :D
06/15/2010 18:16 nookie <3#7
Quote:
Originally Posted by xStylo View Post
where the void for a mob is dying.
did you put it there? :D
not really lol
06/15/2010 18:30 xStylo#8
u have to ;D
06/15/2010 18:36 nookie <3#9
but idk how im not the best at coding :P
06/15/2010 23:04 xStylo#10
is in entities.cs right?
06/15/2010 23:09 nookie <3#11
Quote:
Originally Posted by xStylo View Post
is in entities.cs right?
my code? yes
06/15/2010 23:26 xStylo#12
fuck, I dont remember the 5017 source.
Could you try paste out the whole code where it is? :D
06/15/2010 23:44 nookie <3#13
that is the whole code^^ there where the drop codes for the mobs are