Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
202 lines
8.0 KiB
Plaintext
202 lines
8.0 KiB
Plaintext
void main()
|
|
{
|
|
object oPC = GetLastUsedBy();
|
|
object oArmor = GetFirstItemInInventory(OBJECT_SELF);
|
|
string sArmorTag = GetTag(oArmor);
|
|
object oAnotherItem = GetNextItemInInventory(OBJECT_SELF);
|
|
object oAnvil = OBJECT_SELF;
|
|
if ((sArmorTag == "CommonPaddedArmor") && (oArmor != OBJECT_INVALID) && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "padded_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "padded_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "padded_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "CommonLeatherArmor") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "leather_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "leather_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "leather_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "CommonStuddedLeatherArmor") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "studded_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "studded_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "studded_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "CommonHideArmor") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "hide_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "hide_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "hide_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "CommonChainShirt") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "chainshirt_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "chainshirt_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "chainshirt_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "CommonScaleMail") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "scale_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "scale_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "scale_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "CommonSplintMail") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "splint_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "splint_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "splint_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "CommonBandedMail") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_banded_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_banded_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_banded_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "CommonHalfPlate") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "halfplate_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "halfplate_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "halfplate_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "commonfullplate") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "fullplate_plus1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "fullplate_plus2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "fullplate_plus3");
|
|
}
|
|
|
|
else if ((sArmorTag == "NW_MCLOTH017") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_drowceme");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_drowceme2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_drowceme3");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_orc_fullplate") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_orcarme");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_orcarme2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_orcarme3");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_darkleth") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_darkleth1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_darkleth2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_darkleth3");
|
|
}
|
|
|
|
else if ((sArmorTag == "by_barbarianheav") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "invalid");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "by_ebarbarianh02");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "by_tbarbarian001");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_arch_arm") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_arch_arm1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_arch_arm2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_arch_arm3");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_green_arm") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_green_arm1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_green_arm2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_green_arm3");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_rusty_com") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_rusty_1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_rusty_2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_rusty_3");
|
|
}
|
|
else if ((sArmorTag == "nk_gobboarmor") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "nk_gobboarmorpl1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "nk_gobboarmorpl2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "nk_gobboarmorpl3");
|
|
}
|
|
else if ((sArmorTag == "nk_lgobboarm") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "nk_lgobboarmpl1");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "nk_lgobboarmpl2");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "nk_lgobboarmpl3");
|
|
}
|
|
|
|
else if ((sArmorTag == "ph_paddedarch") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "ph_paddedarchenc");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "ph_paddedarchemp");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "ph_paddedarchtem");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_thiriun_armou") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_thiriun_arm2");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_thiriun_arm3");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_thiriun_arm4");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_eartharm_com") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "vi_westgateenc");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "vi_westgateemp");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "vi_westgatetem");
|
|
}
|
|
|
|
else if ((sArmorTag == "by_dwarvenwar004") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "by_dwarvenwar007");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "by_dwarvenwar009");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "by_dwarvenwar011");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_newy_armo") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_newy_arme");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_newy_armp");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_newy_armt");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_newlighto") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_newlighte");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_newlightp");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_newlightt");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_bluelight_o") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_bluelight_e");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_bluelight_p");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_bluelight_t");
|
|
}
|
|
|
|
else if ((sArmorTag == "jw_corma_o") && (oAnotherItem == OBJECT_INVALID))
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "jw_corma_e");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "jw_corma_p");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "jw_corma_t");
|
|
}
|
|
|
|
else
|
|
{
|
|
SetLocalString(oAnvil, "NEWARMOR", "invalid");
|
|
SetLocalString(oAnvil, "NEWARMOR2", "invalid");
|
|
SetLocalString(oAnvil, "NEWARMOR3", "invalid");
|
|
}
|
|
}
|