Quote:
Originally Posted by 0105653642
is that working for CE v2
|
By looking at the coding of this command you should already know ( If you looked at CoEmuV2 ) that it is not for it. Infact it is for LOTF...
EDIT* My friend edited this command and made it so you can do
/drop (ItemName) (Amount)
& if its not a "regular item" you HAVE to do /drop (ItemName) (Amount) (Quality)
look below i will show u an example
Code:
// Edited By Fail..
if (Splitter[0] == "/drop")
{
uint MoneyDrops = 0;
string ItemName = Splitter[1];
Ini ItemNames = new Ini(System.Windows.Forms.Application.StartupPath + @"\ItemNamesToId.ini");
uint ItemId = 0;
ItemId = uint.Parse(ItemNames.ReadValue("Items", ItemName));
if (ItemId >= 111303 && ItemId <= 160249 || ItemId >= 410003 && ItemId <= 580339 || ItemId >= 900300 && ItemId <= 900999)
{
byte Quality = 1;
string ItemQuality = Splitter[3];
if (ItemQuality == "One")
Quality = 1;
else if (ItemQuality == "Normal")
Quality = 5;
else if (ItemQuality == "Unique")
Quality = 7;
else if (ItemQuality == "Refined")
Quality = 6;
else if (ItemQuality == "Elite")
Quality = 8;
else if (ItemQuality == "Super")
Quality = 9;
else
Quality = (byte)Other.ItemQuality(ItemId);
ItemId = Other.ItemQualityChange(ItemId, Quality);
}
byte Repeat = byte.Parse(Splitter[2]);
for (int i = 0; i < Repeat; i++)
{
string Item = ItemId + "-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(MyChar.LocX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(MyChar.LocY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)MyChar.LocMap, MoneyDrops);
World.ItemDrops(item);
}
}
/drop DragonBall 5 <----- THATS A "REGULAR" ITEM
/drop ConquestArmor 5 Super <--------- THATS NOT
And thats how you use it...Credits go to kinshi for the dropping part and the i < i++ stuff..
Rest to Fail.