Using CoEmu Im trying to get the TombBats to drop certain items. I have no clue how to do this. Any help would be excellant.
heres how you would do it in lotfQuote:
Using CoEmu Im trying to get the TombBats to drop certain items. I have no clue how to do this. Any help would be excellant.
if (Name == "TombBat")
if (Other.ChanceSuccess(10))
{
string Item = "ITEMID-0-0-0-0-0";
if (Other.ChanceSuccess(10))
Item = "ITEMID-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);
}
You can edit it in monster.cs but it's very roughly done.Quote:
guys that doesnt work in CoEmu :P... it works with actions somehow.
if(Info.Name == "MonsterName")
{
IG.ItemID = itemid;
}
if(Info.Name == "MonsterName")
{if(Calculation.PercentSuccess(20))
IG.ItemID = itemid;
else if(Calculation.PercentSuccess(20))
IG.ItemID = otheritemid;
}
ooh nice job proQuote:
You can edit it in monster.cs but it's very roughly done.
search for
if(Calculation.PercentSuccess(3.7) && Level > 22)
The section under that has the drop calculations for mets/db's.
To have specific monsters drop something you can use
You could add more items I believe throughCode:if(Info.Name == "MonsterName") { IG.ItemID = itemid; }
Code:if(Info.Name == "MonsterName") {if(Calculation.PercentSuccess(20)) IG.ItemID = itemid; else if(Calculation.PercentSuccess(20)) IG.ItemID = otheritemid; }
Just testing the code currently and we tested it for TombBats and it's having 2 of the items added drop... so it seems to be working.
I'm sure there are much better ways to do it but this seems to be working :S, next I need to get that working with a variable to check if player has a certain quest activated or not... Not tried that yet :P
are you good at codingQuote:
Thanks, I try :P
For reference: all I did was looked up guard names and how they distinguish them from normal mobs... I noticed it uses the if(Info.Name == "MonsterName")
cmd so I used it where the drop rates were. Not complicated lol.
I am just learning coding as a project. I'll add your msn but don't expect a huge amount of help. I'm very very busy with my server lol.Quote:
are you good at coding
if so add my msn
[Only registered and activated users can see links. Click Here To Register...]
LOL Why did you have to release this :(. Now there gonna take out ideas. Now if they take it I BLAME You. I think i got it to drop only when the quest if activated..Quote:
You can edit it in monster.cs but it's very roughly done.
search for
if(Calculation.PercentSuccess(3.7) && Level > 22)
The section under that has the drop calculations for mets/db's.
To have specific monsters drop something you can use
You could add more items I believe throughCode:if(Info.Name == "MonsterName") { IG.ItemID = itemid; }
Code:if(Info.Name == "MonsterName") {if(Calculation.PercentSuccess(20)) IG.ItemID = itemid; else if(Calculation.PercentSuccess(20)) IG.ItemID = otheritemid; }
Just testing the code currently and we tested it for TombBats and it's having 2 of the items added drop... so it seems to be working.
I'm sure there are much better ways to do it but this seems to be working :S, next I need to get that working with a variable to check if player has a certain quest activated or not... Not tried that yet :P
Awww srry ^^Quote:
LOL Why did you have to release this :(. Now there gonna take out ideas. Now if they take it I BLAME You. I think i got it to drop only when the quest if activated..
Maybe?Quote:
Awww srry ^^
It's just a basic example. Most of the nubs here couldn't code a quest to save their life even with this so it's no big deal ^^
It took me what? like 5 minutes to find how to do it after I looked? I'm sure anyone who was capable of coding a half decent quest would have found the same thing.
Besides... I like to help people, is that such a crime? ^^
Ooh I fully agree, I always do that with my bigger stuff. I'll provide an example or w/e but they gotta code the stuff themselves. I've stooped releasing any full npcs or systems I add.Quote:
Maybe?
Let people try to help themselves before you help them if you get what im saying ^^