Jump to content

saleh

WRobot user
  • Posts

    169
  • Joined

  • Last visited

Posts posted by saleh

  1. 3 hours ago, Sye24 said:
    List<String> ItemNames = new List<string>
    {
      "First Item",
      "second Item",
      //etc
    };
    
    foreach (string ItemName in ItemNames)
    {
      if(!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(ItemName))
        wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemName);
    }

    add your time to the list and run this as RunCode

    image.png.44fc68117e0921db1c90ef748c0dff15.png

    List<String> ItemNames = new List<string>
    {
    "Hearthstone",
    "Linen Cloth",
    "Lesser Healing Potion",
    "Minor Healing Potion",
    };

    foreach (string ItemName in ItemNames)
    {
      if(!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(ItemName))
        wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemName);
    }

     

     

    it give me that error , 

    On 6/7/2017 at 3:01 PM, Droidz said:

    Hello,

    wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add("item name");

    But to avoid duplicate:

    var itemName = "item name"; if (!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(itemName)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemName);

     

     

  2. On 6/7/2017 at 3:01 PM, Droidz said:

    Hello,

    wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add("item name");

    But to avoid duplicate:

    var itemName = "item name"; if (!wManager.wManagerSetting.CurrentSetting.DoNotSellList.Contains(itemName)) wManager.wManagerSetting.CurrentSetting.DoNotSellList.Add(itemName);

     

    can i add loop option to add multi objects ?

    Thanks

  3. Just now, Ordush said:

    Looked at the extended edit i just made.
    If "shoot" only works as hunter, then the above code that MikeMail posted won't work either, Because that is EXACTLY what it does. ?

    <?xml version="1.0" encoding="utf-8"?>
    <FightClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <FightClassGeneralSettings>
        <FightClassName>Fight config name</FightClassName>
      </FightClassGeneralSettings>
      <FightClassSpells>
        <FightClassSpell>
          <FightClassConditions>
            <FightClassCondition>
              <ContionType>TargetDistance</ContionType>
              <Param xsi:type="FightClassConditionNumber">
                <Type>SmallerOrEqual</Type>
                <Value>30</Value>
              </Param>
            </FightClassCondition>
          </FightClassConditions>
          <SpellName>Shoot</SpellName>
          <Priority>1</Priority>
          <Timer>4000</Timer>
          <CanMoveDuringCast>No</CanMoveDuringCast>
        </FightClassSpell>
      </FightClassSpells>
    </FightClass>

×
×
  • Create New...