Skip to content

Instantly share code, notes, and snippets.

@RottenMind
RottenMind / Mod10ver1.001
Last active November 19, 2016 16:38
simple example for .xml
<?xml version="1.0"?>
<Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Vendors>
<NPCInfos>
<DisplayName>Merchant</DisplayName>
<Position>
<X>3565.81982</X>
<Y>-620.8921</Y>
<Z>20.4936523</Z>
</Position>
@RottenMind
RottenMind / mod6 tasklist
Created March 6, 2015 09:39
Buntas script mod6 tasklist
/*
* Mod6 sample 6.3.2015
* Tasklist can be modified to configure the training you want to perform.
* The configurable options window sets how many profession slots you want to use for each profession.
* The level array below for each professions specifies the tasks you want to learn at each crafting level.
* Each craft slot will pick the first task that meets requirements.
* See http://pastebin.com/VaGntEha for Task Name Map.
* Some names above do not match, use below code to check:
* var tasks = client.dataModel.model.craftinglist['craft_' + profname].entries.filter(function(entry) { return entry.def && entry.def.displayname == taskname; }); tasks[0].def.name;
*/
@RottenMind
RottenMind / crafting sells
Created January 29, 2015 05:46
Sells items from crafting list
var _pbags_crafting = client.dataModel.model.ent.main.inventory.tradebag; //tradebag
$.each(_pbags_crafting, function (bi, bag) {
_pbags_crafting.forEach(function (slot) {
//console.log("item names", slot.name);
// Match unused slots
if (slot === null || !slot || slot === undefined) {
_bagUnused++;
}
...so deleting unwanted Charsettings can be done, but filter and remove
// If character numbers have changed reload page
if (charcount != settings["charcount"]) {
console.log("Reloading gateway to update character count");
var keys = GM_listValues();
var charSetting_list = GM_getValues(charSettings);
console.log("keys inside", keys,charSetting_list);
//var whats =(charSettings.length / settings["charcount"]);
//console.log("wht is this", whats);