What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Picking up certain items

egtuner

New Member
Joined
Jun 3, 2013
Messages
6
Reaction score
0
I am new to DB, but I have a very basic understanding of how the bots works, but my question is if I did not want to pick up rare two-handers would I need to change the itemhandling.cs if I am using trinity? Is there something else I would need to edit as well? Once in itemhandling.cs, what lines would I need to remove? I've looked threw it and are these the correct areas?

/// <summary>
/// DetermineItemType - Calculates what kind of item it is from D3 internalnames
/// </summary>
/// <param name="name"></param>
/// <param name="dbItemType"></param>
/// <param name="dbFollowerType"></param>
/// <returns></returns>
internal static GItemType DetermineItemType(string name, ItemType dbItemType, FollowerType dbFollowerType = FollowerType.None)
{
name = name.ToLower();
if (name.StartsWith("axe_")) return GItemType.Axe; <---

or


/// <summary>
/// DetermineBaseType - Calculates a more generic, "basic" type of item
/// </summary>
/// <param name="itemType"></param>
/// <returns></returns>
internal static GItemBaseType DetermineBaseType(GItemType itemType)
{
GItemBaseType thisGilesBaseType = GItemBaseType.Unknown;
if (itemType == GItemType.Axe || itemType == GItemType.CeremonialKnife |
 
Use ItemRules & configure your pickup.dis to ignore 2 Handers. No C# needed...
 
I'm not sure what you mean, I tried to follow the directions for the item rules but when I open my pickup.dis I do not see anything related to two handers or any specific item types, the only items I see are "armor" "gloves" "weapons" etc
 
Last edited:
Ok working on it but still a bit confused, so under the rare section I have this bit of code

[QUALITY] == "Rare" && [LEVEL] > 61 && [BASETYPE] == "Weapon"
//ignore rule
[QUALITY] == "Rare" && [LEVEL] <= 61 && [BASETYPE] == "Weapon" -> [IGNORE]

So if I wanted to ignore twohanders I would write what exactly?

[QUALITY] == "Rare" && [LEVEL] <= 63 && [TWOHAND] == "Weapon" -> [IGNORE] ???

Could I remove && [LEVEL] <= 63 && and just have [QUALITY] == "Rare" && [TWOHAND] == "Weapon" -> [IGNORE]
 
[QUALITY] == "Rare" && [LEVEL] <= 63 && [BASETYPE] == "Weapon" && [TWOHAND] == true -> [IGNORE]
 
Back
Top