[QUESTIONS] Dif maps but same mobs drops

07/04/2009 02:59 Pete1990#1
Ok i wanna make it where they are same mobs but will drop dif things its for my moonbox quest:) can anyone give me an ideal how to start this should i use foreach ?
07/04/2009 03:07 damianpesta#2
Quote:
Originally Posted by Pete1990 View Post
Ok i wanna make it where they are same mobs but will drop dif things its for my moonbox quest:) can anyone give me an ideal how to start this should i use foreach ?
Well the Moonbox map's ID's are diffrent I mean every single tactic got diffrent ID of a Map , you can just do
if(Struct.Maps.ChaosTactic)
drop bla bla bla ... you get me right?
07/04/2009 03:15 Pete1990#3
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?
07/04/2009 04:23 damianpesta#4
Quote:
Originally Posted by Pete1990 View Post
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);
                    }
07/04/2009 04:39 Pete1990#5
Thanks that helped me alot:)
07/04/2009 04:49 n0mansland#6
I was gonna suggest that but I don't code LOTF and it's coded different but w/e glad to hear you got it working
07/04/2009 05:02 Pete1990#7
About time to see some nice people around here:D