wow. talk about skill.
EDIT
about this part:
PHP Code:
function onEnchantItem(singular, prefix, suffix, ench_a, ench_b) {
temp.o_singular = singular;
temp.o_prefix = prefix;
temp.o_suffix = suffix;
temp.a = ench_a;
temp.b = ench_b;
temp.enchants = {"str", "int", "dex", "luck", "hp", "mp", "power", "dmg", "crit", "dodge", "def"};
for(temp.w : enchants) makevar("this.outut_" @ w) = "";
temp.c.loadvarsfromarray(a);
temp.d.loadvarsfromarray(b);
temp.arr1 = c.getDynamicVarNames();
temp.arr2 = d.getDynamicVarNames();
temp.arr3 = 0;
for(temp.e : arr1) {
if (arr3.index(@ e) == -1) {
makevar("this.output_" @ e) = makevar("c." @ e) + makevar("d." @ e);
arr3.add(e);
}
}
for(temp.f : arr2) {
if (arr3.index(@ f) == -1) {
makevar("this.output_" @ f) = makevar("c." @ f) + makevar("d." @ f);
arr3.add(f);
}
}
temp.assign = 0;
temp.output_stats = "";
for(temp.o : arr3) {
assign = (this.(@ "output_" @ o).starts("-") ? this.(@ "output_" @ o) : "+" @ this.(@ "output_" @ o)) SPC o @ ", ";
if (o.starts("$")) assign = o.substring(1) @ ", ";
if (!(assign.starts("+0")) && !(assign.starts("-0")))
output_stats @= assign;
}
temp.enchants = output_stats.substring(0, output_stats.length() - 2);
temp.f = "§s §s §s";
if (enchants.length() > 0) f @= " (§s)";
output_result = format(f, o_prefix, o_singular, o_suffix, output_stats.substring(0, output_stats.length() - 2));
return output_result.trim();
}
i noticed somthing, is this:
PHP Code:
for(temp.w : enchants) makevar("this.outut_" @ w) = "";
supposed to be this
PHP Code:
for(temp.w : enchants) makevar("this.output_" @ w) = "";