Little help here

08/09/2009 00:29 hunterman01#1
Ok so i am sorta making like a hell map and i want it to say as a system message when you kill satan or any other bosses

This is how i went about doing this I kinda did it like this

First i made it where it drops a exempt token when he dies

Code:
if (Name == "Satan")
                    {
                            if (Other.ChanceSuccess(100))
                            {
                                string Item = "723701-0-0-0-0-0";
                                DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                                World.ItemDrops(item);
                            }
                     }
Then i inserted this
Code:
if (Name == "Satan")
                    {
                            if (Other.ChanceSuccess(100))
                            {
                                string Item = "723701-0-0-0-0-0";
                                DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
                                [COLOR="Red"]World.SendMsgToAll(MyChar.Name + "Has Killed Satan!", "SYSTEM", 2011);[/COLOR]                                World.ItemDrops(item);
                            }
                    }
And it doesnt happen and i get a error like when i kill satan The error has something to do with attacking not even in the same .cs file so anyone no?
08/09/2009 00:35 CoAttack#2
you probably dont have MyChar declared or something ><
08/09/2009 00:36 hunterman01#3
Nope i do

Code:
public Character MyChar;
08/09/2009 00:42 CoAttack#4
your not allowed though :D it wont allow it in there, i tried here same thing ahppened
08/09/2009 01:00 hunterman01#5
Bah so i cant announce when satan dies : /
08/09/2009 04:30 Jay1029#6
You should be able too. I don't have a clue how to fix your problem. However I receive the same error when I kill a certain monster in game. Something to do with attacking or w.e. So idk your the system msg has anything to do with your error. It's got to be something else.
Good luck bro =p
08/09/2009 05:34 CoAttack#7
Your not allowed to use anything with MyChar in Entities.cs i actualyl got it working but then i got error because of me trying to reattack it >< so no! xD .. you could possibly do like when this mob spawns make it spawn once every w.e like if dis starts make it spawn and when it dies close the spawn and whoever has the HORN .. wins like at end of dis check who has the darkhorn when all leaving if they have it they win ... :D
08/09/2009 06:10 n0mansland#8
Why would you use MyChar.Name? Wouldn't it just say a different name for each person? Haven't tested or anything just wondering.. Why not use Char.Name or something..

Mind showing the error?