Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
Sign in to follow this  
XeroKill

Checking my Syntax

Recommended Posts

I am going through my PickIt files and I wanted to expand on what the default picks up. I want it to pick up a number of different caster oriented rings and amulets and I want to know if the parenthesis work as an "either/or" function. Here is what I am doing:

 

[Category] == "Amulet" && [Rarity] == "Rare" # [mana_regeneration_rate_+%] >= "35" && [base_maximum_life] >= "50" && [base_maximum_mana] >= "50" && [StashItem] == "true"
[Category] == "Amulet" && [Rarity] == "Rare" # [mana_regeneration_rate_+%] >= "35" && [base_maximum_life] >= "50" && [base_cast_speed_+%] >= "5" && [StashItem] == "true"
[Category] == "Amulet" && [Rarity] == "Rare" # [mana_regeneration_rate_+%] >= "35" && [base_maximum_life] >= "50" && [fire_damage_+%] >= "5" && [StashItem] == "true"

 What I want to know is if the following is the same thing and more efficient in terms of coding.

[mana_regeneration_rate_+%] >= "35" && [base_maximum_life] >= "50" && [TotalResistances] >= "60" && ([base_maximum_mana] >= "50" || [base_cast_speed_+%] >= "5" || [fire_damage_+%] >= "5") && [StashItem] == "true"

Basically I want the bot to pick up rings/amulets with base life, mana regen, resists,  and any combination of mana, cast speed, fire damage. Do I need separate entries for each type or can I condense it into a broader context like the latter example.

 

Any help would be greatly appreciated.

Edited by XeroKill

Share this post


Link to post
Share on other sites

Thanks for the heads up, and for this wonderful bot. I know it has some issues but you are doing great work and I am always eager for new updates and features. Keep it up!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...