Game-Elites
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Game Elites is offering you all kind of Hacks, Bots, Tips and Tools.
 
HomeLatest imagesSearchRegisterLog in

 

 Commands Code

Go down 
AuthorMessage
DiegoThe
Guest




Commands Code Empty
PostSubject: Commands Code   Commands Code EmptySat May 09, 2009 6:02 pm

This is NOT for LOTF! This is for basic C# sources.

Open the .cs called Commands or Client if that is correct.
Find all the other commands and post this!

Quote :
case "@item": // @item id plus bless enchant s1 s2
{
IConquerItem item = new ItemDataPacket(true);
item.UID = ItemDataPacket.NextItemUID;
item.ID = uint.Parse(args[1]);
if (args.Length > 2)
{
item.Plus = byte.Parse(args[2]);
if (args.Length > 3)
{
item.Bless = byte.Parse(args[3]);
if (args.Length > 4)
{
item.Enchant = byte.Parse(args[4]);
if (args.Length > 5)
{
item.SocketOne = byte.Parse(args[5]);
if (args.Length > 6)
{
item.SocketTwo = byte.Parse(args[6]);
}
}
}
}
}
Client.AddInventory(item);
break;
}

Then after that you can put:

Quote :

case "@scroll":
{
switch (args[1].ToLower())
{
case "tc":
Client.Teleport(1002, 431, 379);
break;
case "pc":
Client.Teleport(1011, 190, 271);
break;
case "am":
Client.Teleport(1020, 567, 576);
break;
case "dc":
Client.Teleport(1000, 500, 650);
break;
case "bi":
Client.Teleport(1015, 723, 573);
break;
case "ma":
Client.Teleport(1036, 200, 200);
break;
case "arena":
Client.Teleport(1005, 52, 69);
break;
}
break;
}
}
}

I know I quoted it it looks better cuz the code makes it all ugly so you may have to indent.
Back to top Go down
 
Commands Code
Back to top 
Page 1 of 1
 Similar topics
-
» Basic Commands
» [Release]Console Commands
» How To Code a Lotf NPC And the Parts

Permissions in this forum:You cannot reply to topics in this forum
Game-Elites :: Conquer Online 2 :: CO2 Programming-
Jump to: