- Регистрация
- 22 Авг 2022
- Сообщения
- 192
- Реакции
- 153
- Баллы
- 91
- Лучшие ответы
- 0
Галлахад - маг. посохи - 20+ штук.
Горакс - боевые посохи - 20+ штук.
Горакс - боевые посохи - 20+ штук.
instance itmw_ukurstaff1(c_item) {
name = "Посох сектанта";
mainflag = item_kat_nf;
flags = item_2hd_axe;
hp = wpn_2h_mage;
material = mat_wood;
value = 1000;
damagetype = dam_magic;
damagetotal = 60;
range = 110;
cond_atr[2] = atr_mana_max; // требуемый атрибут
cond_value[2] = 50; // значение атрибута
visual = "ItMw_020_2h_Nov_Staff_01.3DS";
effect = "SPELLFX_GURUSTAFF"; // эффект при ударе
weight = getweaponweight(flags, hp, damagetotal, range); // функция расчета веса
on_equip = equip_2h_mage_sek;
on_unequip = unequip_2h_mage;
description = name;
text = formdamagestring(damagetype, damagetotal, 0, 0, 0, 0);
text[1] = formconditionstring(cond_atr, cond_value, cond_atr[1], cond_value[1], cond_atr[2], cond_value[2]);
text[2] = formweapontypestring(hp, range, weight);
text[3] = "Урон зависит от интеллекта";
text[5] = name_value;
count[5] = value;
};
instance itmw_2h_staff3_str(c_item) {
name = "Посох разумения";
mainflag = item_kat_nf;
flags = item_2hd_axe;
material = mat_metal;
hp = wpn_2h_mage;
value = 1000;
damagetotal = 110;
damagetype = dam_blunt;
range = 125;
cond_atr[2] = atr_strength;
cond_value[2] = 70;
visual = "ItMw_2H_MakedStaff3_S_Iron.3ds";
weight = getweaponweight(flags, hp, damagetotal, range);
on_equip = equip_2h_staff;
on_unequip = unequip_2h_staff;
description = name;
text = formdamagestring(damagetype, damagetotal, 0, 0, 0, 0);
text[1] = formconditionstring(cond_atr, cond_value, cond_atr[1], cond_value[1], cond_atr[2], cond_value[2]);
text[2] = formweapontypestring(hp, range, weight);
text[3] = "Урон усиливается от интеллекта";
text[5] = name_value;
count[5] = value;
};
else if (heromelee.hp == wpn_2h_mage) {
if (hlp_isitem(heromelee, itmw_alchemy /*18017*/) && (player_isapprentice == app_constantino)) {
heromelee.damage[dam_index_magic] /*5*/ = heromelee.nutrition + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff1_str /*18031*/)) {
heromelee.damage[dam_index_blunt] /*1*/ = heromelee.nutrition + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff1_mana /*18032*/)) {
heromelee.damage[dam_index_blunt] /*1*/ = heromelee.nutrition + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff2_str /*18033*/)) {
heromelee.damage[dam_index_blunt] /*1*/ = heromelee.nutrition + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff2_mana /*18034*/)) {
heromelee.damage[dam_index_blunt] /*1*/ = heromelee.nutrition + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff3_str /*18035*/)) {
heromelee.damage[dam_index_blunt] /*1*/ = heromelee.nutrition + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff3_mana /*18036*/)) {
heromelee.damage[dam_index_blunt] /*1*/ = heromelee.nutrition + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff4_str /*18037*/)) {
heromelee.damage[dam_index_magic] /*5*/ = 30 + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff4_mana /*18038*/)) {
heromelee.damage[dam_index_magic] /*5*/ = 30 + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff5_str /*18039*/)) {
heromelee.damage[dam_index_magic] /*5*/ = 40 + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff5_mana /*18040*/)) {
heromelee.damage[dam_index_magic] /*5*/ = 40 + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff6_str /*18041*/)) {
heromelee.damage[dam_index_magic] /*5*/ = 50 + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff6_mana /*18042*/)) {
heromelee.damage[dam_index_magic] /*5*/ = 50 + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff7_str /*18043*/)) {
heromelee.damage[dam_index_fire] /*3*/ = 60 + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff7_mana /*18044*/)) {
heromelee.damage[dam_index_fire] /*3*/ = 60 + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff8_str /*18045*/)) {
heromelee.damage[dam_index_fire] /*3*/ = 90 + (atr_intellect / 4);
};
if (hlp_isitem(heromelee, itmw_2h_staff8_mana /*18046*/)) {
heromelee.damage[dam_index_fire] /*3*/ = 90 + (atr_intellect / 4);
};
if (hero.guild == gil_kdf) {
if (hlp_isitem(heromelee, itmw_f_2 /*18023*/)) {
heromelee.damage[dam_index_fire] /*3*/ = (heromelee.nutrition + (atr_intellect / 5)) + (innospraycount / 5);
}
else {
if (hlp_isitem(heromelee, itmw_f_2_2 /*18024*/)) {
heromelee.damage[dam_index_fire] /*3*/ = (heromelee.nutrition + (atr_intellect / 5)) + (innospraycount / 5);
};
};
}
else if (hero.guild == gil_nov) {
if (hlp_isitem(heromelee, itmw_fireadept /*18018*/)) {
heromelee.damage[dam_index_fire] /*3*/ = heromelee.nutrition + (atr_intellect / 3);
};
}
else if (hero.guild == gil_kdw) {
if (hlp_isitem(heromelee, itmw_addon_stab02 /*18025*/)) {
heromelee.damage[dam_index_magic] /*5*/ = (heromelee.nutrition + (atr_intellect / 5)) + spl_karmaadanos;
}
else {
if (hlp_isitem(heromelee, itmw_addon_stab02_high /*18026*/)) {
heromelee.damage[dam_index_magic] /*5*/ = (heromelee.nutrition + (atr_intellect / 5)) + spl_karmaadanos;
};
};
}
else if (hero.guild == gil_ndw) {
if (hlp_isitem(heromelee, itmw_wateradept /*18020*/)) {
heromelee.damage[dam_index_magic] /*5*/ = heromelee.nutrition + (atr_intellect / 3);
};
}
else if (hero.guild == gil_kdm) {
if (hlp_isitem(heromelee, itmw_addon_stab03 /*18027*/)) {
heromelee.damage[dam_index_magic] /*5*/ = (heromelee.nutrition + (atr_intellect / 5)) + (beliarpraycount / 5);
}
else {
if (hlp_isitem(heromelee, itmw_addon_stab03_high /*18028*/)) {
heromelee.damage[dam_index_magic] /*5*/ = (heromelee.nutrition + (atr_intellect / 5)) + (beliarpraycount / 5);
};
};
}
else if (hero.guild == gil_ndm) {
if (hlp_isitem(heromelee, itmw_darkadept /*18019*/)) {
heromelee.damage[dam_index_magic] /*5*/ = heromelee.damagetotal + (atr_intellect / 3);
};
}
else if (hero.guild == gil_gur) {
if (hlp_isitem(heromelee, itmw_addon_stab04 /*18029*/)) {
heromelee.damage[dam_index_magic] /*5*/ = (heromelee.damagetotal + (atr_intellect / 5)) + sektantgolemcount;
};
}
else if (hero.guild == gil_sek) {
if (hlp_isitem(heromelee, itmw_ukurstaff1 /*18021*/)) {
heromelee.damage[dam_index_magic] /*5*/ = heromelee.damagetotal + (atr_intellect / 3);
}
else {
if (hlp_isitem(heromelee, itmw_ukurstaff2 /*18022*/)) {
heromelee.damage[dam_index_magic] /*5*/ = (heromelee.damagetotal + (atr_intellect / 3)) + (sektantgolemcount / 2);
};
};
};
};