Scene_Class.prototype.onItemOk = function() {
///////////////////////////////////////////////////
//// on class change confirm - koda
///////////////////////////////////////////////////
this._lastClass = this.actor().currentClass().id;
this._lastSubClass = this.actor().currentClass().id;
if (this.actor().equips()[0])
{
$gameVariables.setValue(81, this.actor().equips()[0].id);
$gameVariables.setValue(91, this.actor().equips()[0].etypeId);
$gameVariables.setValue(101, this.actor().equips()[0].wtypeId);
this.actor().changeEquip(0, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(81, 0);
$gameVariables.setValue(91, 0);
$gameVariables.setValue(101, 0);
};
if (this.actor().equips()[1] && this.actor().equips()[1].etypeId == 1)
{
$gameVariables.setValue(82, this.actor().equips()[1].id);
$gameVariables.setValue(92, this.actor().equips()[1].etypeId);
$gameVariables.setValue(102, this.actor().equips()[1].wtypeId);
this.actor().changeEquip(1, $dataWeapons[0]);
}
else if (this.actor().equips()[1] && this.actor().equips()[1].etypeId == 2)
{
$gameVariables.setValue(82, this.actor().equips()[1].id);
$gameVariables.setValue(92, this.actor().equips()[1].etypeId);
$gameVariables.setValue(102, this.actor().equips()[1].atypeId);
this.actor().changeEquip(1, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(82, 0);
$gameVariables.setValue(92, 0);
$gameVariables.setValue(102, 0);
};
if (this.actor().equips()[2] && this.actor().equips()[2].etypeId == 1)
{
$gameVariables.setValue(83, this.actor().equips()[2].id);
$gameVariables.setValue(93, this.actor().equips()[2].etypeId);
$gameVariables.setValue(103, this.actor().equips()[2].wtypeId);
this.actor().changeEquip(2, $dataWeapons[0]);
}
else if (this.actor().equips()[2] && this.actor().equips()[2].etypeId !== 1 )
{
$gameVariables.setValue(83, this.actor().equips()[2].id);
$gameVariables.setValue(93, this.actor().equips()[2].etypeId);
$gameVariables.setValue(103, this.actor().equips()[2].atypeId);
this.actor().changeEquip(2, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(83, 0);
$gameVariables.setValue(93, 0);
$gameVariables.setValue(103, 0);
if (this.actor().equips()[3])
{
$gameVariables.setValue(84, this.actor().equips()[3].id);
$gameVariables.setValue(94, this.actor().equips()[3].etypeId);
$gameVariables.setValue(104, this.actor().equips()[3].atypeId);
this.actor().changeEquip(3, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(84, 0);
$gameVariables.setValue(94, 0);
$gameVariables.setValue(104, 0);
};
if (this.actor().equips()[4])
{
$gameVariables.setValue(85, this.actor().equips()[4].id);
$gameVariables.setValue(95, this.actor().equips()[4].etypeId);
$gameVariables.setValue(105, this.actor().equips()[4].atypeId);
this.actor().changeEquip(4, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(85, 0);
$gameVariables.setValue(95, 0);
$gameVariables.setValue(105, 0);
};
if (this.actor().equips()[5])
{
$gameVariables.setValue(86, this.actor().equips()[5].id);
$gameVariables.setValue(96, this.actor().equips()[5].etypeId);
$gameVariables.setValue(106, this.actor().equips()[5].atypeId);
this.actor().changeEquip(5, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(86, 0);
$gameVariables.setValue(96, 0);
$gameVariables.setValue(106, 0);
};
if (this.actor().equips()[6])
{
$gameVariables.setValue(87, this.actor().equips()[6].id);
$gameVariables.setValue(97, this.actor().equips()[6].etypeId);
$gameVariables.setValue(107, this.actor().equips()[6].atypeId);
this.actor().changeEquip(6, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(87, 0);
$gameVariables.setValue(97, 0);
$gameVariables.setValue(107, 0);
};
if (this.actor().equips()[7])
{
$gameVariables.setValue(88, this.actor().equips()[7].id);
$gameVariables.setValue(98, this.actor().equips()[7].etypeId);
$gameVariables.setValue(108, this.actor().equips()[7].atypeId);
this.actor().changeEquip(7, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(88, 0);
$gameVariables.setValue(98, 0);
$gameVariables.setValue(108, 0);
};
if (this.actor().equips()[8])
{
$gameVariables.setValue(89, this.actor().equips()[8].id);
$gameVariables.setValue(99, this.actor().equips()[8].etypeId);
$gameVariables.setValue(109, this.actor().equips()[8].atypeId);
this.actor().changeEquip(8, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(89, 0);
$gameVariables.setValue(99, 0);
$gameVariables.setValue(109, 0);
};
if (this.actor().equips()[9])
{
$gameVariables.setValue(90, this.actor().equips()[9].id);
$gameVariables.setValue(100, this.actor().equips()[9].etypeId);
$gameVariables.setValue(110, this.actor().equips()[9].atypeId);
this.actor().changeEquip(9, $dataWeapons[0]);
}
else
{
$gameVariables.setValue(90, 0);
$gameVariables.setValue(100, 0);
$gameVariables.setValue(110, 0);
};
/////////////////////////////////////////
//// end set var to old equip + remove equip
/////////////////////////////////////////
SoundManager.playEquip();
var classId = this._itemWindow.item();
var hpRate = this.actor().hp / this.actor().mhp;
var mpRate = this.actor().mp / Math.max(1, this.actor().mmp);
this.actor().changeClass(classId, Yanfly.Param.CCCMaintainLv);
var max = this.actor().isDead() ? 0 : 1;
var hpAmount = Math.max(max, parseInt(this.actor().mhp * hpRate));
this.actor().setHp(hpAmount);
this.actor().setMp(parseInt(this.actor().mmp * mpRate));
this._itemWindow.activate();
this._currentClass = this.actor().currentClass().id;
this._currentSubClass = this.actor().currentClass().id;
/////////////////////////////////////////
//// start remove old eTypes, add new eTypes - koda
/////////////////////////////////////////
if (
this.actor().currentClass().id == 34)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(13);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(15);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(16);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(18);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(17);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(19);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(14);
}
else
{
this.actor().addEquipSlot(5);
}
}
else if (
this.actor().currentClass().id == 14)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(13);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(21);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(22);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(24);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(23);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(25);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(20);
}
else
{
this.actor().addEquipSlot(6);
}
}
else if (
this.actor().currentClass().id == 13)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(15);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(21);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(31);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(33);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(32);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(34);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(26);
}
else
{
this.actor().addEquipSlot(8);
}
}
else if (
this.actor().currentClass().id == 20)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(16);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(22);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(31);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(36);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(35);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(37);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(27);
}
else
{
this.actor().addEquipSlot(9);
}
}
else if (
this.actor().currentClass().id == 24)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(17);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(23);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(32);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(35);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(38);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(39);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(28);
}
else
{
this.actor().addEquipSlot(10);
}
}
else if (
this.actor().currentClass().id == 26)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(18);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(24);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(33);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(36);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(38);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(40);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(29);
}
else
{
this.actor().addEquipSlot(11);
}
}
else if (
this.actor().currentClass().id == 19)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(19);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(25);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(34);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(37);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(39);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(40);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(30);
}
else
{
this.actor().addEquipSlot(12);
}
}
else if (
this.actor().currentClass().id == 5)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(14);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(20);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(26);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(27);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(28);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(29);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(30);
}
else
{
this.actor().addEquipSlot(7);
}
}
else
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(5);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(6);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(8);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(9);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(10);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(11);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(12);
}
else
{
this.actor().addEquipSlot(4);
}
};
/////////////////////////////////////////
//// start remove old eTypes, add new eTypes - koda
/////////////////////////////////////////
if (
this.actor().currentClass().id == 34)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(13);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(15);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(16);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(18);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(17);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(19);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(14);
}
else
{
this.actor().addEquipSlot(5);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().currentClass().id == 14)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(13);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(21);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(22);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(24);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(23);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(25);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(20);
}
else
{
this.actor().addEquipSlot(6);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().currentClass().id == 13)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(15);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(21);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(31);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(33);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(32);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(34);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(26);
}
else
{
this.actor().addEquipSlot(8);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().currentClass().id == 20)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(16);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(22);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(31);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(36);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(35);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(37);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(27);
}
else
{
this.actor().addEquipSlot(9);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().currentClass().id == 24)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(17);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(23);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(32);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(35);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(38);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(39);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(28);
}
else
{
this.actor().addEquipSlot(10);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().currentClass().id == 26)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(18);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(24);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(33);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(36);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(38);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(40);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(29);
}
else
{
this.actor().addEquipSlot(11);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().currentClass().id == 19)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(19);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(25);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(34);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(37);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(39);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(40);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().addEquipSlot(30);
}
else
{
this.actor().addEquipSlot(12);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().currentClass().id == 5)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(14);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(20);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(26);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(27);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(28);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(29);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(30);
}
else
{
this.actor().addEquipSlot(7);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 5)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().currentClass().id == 34)
{
this.actor().addEquipSlot(14);
}
else if (
this.actor().currentClass().id == 14)
{
this.actor().addEquipSlot(20);
}
else if (
this.actor().currentClass().id == 13)
{
this.actor().addEquipSlot(26);
}
else if (
this.actor().currentClass().id == 20)
{
this.actor().addEquipSlot(27);
}
else if (
this.actor().currentClass().id == 24)
{
this.actor().addEquipSlot(28);
}
else if (
this.actor().currentClass().id == 26)
{
this.actor().addEquipSlot(29);
}
else if (
this.actor().currentClass().id == 19)
{
this.actor().addEquipSlot(30);
}
else
{
this.actor().addEquipSlot(7);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().currentClass().id == 34)
{
this.actor().addEquipSlot(19);
}
else if (
this.actor().currentClass().id == 14)
{
this.actor().addEquipSlot(25);
}
else if (
this.actor().currentClass().id == 13)
{
this.actor().addEquipSlot(34);
}
else if (
this.actor().currentClass().id == 20)
{
this.actor().addEquipSlot(37);
}
else if (
this.actor().currentClass().id == 24)
{
this.actor().addEquipSlot(39);
}
else if (
this.actor().currentClass().id == 26)
{
this.actor().addEquipSlot(40);
}
else if (
this.actor().currentClass().id == 5)
{
this.actor().addEquipSlot(30);
}
else
{
this.actor().addEquipSlot(12);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().currentClass().id == 34)
{
this.actor().addEquipSlot(18);
}
else if (
this.actor().currentClass().id == 14)
{
this.actor().addEquipSlot(24);
}
else if (
this.actor().currentClass().id == 13)
{
this.actor().addEquipSlot(33);
}
else if (
this.actor().currentClass().id == 20)
{
this.actor().addEquipSlot(36);
}
else if (
this.actor().currentClass().id == 24)
{
this.actor().addEquipSlot(38);
}
else if (
this.actor().currentClass().id == 19)
{
this.actor().addEquipSlot(40);
}
else if (
this.actor().currentClass().id == 5)
{
this.actor().addEquipSlot(29);
}
else
{
this.actor().addEquipSlot(11);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().currentClass().id == 34)
{
this.actor().addEquipSlot(17);
}
else if (
this.actor().currentClass().id == 14)
{
this.actor().addEquipSlot(23);
}
else if (
this.actor().currentClass().id == 13)
{
this.actor().addEquipSlot(32);
}
else if (
this.actor().currentClass().id == 20)
{
this.actor().addEquipSlot(35);
}
else if (
this.actor().currentClass().id == 26)
{
this.actor().addEquipSlot(38);
}
else if (
this.actor().currentClass().id == 19)
{
this.actor().addEquipSlot(39);
}
else if (
this.actor().currentClass().id == 5)
{
this.actor().addEquipSlot(28);
}
else
{
this.actor().addEquipSlot(10);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().currentClass().id == 34)
{
this.actor().addEquipSlot(16);
}
else if (
this.actor().currentClass().id == 14)
{
this.actor().addEquipSlot(22);
}
else if (
this.actor().currentClass().id == 13)
{
this.actor().addEquipSlot(31);
}
else if (
this.actor().currentClass().id == 26)
{
this.actor().addEquipSlot(36);
}
else if (
this.actor().currentClass().id == 24)
{
this.actor().addEquipSlot(35);
}
else if (
this.actor().currentClass().id == 19)
{
this.actor().addEquipSlot(37);
}
else if (
this.actor().currentClass().id == 5)
{
this.actor().addEquipSlot(27);
}
else
{
this.actor().addEquipSlot(9);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().currentClass().id == 34)
{
this.actor().addEquipSlot(15);
}
else if (
this.actor().currentClass().id == 14)
{
this.actor().addEquipSlot(21);
}
else if (
this.actor().currentClass().id == 20)
{
this.actor().addEquipSlot(31);
}
else if (
this.actor().currentClass().id == 26)
{
this.actor().addEquipSlot(33);
}
else if (
this.actor().currentClass().id == 24)
{
this.actor().addEquipSlot(32);
}
else if (
this.actor().currentClass().id == 19)
{
this.actor().addEquipSlot(34);
}
else if (
this.actor().currentClass().id == 5)
{
this.actor().addEquipSlot(26);
}
else
{
this.actor().addEquipSlot(8);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().currentClass().id == 34)
{
this.actor().addEquipSlot(13);
}
else if (
this.actor().currentClass().id == 13)
{
this.actor().addEquipSlot(21);
}
else if (
this.actor().currentClass().id == 20)
{
this.actor().addEquipSlot(22);
}
else if (
this.actor().currentClass().id == 26)
{
this.actor().addEquipSlot(24);
}
else if (
this.actor().currentClass().id == 24)
{
this.actor().addEquipSlot(23);
}
else if (
this.actor().currentClass().id == 19)
{
this.actor().addEquipSlot(25);
}
else if (
this.actor().currentClass().id == 5)
{
this.actor().addEquipSlot(20);
}
else
{
this.actor().addEquipSlot(6);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().currentClass().id == 14)
{
this.actor().addEquipSlot(13);
}
else if (
this.actor().currentClass().id == 13)
{
this.actor().addEquipSlot(15);
}
else if (
this.actor().currentClass().id == 20)
{
this.actor().addEquipSlot(16);
}
else if (
this.actor().currentClass().id == 26)
{
this.actor().addEquipSlot(18);
}
else if (
this.actor().currentClass().id == 24)
{
this.actor().addEquipSlot(17);
}
else if (
this.actor().currentClass().id == 19)
{
this.actor().addEquipSlot(19);
}
else if (
this.actor().currentClass().id == 5)
{
this.actor().addEquipSlot(14);
}
else
{
this.actor().addEquipSlot(5);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
}
else
{
this.actor().removeEquipSlot(1);
this.actor().removeEquipSlot(2);
this.actor().removeEquipSlot(3);
this.actor().removeEquipSlot(4);
this.actor().removeEquipSlot(5);
this.actor().removeEquipSlot(6);
this.actor().removeEquipSlot(7);
this.actor().removeEquipSlot(8);
this.actor().removeEquipSlot(9);
this.actor().removeEquipSlot(10);
this.actor().removeEquipSlot(11);
this.actor().removeEquipSlot(12);
this.actor().removeEquipSlot(13);
this.actor().removeEquipSlot(14);
this.actor().removeEquipSlot(15);
this.actor().removeEquipSlot(16);
this.actor().removeEquipSlot(17);
this.actor().removeEquipSlot(18);
this.actor().removeEquipSlot(19);
this.actor().removeEquipSlot(20);
this.actor().removeEquipSlot(21);
this.actor().removeEquipSlot(22);
this.actor().removeEquipSlot(23);
this.actor().removeEquipSlot(24);
this.actor().removeEquipSlot(25);
this.actor().removeEquipSlot(26);
this.actor().removeEquipSlot(27);
this.actor().removeEquipSlot(28);
this.actor().removeEquipSlot(29);
this.actor().removeEquipSlot(30);
this.actor().removeEquipSlot(31);
this.actor().removeEquipSlot(32);
this.actor().removeEquipSlot(33);
this.actor().removeEquipSlot(34);
this.actor().removeEquipSlot(35);
this.actor().removeEquipSlot(36);
this.actor().removeEquipSlot(37);
this.actor().removeEquipSlot(38);
this.actor().removeEquipSlot(39);
this.actor().removeEquipSlot(40);
this.actor().removeEquipSlot(41);
this.actor().removeEquipSlot(42);
this.actor().removeEquipSlot(43);
this.actor().removeEquipSlot(44);
this.actor().removeEquipSlot(45);
this.actor().removeEquipSlot(46);
this.actor().removeEquipSlot(47);
this.actor().removeEquipSlot(48);
this.actor().removeEquipSlot(49);
this.actor().removeEquipSlot(50);
this.actor().addEquipSlot(1);
this.actor().addEquipSlot(3);
if (
this.actor().subclass() !== null && this.actor().subclass().id == 34)
{
this.actor().addEquipSlot(5);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 14)
{
this.actor().addEquipSlot(6);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 13)
{
this.actor().addEquipSlot(8);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 20)
{
this.actor().addEquipSlot(9);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 24)
{
this.actor().addEquipSlot(10);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 26)
{
this.actor().addEquipSlot(11);
}
else if (
this.actor().subclass() !== null && this.actor().subclass().id == 19)
{
this.actor().addEquipSlot(12);
}
else
{
this.actor().addEquipSlot(4);
}
this.actor().addEquipSlot(41);
this.actor().addEquipSlot(42);
this.actor().addEquipSlot(43);
this.actor().addEquipSlot(44);
this.actor().addEquipSlot(45);
this.actor().addEquipSlot(46);
};
//////////////////////////////////////////////////
//// begin re-equip old gear & optimize unequipped slots - koda
//////////////////////////////////////////////////
if (this._currentClass == this._lastClass || this._currentSubClass == this._lastClass || this._currentClass==this._lastSubClass || this._currentSubClass == this._lastSubClass)
{
// if (this._currentClass || this._currentSubClass == 5)
if (this._currentClass == 5 || this._currentSubClass == 5)
{
// if ($gameVariables.value(103) == 141 || 142 || 143 || 144 || 145 || 146 || 147 || 148 || 149 || 150)
if ($gameVariables.value(103)>=141 && $gameVariables.value(103)<=150)
{
if ($gameVariables.value(93) == 1)
{
this.actor().changeEquip(2, $dataWeapons[$gameVariables.value(83)]);
}
else if ($gameVariables.value(93) !== 1)
{
this.actor().changeEquip(2, $dataArmors[$gameVariables.value(83)]);
}
}
}
// if (this._currentClass || this._currentSubClass == 13)
if (this._currentClass == 13 || this._currentSubClass == 13)
{
//if ($gameVariables.value(103) == 151 || 152 || 153 || 154 || 155 || 156 || 157 || 158 || 159 || 160 || 161 || 162 || 163 || 164 || 165 || 166 || 167 || 168 || 169 || 170)
if ($gameVariables.value(103)>=151 && $gameVariables.value(103)<=170)
{
if ($gameVariables.value(93) == 1)
{
this.actor().changeEquip(2, $dataWeapons[$gameVariables.value(83)]);
}
else if ($gameVariables.value(93) !== 1)
{
this.actor().changeEquip(2, $dataArmors[$gameVariables.value(83)]);
}
}
}
//if (this._currentClass || this._currentSubClass == 14)
if (this._currentClass == 14 || this._currentSubClass == 14)
{
//if ($gameVariables.value(103) == 131 || 132 || 133 || 134 || 135 || 136 || 137 || 138 || 139 || 140)
if ($gameVariables.value(103)>=131 && $gameVariables.value(103)<=140)
{
if ($gameVariables.value(93) == 1)
{
this.actor().changeEquip(2, $dataWeapons[$gameVariables.value(83)]);
}
else if ($gameVariables.value(93) !== 1)
{
this.actor().changeEquip(2, $dataArmors[$gameVariables.value(83)]);
}
}
}
//if (this._currentClass || this._currentSubClass == 19)
if (this._currentClass == 19 || this._currentSubClass == 19)
{
//if ($gameVariables.value(103) == 271 || 272 || 273 || 274 || 275 || 276 || 277 || 278 || 279 || 280 || 251 || 252 || 253 || 254 || 255 || 256 || 257 || 258 || 259 || 260)
if ($gameVariables.value(103)>=271 && $gameVariables.value(103)<=280 || $gameVariables.value(103)>=251 && $gameVariables.value(103)<=260) //double check me (koda)
{
if ($gameVariables.value(93) == 1)
{
this.actor().changeEquip(2, $dataWeapons[$gameVariables.value(83)]);
}
else if ($gameVariables.value(93) !== 1)
{
this.actor().changeEquip(2, $dataArmors[$gameVariables.value(83)]);
}
}
}
//if (this._currentClass || this._currentSubClass == 20)
if (this._currentClass == 20 || this._currentSubClass == 20)
{
//if ($gameVariables.value(103) == 181 || 182 || 183 || 184 || 185 || 186 || 187 || 188 || 189 || 190)
if ($gameVariables.value(103)>=181 && $gameVariables.value(103)<=190)
{
if ($gameVariables.value(93) == 1)
{
this.actor().changeEquip(2, $dataWeapons[$gameVariables.value(83)]);
}
else if ($gameVariables.value(93) !== 1)
{
this.actor().changeEquip(2, $dataArmors[$gameVariables.value(83)]);
}
}
}
//if (this._currentClass || this._currentSubClass == 24)
if (this._currentClass == 24 || this._currentSubClass == 24)
{
//if ($gameVariables.value(103) == 221 || 222 || 223 || 224 || 225 || 226 || 227 || 228 || 229 || 230 || 261 || 262 || 263 || 264 || 265 || 266 || 267 || 268 || 269 || 270)
if ($gameVariables.value(103)>=221 && $gameVariables.value(103)<=230 || $gameVariables.value(103)>=261 && $gameVariables.value(103)<=270) //double check me (koda)
{
if ($gameVariables.value(93) == 1)
{
this.actor().changeEquip(2, $dataWeapons[$gameVariables.value(83)]);
}
else if ($gameVariables.value(93) !== 1)
{
this.actor().changeEquip(2, $dataArmors[$gameVariables.value(83)]);
}
}
}
//if (this._currentClass || this._currentSubClass == 26)
if (this._currentClass == 26 || this._currentSubClass == 26)
{
//if ($gameVariables.value(103) == 31 || 32 || 33 || 34 || 35 || 36 || 37 || 38 || 39 || 40 || 171 || 172 || 173 || 174 || 175 || 176 || 177 || 178 || 179 || 180)
if ($gameVariables.value(103)>=31 && $gameVariables.value(103)<=40 || $gameVariables.value(103)>=171 && $gameVariables.value(103)<=180) //double check me (koda)
{
if ($gameVariables.value(93) == 1)
{
this.actor().changeEquip(2, $dataWeapons[$gameVariables.value(83)]);
}
else if ($gameVariables.value(93) !== 1)
{
this.actor().changeEquip(2, $dataArmors[$gameVariables.value(83)]);
}
}
}
//if (this._currentClass || this._currentSubClass == 34)
if (this._currentClass == 34 || this._currentSubClass == 34)
{
//if ($gameVariables.value(103) == 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 || 10)
if ($gameVariables.value(103)>=1 && $gameVariables.value(103)<=10)
{
if ($gameVariables.value(93) == 1)
{
this.actor().changeEquip(2, $dataWeapons[$gameVariables.value(83)]);
}
else if ($gameVariables.value(93) !== 1)
{
this.actor().changeEquip(2, $dataArmors[$gameVariables.value(83)]);
}
}
}
};
if ($gameVariables.value(103)>=91 && $gameVariables.value(103)<=100 || $gameVariables.value(103)>=121 && $gameVariables.value(103)<=130 || $gameVariables.value(103)>=191 && $gameVariables.value(103)<=220 || $gameVariables.value(103)>=281 && $gameVariables.value(103)<=310 || $gameVariables.value(103)>=321 && $gameVariables.value(103)<=330 || $gameVariables.value(103)==20)
{
if ($gameVariables.value(93) == 1)
{
this.actor().changeEquip(2, $dataWeapons[$gameVariables.value(83)]);
}
else if ($gameVariables.value(93) !== 1)
{
this.actor().changeEquip(2, $dataArmors[$gameVariables.value(83)]);
}
};
if ($gameVariables.value(81) !== 0)
{
this.actor().changeEquip(0, $dataWeapons[$gameVariables.value(81)]);
};
if ($gameVariables.value(82) !== 0 && $gameVariables.value(92) == 1)
{
this.actor().changeEquip(1, $dataWeapons[$gameVariables.value(82)]);
}
else if ($gameVariables.value(82) !== 0 && $gameVariables.value(92) == 2)
{
this.actor().changeEquip(1, $dataArmors[$gameVariables.value(82)]);
};
if ($gameVariables.value(84) !== 0)
{
this.actor().changeEquip(3, $dataArmors[$gameVariables.value(84)]);
};
if ($gameVariables.value(85) !== 0)
{
this.actor().changeEquip(4, $dataArmors[$gameVariables.value(85)]);
};
if ($gameVariables.value(86) !== 0)
{
this.actor().changeEquip(5, $dataArmors[$gameVariables.value(86)]);
};
if ($gameVariables.value(87) !== 0)
{
this.actor().changeEquip(6, $dataArmors[$gameVariables.value(87)]);
};
if ($gameVariables.value(88) !== 0)
{
this.actor().changeEquip(7, $dataArmors[$gameVariables.value(88)]);
};
if ($gameVariables.value(89) !== 0)
{
this.actor().changeEquip(8, $dataArmors[$gameVariables.value(89)]);
};
if (this.actor().equips()[0] == null)
{
this.actor().changeEquip(0, this.actor().bestEquipItem(0));
};
if (this.actor().equips()[1] == null)
{
this.actor().changeEquip(1, this.actor().bestEquipItem(1));
};
if (this.actor().equips()[2] == null)
{
this.actor().changeEquip(2, this.actor().bestEquipItem(2));
};
if (this.actor().equips()[3] == null)
{
this.actor().changeEquip(3, this.actor().bestEquipItem(3));
};
if (this.actor().equips()[4] == null)
{
this.actor().changeEquip(4, this.actor().bestEquipItem(4));
};
if (this.actor().equips()[5] == null)
{
this.actor().changeEquip(5, this.actor().bestEquipItem(5));
};
if (this.actor().equips()[6] == null)
{
this.actor().changeEquip(6, this.actor().bestEquipItem(6));
};
if (this.actor().equips()[7] == null)
{
this.actor().changeEquip(7, this.actor().bestEquipItem(7));
};
if (this.actor().equips()[8] == null)
{
this.actor().changeEquip(8, this.actor().bestEquipItem(8));
};
if (this.actor().isEquipTypeSealed(2))
{
this.actor().changeEquip(1, 0);
};
IAVRA.POPUP.popup("Unequipped Slots Optimized", {xPosition:600, yPosition:20, width:400, lineHeight:30});
this.refreshWindows();