Quote:
Originally Posted by Pete1990
Not really im sorry  im havent really done anything like this before im still learning i read guides but im like a hands on person lol. can u make like one so i can take a look at it and then do it?
|
Well Here it goes (No VS on PC , using a notepad)
Well the first code is just taken outta my head , cause i onno if u use ur own source or w.e so Heres 2 examples how you can do it.
Code:
if (Struct.Maps.ChaosTactic && CalculateChanceSucces = 10)
string DroppedItem = "712345-0-0-0-0-0-0-0-0"
SpawnItem();
Well and heres the LOTF's one.
Code:
if(Map == Well lets say the ID of the moonbox's map && Other.ChanceSucces(10))
{
string Item = "Token's ID-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
}