[HELP] please

Results 1 to 4 of 4
  1. #1
    Account Upgraded | Title Enabled! DanielTaylor090 is offline
    MemberRank
    Jul 2008 Join Date
    in your C:// driveLocation
    286Posts

    [HELP] please

    Please help when i try spawn monster it says "TestMob" how i change that


  2. #2
    Proficient Member Virtue~ is offline
    MemberRank
    Jul 2008 Join Date
    181Posts

    Re: [HELP] please

    Omfg, stop posting questions, learn how to code

  3. #3
    Account Upgraded | Title Enabled! DanielTaylor090 is offline
    MemberRank
    Jul 2008 Join Date
    in your C:// driveLocation
    286Posts

    Re: [HELP] please

    Dude sthu

  4. #4
    Member Ograbme~ is offline
    MemberRank
    Jun 2008 Join Date
    53Posts

    Re: [HELP] please

    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:

    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));
                                            }
    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.

    You could simply change "TestMob" to Splitter[2].
    And use the command like so: /spawn x y
    y = Mob's Name.



Advertisement