Neverwinter gateway - Profession Automation

Automatically selects professions for empty slots

< Відгуки до Neverwinter gateway - Profession Automation

Відгук: Добре - скрипт працює добре

Rotten_mindАвтор
§
Опубліковано: 03.01.2015
Edited: 07.01.2015

Sell item from inventory

This is not release and need testing + improvements/ideas.

(Tested and it works really well with "Openrewards")

"Sell item" is coded same way as "open reward chest" and can be disabled, current state it sells,

  • skill kits (all)
  • healing potions T1, T2, T3
  • enchants rank 1, rank 2
  • portable altars (all)
  • lockboxes (all)

and as you can see small edit to text and it can sell anything.

MAC-NW looks how to code it work more reliable so it can be used,

  • if inventory full (trigger?)
  • if reward collection fails, triggers "what we gonna sell"?
  • just clean all trash from inventory, "list items safe to sell"

I use Github for BETA´s so if script starts failing, we then have good place to trackback changes,

https://github.com/RottenMind/Neverwintet-Gateway-Automation-Robot-Mustex_Bunta_Legacy

"Main.js" is allways latest and it will update Greasyfork after changes are tested.

Diffcheck here, Updated,

https://www.diffchecker.com/xbb7kk8c

Rotten_mindАвтор
§
Опубліковано: 04.01.2015

Sell item if inventory full, (leveling profession) check if can collect reward and continue

  • sell list depends profession tasklist
  • using "wildcards" can cause unpleasant script behavior
  • sell list start from TOP tier3, tier2, tier1, other "junk" items, script look list and try sell item and when success it continues until inventory is full again
  • most cases all crafted items needs to sell, but not before "this" profession is lvl20
  • ???
  • ???

Rotten_mindАвтор
§
Опубліковано: 05.01.2015

I tried it and it worked, but not perfect...

Selling big quantity items and sale never happen, log shows (monkey says) all is ok, but on gateway nothing happens.

Replicate issue,

You need eg. 10 x 99 stack items, I used rank2 and rank1 enchants.

Set sale filter for (T1|T2) or for items you have ...

  • if (settings["limitskillkits"]) vendorItemsLimited(/T1|T2/,0); // is format correct

My solution was guessing game and it worked, (give more time for action)

  • window.setTimeout(function () {client.sendCommand('GatewayVendor_SellItemToVendor', vendor);}, 1000); // default is 500, changed it to 1000

I think gateway cant respond fast enough so selling needs more time to response, but again after you clean up inventory then it works better.

Its real beast to clean up inventory so safety here is important...

Rotten_mindАвтор
§
Опубліковано: 05.01.2015
Edited: 05.01.2015

This list sell, healing potions tier1 - 3, enchant/runestone rank1 -2, skillkits.

  • T1_Runestone|T1_Enchantment|T2_Enchantment|T2_Runestone|Item_Consumable_Skill|Potion_Healing_1|Potion_Healing_2|Potion_Healing_3

Names are confusing, is there command what gives list from inventory?

I call those items as "TRASH", but are they trash?

Here is link changed script, some trash remains on script body,

https://www.diffchecker.com/1jcgj77c (WARNING, it cleans inventory from low rank trash!!!)

Rotten_mindАвтор
§
Опубліковано: 07.01.2015

First post Updated!!!

Опублікувати відповідь

Sign in to post a reply.