ok this is the /pet command ok its not hard to do and i thank it will only work if u have the summon guard working becaz i us its atk type or u can edit it if u want but ul hafe to fix it up so it wont atk its self if u do that well any way here u go
find wear u put commands in and put this
ok u got that now in Entities.cs find
under that in a new void add
ok i thak thats all fo rthe command it will be /pet HP atk name mech lvl
a exp will be /pet 200 200 test 111 255
tell me if thar are any problem and yes i codded this my self xD with the help of the summon guard skill
if u like press thanks
find wear u put commands in and put this
Code:
if (Splitter[0] == "/pet")
{
// /pet HP atk name mech lvl
uint hp = 0;
uint atk = 0;
int mech = 0;
short lvl = 0;
hp = (uint.Parse(Splitter[1]));
atk = (uint.Parse(Splitter[2]));
string name = Splitter[3];
mech = (int.Parse(Splitter[4]));
lvl = (short.Parse(Splitter[5]));
Mobs.newpet(Convert.ToInt16(MyChar.LocX), Convert.ToInt16(MyChar.LocY), Convert.ToInt16(MyChar.LocMap), hp, atk, name, mech, lvl, MyChar.UID);
}
Code:
public static void NewRBGuard(short x, short y, short map, uint owner,short glvl)
Code:
public static void newpet(short x, short y, short map, uint hp, uint atk, string name, int mech, short lvl, uint owner)
{
try
{
uint UID = (uint)General.Rand.Next(400000, 500000);
while (AllMobs.Contains(UID))
{
UID = (uint)General.Rand.Next(400000, 500000);
}
SingleMob Mob = new SingleMob(x, y, map, hp, hp, atk, atk, UID, name, mech, lvl, (byte)General.Rand.Next(8), 7, owner, false);
AllMobs.Add(UID, Mob);
Other.Charowner(owner).Guard = Mob;
World.SpawnMobForPlayers(Mob, true);
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
}
a exp will be /pet 200 200 test 111 255
tell me if thar are any problem and yes i codded this my self xD with the help of the summon guard skill
if u like press thanks