Originally Posted by fertoker1
Hätte da auch mal wieder eine Frage und ein Anliegen :-)
Ich habe versucht, in deine neu modifizierte NTCubing einzufügen, dass er auch magic Monarche cubed, weil mein Baba keine Chance hat, an einen Charm mit entsprechendem Itemlevel zu kommen.
In der Charconfig natürlich NTConfig_CubingItem.push([NTCU_MAGIC_MONARCH, 447]); eingefügt und dann die NTCubing (rot markiert) verändert:
Code:
* This file was modified by [Only registered and activated users can see links. Click Here To Register...]
* Check the programming section for updates and further scripts
* Last Update: 12/14/2010
*/
const NTCU_GEM = 0;
const NTCU_MAGIC = 1;
const NTCU_MAGIC_CHARM = 2;
const MWCU_RARE = 3;
[COLOR=Red]const NTCU_MAGIC_MONARCH = 4;[/COLOR]
const NTCU_CRAFT_HITPOWER_HELM = 10;
const NTCU_CRAFT_HITPOWER_BOOTS = 11;
const NTCU_CRAFT_HITPOWER_GLOVES = 12;
const NTCU_CRAFT_HITPOWER_BELT = 13;
const NTCU_CRAFT_HITPOWER_SHIELD = 14;
const NTCU_CRAFT_HITPOWER_BODY = 15;
const NTCU_CRAFT_HITPOWER_AMULET = 16;
const NTCU_CRAFT_HITPOWER_RING = 17;
const NTCU_CRAFT_HITPOWER_WEAPON = 18;
const NTCU_CRAFT_BLOOD_HELM = 19;
const NTCU_CRAFT_BLOOD_BOOTS = 20;
const NTCU_CRAFT_BLOOD_GLOVES = 21;
const NTCU_CRAFT_BLOOD_BELT = 22;
const NTCU_CRAFT_BLOOD_SHIELD = 23;
const NTCU_CRAFT_BLOOD_BODY = 24;
const NTCU_CRAFT_BLOOD_AMULET = 25;
const NTCU_CRAFT_BLOOD_RING = 26;
const NTCU_CRAFT_BLOOD_WEAPON = 27;
const NTCU_CRAFT_CASTER_HELM = 28;
const NTCU_CRAFT_CASTER_BOOTS = 29;
const NTCU_CRAFT_CASTER_GLOVES = 30;
const NTCU_CRAFT_CASTER_BELT = 31;
const NTCU_CRAFT_CASTER_SHIELD = 32;
const NTCU_CRAFT_CASTER_BODY = 33;
const NTCU_CRAFT_CASTER_AMULET = 34;
const NTCU_CRAFT_CASTER_RING = 35;
const NTCU_CRAFT_CASTER_WEAPON = 36;
const NTCU_CRAFT_SAFETY_HELM = 37;
const NTCU_CRAFT_SAFETY_BOOTS = 38;
const NTCU_CRAFT_SAFETY_GLOVES = 39;
const NTCU_CRAFT_SAFETY_BELT = 40;
const NTCU_CRAFT_SAFETY_SHIELD = 41;
const NTCU_CRAFT_SAFETY_BODY = 42;
const NTCU_CRAFT_SAFETY_AMULET = 43;
const NTCU_CRAFT_SAFETY_RING = 44;
const NTCU_CRAFT_SAFETY_WEAPON = 45;
const NTCU_SOCKET_BODYARMOR = 50;
const NTCU_SOCKET_WEAPON = 51;
const NTCU_SOCKET_HELM = 52;
const NTCU_SOCKET_SHIELD = 53;
const NTCU_UPGRADE_N_UNIQUE_WEAPON = 60;
const NTCU_UPGRADE_N_UNIQUE_ARMOR = 61;
const NTCU_UPGRADE_E_UNIQUE_WEAPON = 62;
const NTCU_UPGRADE_E_UNIQUE_ARMOR = 63;
const NTCU_UPGRADE_N_RARE_WEAPON = 64;
const NTCU_UPGRADE_N_RARE_ARMOR = 65;
const NTCU_UPGRADE_E_RARE_WEAPON = 66;
const NTCU_UPGRADE_E_RARE_ARMOR = 67;
const NTCU_ESSENCE = 70;
// Define constants for all gem classids
const MWCU_AMETHYST_CHIPPED = 557;
const MWCU_AMETHYST_FLAWED = 558;
const MWCU_AMETHYST_NORMAL = 559;
const MWCU_AMETHYST_FLAWLESS = 560;
const MWCU_AMETHYST_PERFECT = 561;
const MWCU_TOPAZ_CHIPPED = 562;
const MWCU_TOPAZ_FLAWED = 563;
const MWCU_TOPAZ_NORMAL = 564;
const MWCU_TOPAZ_FLAWLESS = 565;
const MWCU_TOPAZ_PERFECT = 566;
const MWCU_SAPPHIRE_CHIPPED = 567;
const MWCU_SAPPHIRE_FLAWED = 568;
const MWCU_SAPPHIRE_NORMAL = 569;
const MWCU_SAPPHIRE_FLAWLESS = 570;
const MWCU_SAPPHIRE_PERFECT = 571;
const MWCU_EMERALD_CHIPPED = 572;
const MWCU_EMERALD_FLAWED = 573;
const MWCU_EMERALD_NORMAL = 574;
const MWCU_EMERALD_FLAWLESS = 575;
const MWCU_EMERALD_PERFECT = 576;
const MWCU_RUBY_CHIPPED = 577;
const MWCU_RUBY_FLAWED = 578;
const MWCU_RUBY_NORMAL = 579;
const MWCU_RUBY_FLAWLESS = 580;
const MWCU_RUBY_PERFECT = 581;
const MWCU_DIAMOND_CHIPPED = 582;
const MWCU_DIAMOND_FLAWED = 583;
const MWCU_DIAMOND_NORMAL = 584;
const MWCU_DIAMOND_FLAWLESS = 585;
const MWCU_DIAMOND_PERFECT = 586;
const MWCU_SKULL_CHIPPED = 597;
const MWCU_SKULL_FLAWED = 598;
const MWCU_SKULL_NORMAL = 599;
const MWCU_SKULL_FLAWLESS = 600;
const MWCU_SKULL_PERFECT = 601;
const MWCU_JEWEL = 643;
const MWCU_ESSENCE_OF_SUFFERING = 654;
const MWCU_ESSENCE_OF_HATERED = 655;
const MWCU_ESSENCE_OF_TERROR = 656;
const MWCU_ESSENCE_OF_DESTRUCTION = 657;
// Define constants for all rune classids
const NTCU_RUNE_EL = 610;
const NTCU_RUNE_ELD = 611;
const NTCU_RUNE_TIR = 612;
const NTCU_RUNE_NEF = 613;
const NTCU_RUNE_ETH = 614;
const NTCU_RUNE_ITH = 615;
const NTCU_RUNE_TAL = 616;
const NTCU_RUNE_RAL = 617;
const NTCU_RUNE_ORT = 618;
const NTCU_RUNE_THUL = 619;
const NTCU_RUNE_AMN = 620;
const NTCU_RUNE_SOL = 621;
const NTCU_RUNE_SHAEL = 622;
const NTCU_RUNE_DOL = 623;
const NTCU_RUNE_HEL = 624;
const NTCU_RUNE_IO = 625;
const NTCU_RUNE_LUM = 626;
const NTCU_RUNE_KO = 627;
const NTCU_RUNE_FAL = 628;
const NTCU_RUNE_LEM = 629;
const NTCU_RUNE_PUL = 630;
const NTCU_RUNE_UM = 631;
const NTCU_RUNE_MAL = 632;
const NTCU_RUNE_IST = 633;
const NTCU_RUNE_GUL = 634;
const NTCU_RUNE_VEX = 635;
const NTCU_RUNE_OHM = 636;
const NTCU_RUNE_LO = 637;
const NTCU_RUNE_SUR = 638;
const NTCU_RUNE_BER = 639;
const NTCU_RUNE_JAH = 640;
const NTCU_RUNE_CHAM = 641;
/* Define craft recipies in a two dimensional array:
Index [x][0]: Calclevel
Index [x][1]: Rune classid
Index [x][2]: Gem classid
*/
var _NTCU_CraftRecipe = new Array();
_NTCU_CraftRecipe.push([84, NTCU_RUNE_ITH, MWCU_SAPPHIRE_PERFECT]); // Hitpower Helm
_NTCU_CraftRecipe.push([85, NTCU_RUNE_RAL, MWCU_SAPPHIRE_PERFECT]); // Hitpower Boots
_NTCU_CraftRecipe.push([79, NTCU_RUNE_ORT, MWCU_SAPPHIRE_PERFECT]); // Hitpower Gloves
_NTCU_CraftRecipe.push([85, NTCU_RUNE_TAL, MWCU_SAPPHIRE_PERFECT]); // Hitpower Belt
_NTCU_CraftRecipe.push([82, NTCU_RUNE_ETH, MWCU_SAPPHIRE_PERFECT]); // Hitpower Shield
_NTCU_CraftRecipe.push([85, NTCU_RUNE_NEF, MWCU_SAPPHIRE_PERFECT]); // Hitpower Armor
_NTCU_CraftRecipe.push([90, NTCU_RUNE_THUL, MWCU_SAPPHIRE_PERFECT]); // Hitpower Amulet
_NTCU_CraftRecipe.push([86, NTCU_RUNE_AMN, MWCU_SAPPHIRE_PERFECT]); // Hitpower Ring
_NTCU_CraftRecipe.push([85, NTCU_RUNE_TIR, MWCU_SAPPHIRE_PERFECT]); // Hitpower Weapon
_NTCU_CraftRecipe.push([84, NTCU_RUNE_RAL, MWCU_RUBY_PERFECT]); // Blood Helm
_NTCU_CraftRecipe.push([85, NTCU_RUNE_ETH, MWCU_RUBY_PERFECT]); // Blood Boots
_NTCU_CraftRecipe.push([79, NTCU_RUNE_NEF, MWCU_RUBY_PERFECT]); // Blood Gloves
_NTCU_CraftRecipe.push([85, NTCU_RUNE_TAL, MWCU_RUBY_PERFECT]); // Blood Belt
_NTCU_CraftRecipe.push([82, NTCU_RUNE_ITH, MWCU_RUBY_PERFECT]); // Blood Shield
_NTCU_CraftRecipe.push([85, NTCU_RUNE_THUL, MWCU_RUBY_PERFECT]); // Blood Armor
_NTCU_CraftRecipe.push([90, NTCU_RUNE_AMN, MWCU_RUBY_PERFECT]); // Blood Amulet
_NTCU_CraftRecipe.push([86, NTCU_RUNE_SOL, MWCU_RUBY_PERFECT]); // Blood Ring
_NTCU_CraftRecipe.push([85, NTCU_RUNE_ORT, MWCU_RUBY_PERFECT]); // Blood Weapon
_NTCU_CraftRecipe.push([84, NTCU_RUNE_NEF, MWCU_AMETHYST_PERFECT]); // Caster Helm
_NTCU_CraftRecipe.push([85, NTCU_RUNE_THUL, MWCU_AMETHYST_PERFECT]); // Caster Boots
_NTCU_CraftRecipe.push([79, NTCU_RUNE_ORT, MWCU_AMETHYST_PERFECT]); // Caster Gloves
_NTCU_CraftRecipe.push([85, NTCU_RUNE_ITH, MWCU_AMETHYST_PERFECT]); // Caster Belt
_NTCU_CraftRecipe.push([82, NTCU_RUNE_ETH, MWCU_AMETHYST_PERFECT]); // Caster Shield
_NTCU_CraftRecipe.push([85, NTCU_RUNE_TAL, MWCU_AMETHYST_PERFECT]); // Caster Armor
_NTCU_CraftRecipe.push([90, NTCU_RUNE_RAL, MWCU_AMETHYST_PERFECT]); // Caster Amulet
_NTCU_CraftRecipe.push([86, NTCU_RUNE_AMN, MWCU_AMETHYST_PERFECT]); // Caster Ring
_NTCU_CraftRecipe.push([85, NTCU_RUNE_TIR, MWCU_AMETHYST_PERFECT]); // Caster Weapon
_NTCU_CraftRecipe.push([84, NTCU_RUNE_ITH, MWCU_EMERALD_PERFECT]); // Safety Helm
_NTCU_CraftRecipe.push([85, NTCU_RUNE_ORT, MWCU_EMERALD_PERFECT]); // Safety Boots
_NTCU_CraftRecipe.push([79, NTCU_RUNE_RAL, MWCU_EMERALD_PERFECT]); // Safety Gloves
_NTCU_CraftRecipe.push([85, NTCU_RUNE_TAL, MWCU_EMERALD_PERFECT]); // Safety Belt
_NTCU_CraftRecipe.push([82, NTCU_RUNE_NEF, MWCU_EMERALD_PERFECT]); // Safety Shield
_NTCU_CraftRecipe.push([85, NTCU_RUNE_ETH, MWCU_EMERALD_PERFECT]); // Safety Armor
_NTCU_CraftRecipe.push([90, NTCU_RUNE_THUL, MWCU_EMERALD_PERFECT]); // Safety Amulet
_NTCU_CraftRecipe.push([86, NTCU_RUNE_AMN, MWCU_EMERALD_PERFECT]); // Safety Ring
_NTCU_CraftRecipe.push([85, NTCU_RUNE_SOL, MWCU_EMERALD_PERFECT]); // Safety Weapon
/* Define socket recipies in a two dimensional array:
Index [x][0]: First rune classid
Index [x][1]: Second rune classid
Index [x][2]: Gem classid
*/
var _NTCU_SocketRecipe = new Array();
_NTCU_SocketRecipe.push([NTCU_RUNE_TAL, NTCU_RUNE_THUL, MWCU_TOPAZ_PERFECT]); // Socket body armor
_NTCU_SocketRecipe.push([NTCU_RUNE_RAL, NTCU_RUNE_AMN, MWCU_AMETHYST_PERFECT]); // Socket weapon
_NTCU_SocketRecipe.push([NTCU_RUNE_RAL, NTCU_RUNE_THUL, MWCU_SAPPHIRE_PERFECT]); // Socket helm
_NTCU_SocketRecipe.push([NTCU_RUNE_TAL, NTCU_RUNE_AMN, MWCU_RUBY_PERFECT]); // Socket shield
/* Define upgrade recipies in a two dimensional array:
Index [x][0]: Item quality
Index [x][1]: First rune classid
Index [x][2]: Second rune classid
Index [x][3]: Gem classid
*/
var _NTCU_UpgradeRecipe = new Array();
_NTCU_UpgradeRecipe.push([7, NTCU_RUNE_RAL, NTCU_RUNE_SOL, MWCU_EMERALD_PERFECT]); // Unique weapon normal --> exceptional
_NTCU_UpgradeRecipe.push([7, NTCU_RUNE_TAL, NTCU_RUNE_SHAEL, MWCU_DIAMOND_PERFECT]); // Unique piece of armor normal --> exceptional
_NTCU_UpgradeRecipe.push([7, NTCU_RUNE_LUM, NTCU_RUNE_PUL, MWCU_EMERALD_PERFECT]); // Unique weapon exceptional --> elite
_NTCU_UpgradeRecipe.push([7, NTCU_RUNE_KO, NTCU_RUNE_LEM, MWCU_DIAMOND_PERFECT]); // Unique piece of armor exceptional --> elite
_NTCU_UpgradeRecipe.push([6, NTCU_RUNE_ORT, NTCU_RUNE_AMN, MWCU_SAPPHIRE_PERFECT]); // Rare weapon normal --> exceptional
_NTCU_UpgradeRecipe.push([6, NTCU_RUNE_RAL, NTCU_RUNE_THUL, MWCU_AMETHYST_PERFECT]); // Rare piece of armor normal --> exceptional
_NTCU_UpgradeRecipe.push([6, NTCU_RUNE_FAL, NTCU_RUNE_UM, MWCU_SAPPHIRE_PERFECT]); // Rare weapon exceptional --> elite
_NTCU_UpgradeRecipe.push([6, NTCU_RUNE_KO, NTCU_RUNE_PUL, MWCU_AMETHYST_PERFECT]); // Rare piece of armor exceptional --> elite
var _NTCU_Inventory = new Array(4);
_NTCU_Inventory[0] = new Array(10);
_NTCU_Inventory[1] = new Array(10);
_NTCU_Inventory[2] = new Array(10);
_NTCU_Inventory[3] = new Array(10);
var _NTCU_LogString;
function NTCU_CheckItem(item, result)
{
var i, n, _index;
var _classid, _gid, _calclevel;
var _result = false;
var _restrictedGemTypes;
if(!NTConfig_Cubing)
return false;
_classid = item.classid;
_gid = item.gid;
_calclevel = parseInt(me.GetStat(12)/2) + parseInt(item.itemlevel/2);
_restrictedGemTypes = new Array();
// Check which gem types are required for crafting and restrict their use so they are not wasted on cubing charms
for(i = 0; i < NTConfig_CubingItem.length; i++)
{
if(NTConfig_CubingItem[i][0] >= NTCU_CRAFT_HITPOWER_HELM && NTConfig_CubingItem[i][0] <= NTCU_CRAFT_HITPOWER_WEAPON)
_restrictedGemTypes.push(MWCU_SAPPHIRE_PERFECT, MWCU_SAPPHIRE_FLAWLESS);
else if(NTConfig_CubingItem[i][0] >= NTCU_CRAFT_BLOOD_HELM && NTConfig_CubingItem[i][0] <= NTCU_CRAFT_BLOOD_WEAPON)
_restrictedGemTypes.push(MWCU_RUBY_PERFECT, MWCU_RUBY_FLAWLESS);
else if(NTConfig_CubingItem[i][0] >= NTCU_CRAFT_CASTER_HELM && NTConfig_CubingItem[i][0] <= NTCU_CRAFT_CASTER_WEAPON)
_restrictedGemTypes.push(MWCU_AMETHYST_PERFECT, MWCU_AMETHYST_PERFECT);
else if(NTConfig_CubingItem[i][0] >= NTCU_CRAFT_SAFETY_HELM && NTConfig_CubingItem[i][0] <= NTCU_CRAFT_SAFETY_WEAPON)
_restrictedGemTypes.push(MWCU_EMERALD_PERFECT, MWCU_EMERALD_FLAWLESS);
else if(NTConfig_CubingItem[i][0] == MWCU_RARE)
_restrictedGemTypes.push(MWCU_SKULL_PERFECT, MWCU_SKULL_FLAWLESS);
}
// Loop through all activated recipes and add the item to each matching recipe
for(i = 0; i < NTConfig_CubingItem.length; i++)
{
if(NTConfig_CubingItem[i][0] == NTCU_GEM)
{
if(_classid == NTConfig_CubingItem[i][1])
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][2+n] == null)
{
NTConfig_CubingItem[i][2+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][2+n] == _gid)
break;
}
_result = true;
}
}
else if(NTConfig_CubingItem[i][0] == NTCU_MAGIC || NTConfig_CubingItem[i][0] == NTCU_MAGIC_CHARM)
{
if(_classid == NTConfig_CubingItem[i][1])
{
if((result == 0 || result == 3) && item.quality == 4)
{
if(NTConfig_CubingItem[i][0] == NTCU_MAGIC_CHARM)
{
if(item.itemlevel >= 91)
{
if(NTConfig_CubingItem[i][2] == null)
{
NTConfig_CubingItem[i][2] = _gid;
_result = true;
}
else if(NTConfig_CubingItem[i][2] == _gid)
_result = true;
}
}
else
{
if(item.itemlevel >= 90)
{
if(NTConfig_CubingItem[i][2] == null)
{
NTConfig_CubingItem[i][2] = _gid;
_result = true;
}
else if(NTConfig_CubingItem[i][2] == _gid)
_result = true;
}
}
}
}
else if(_classid == MWCU_TOPAZ_PERFECT || _classid == MWCU_DIAMOND_PERFECT || _classid == MWCU_SKULL_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1
|| _classid == MWCU_RUBY_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1 || _classid == MWCU_EMERALD_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1
|| _classid == MWCU_SAPPHIRE_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1 || _classid == MWCU_AMETHYST_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1) // Check perfect gems
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][3+n] == null)
{
NTConfig_CubingItem[i][3+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][3+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_TOPAZ_FLAWLESS) // Check flawless topaz
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][6+n] == null)
{
NTConfig_CubingItem[i][6+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][6+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_DIAMOND_FLAWLESS) // Check flawless diamond
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][9+n] == null)
{
NTConfig_CubingItem[i][9+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][9+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_SKULL_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless skull
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][12+n] == null)
{
NTConfig_CubingItem[i][12+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][12+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_RUBY_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless ruby
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][15+n] == null)
{
NTConfig_CubingItem[i][15+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][15+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_EMERALD_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless emerald
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][18+n] == null)
{
NTConfig_CubingItem[i][18+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][18+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_SAPPHIRE_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless sapphire
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][21+n] == null)
{
NTConfig_CubingItem[i][21+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][21+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_AMETHYST_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless amethyst
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][24+n] == null)
{
NTConfig_CubingItem[i][24+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][24+n] == _gid)
break;
}
_result = true;
}
}
}
else if(NTConfig_CubingItem[i][0] == MWCU_RARE)
{
if(_classid == NTConfig_CubingItem[i][1])
{
if((result == 0 || result == 3) && item.quality == 6)
{
if(NTConfig_CubingItem[i][2] == null)
{
NTConfig_CubingItem[i][2] = _gid;
_result = true;
}
else if(NTConfig_CubingItem[i][2] == _gid)
_result = true;
}
}
else if(_classid == MWCU_SKULL_PERFECT)
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 6 ; n++)
{
if(NTConfig_CubingItem[i][3+n] == null)
{
NTConfig_CubingItem[i][3+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][3+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_SKULL_FLAWLESS)
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][9+n] == null)
{
NTConfig_CubingItem[i][9+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][9+n] == _gid)
break;
}
_result = true;
}
}
}
[COLOR=Red] else if(NTConfig_CubingItem[i][0] == NTCU_MAGIC || NTConfig_CubingItem[i][0] == NTCU_MAGIC_MONARCH)
{
if(_classid == NTConfig_CubingItem[i][1])
{
if(result == 0 && item.quality == 4 && item.GetStat(0x400000) == 0)
{
if(NTConfig_CubingItem[i][0] == NTCU_MAGIC_MONARCH)
{
if(item.itemlevel >= 77)
{
if(NTConfig_CubingItem[i][2] == null)
{
NTConfig_CubingItem[i][2] = _gid;
_result = true;
}
else if(NTConfig_CubingItem[i][2] == _gid)
_result = true;
}
}
}
}
else if(_classid == MWCU_TOPAZ_PERFECT || _classid == MWCU_DIAMOND_PERFECT || _classid == MWCU_SKULL_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1
|| _classid == MWCU_RUBY_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1 || _classid == MWCU_EMERALD_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1
|| _classid == MWCU_SAPPHIRE_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1 || _classid == MWCU_AMETHYST_PERFECT && _restrictedGemTypes.indexOf(_classid) == -1) // Check perfect gems
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][3+n] == null)
{
NTConfig_CubingItem[i][3+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][3+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_TOPAZ_FLAWLESS) // Check flawless topaz
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][6+n] == null)
{
NTConfig_CubingItem[i][6+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][6+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_DIAMOND_FLAWLESS) // Check flawless diamond
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][9+n] == null)
{
NTConfig_CubingItem[i][9+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][9+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_SKULL_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless skull
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][12+n] == null)
{
NTConfig_CubingItem[i][12+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][12+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_RUBY_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless ruby
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][15+n] == null)
{
NTConfig_CubingItem[i][15+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][15+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_EMERALD_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless emerald
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][18+n] == null)
{
NTConfig_CubingItem[i][18+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][18+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_SAPPHIRE_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless sapphire
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][21+n] == null)
{
NTConfig_CubingItem[i][21+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][21+n] == _gid)
break;
}
_result = true;
}
}
else if(_classid == MWCU_AMETHYST_FLAWLESS && _restrictedGemTypes.indexOf(_classid) == -1) // Check flawless amethyst
{
if(NTConfig_CubingItem[i][2] != null)
{
for(n = 0 ; n < 3 ; n++)
{
if(NTConfig_CubingItem[i][24+n] == null)
{
NTConfig_CubingItem[i][24+n] = _gid;
break;
}
else if(NTConfig_CubingItem[i][24+n] == _gid)
break;
}
_result = true;
}
}
}[/COLOR]
Leider funktioniert das nicht, vielleicht kannst du mir da auf die Sprünge helfen?!
Außerdem wollte ich wissen, ob es geplant ist, die Items, die sich nicht mit der Pick-It decken, auf den Boden zu werfen?
(Außerdem habe ich versucht IDevils Automule zu implementieren, hat auch nicht geklappt -> das würde aber zu weit führen)
|