Please help when i try spawn monster it says "TestMob" how i change that
Printable View
Please help when i try spawn monster it says "TestMob" how i change that
Omfg, stop posting questions, learn how to code
Dude sthu
Virtue is correct, you're going to have to learn a little bit of C#. It just takes a bit of common sense to understand it.
In Client.cs:
Summary: Using the /spawn command, will spawn a monster with the mech ID of x, x being splitter[1] (ex: /spawn x). The monster is automatically set to spawn at your exact location on the map. Its name will be set to TestMob.Code:if (Splitter[0] == "/spawn")
{
int mech = int.Parse(Splitter[1]);
SingleMob mob = new SingleMob((short)MyChar.LocX, (short)MyChar.LocY, (short)MyChar.LocMap, 100, 100, 100, 100, (uint)General.Rand.Next(400000, 500000), "TestMob", mech, 135, 4, 0);
SendPacket(General.MyPackets.SpawnMob(mob));
}
You could simply change "TestMob" to Splitter[2].
And use the command like so: /spawn x y
y = Mob's Name.