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
Then i inserted this
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?
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);
}
}
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);
}
}