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.
462 lines
9.9 KiB
Plaintext
462 lines
9.9 KiB
Plaintext
void main()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
AssignCommand(oPC,ClearAllActions());
|
|
AssignCommand(oPC,PlayAnimation(ANIMATION_LOOPING_WORSHIP,0.5,180.0));
|
|
if (!GetIsObjectValid(GetItemPossessedBy(oPC,"jw_new_note")))
|
|
{
|
|
SendMessageToPC(oPC,"You do not know the words to say");
|
|
return;
|
|
}
|
|
|
|
SendMessageToPC(oPC,"You read the words on the script given to you by the old man in Brighthaven");
|
|
AssignCommand(oPC,SpeakString("Discuss ideas and spread them, so that all may see the divine light that is the Wonderbringer"));
|
|
|
|
object oAnvil=GetObjectByTag("jw_andros_anvil");
|
|
object oDiamond=GetItemPossessedBy(oAnvil,"jw_huge_dia");
|
|
if (!GetIsObjectValid(oDiamond))
|
|
{
|
|
SendMessageToPC(oPC,"Nothing happens - something seems to be missing");
|
|
return;
|
|
}
|
|
|
|
|
|
object oHeart=GetItemPossessedBy(oAnvil,"jw_blue_heart");
|
|
int nHeart=1;
|
|
|
|
if (!GetIsObjectValid(oHeart))
|
|
{
|
|
oHeart=GetItemPossessedBy(oAnvil,"jw_red_heart");
|
|
nHeart=2;
|
|
}
|
|
|
|
if (!GetIsObjectValid(oHeart))
|
|
{
|
|
oHeart=GetItemPossessedBy(oAnvil,"jw_green_heart");
|
|
nHeart=3;
|
|
}
|
|
|
|
if (!GetIsObjectValid(oHeart))
|
|
{
|
|
SendMessageToPC(oPC,"Nothing happens - something seems to be missing");
|
|
return;
|
|
}
|
|
|
|
object oEquip=GetItemPossessedBy(oAnvil,"jw_bright_splint");
|
|
string sMake="jw_a_splint";
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_bright_full");
|
|
sMake="jw_a_full";
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_bright_half");
|
|
sMake="jw_a_half";
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_bright_chain");
|
|
sMake="jw_a_chain";
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_bright_scale");
|
|
sMake="jw_a_scale";
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WAXMGR002");
|
|
sMake="jw_a_great"; //greataxe
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WAXMHN002");
|
|
sMake="jw_a_hand"; //handaxe
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WAXMBT002");
|
|
sMake="jw_a_battle"; //battleaxe
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSWMBS002");
|
|
sMake="jw_a_bast"; //bastard sword
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSWMLS002");
|
|
sMake="jw_a_long"; //longsword
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSWMDG002");
|
|
sMake="jw_a_dag"; //dagger
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSWMGS002");
|
|
sMake="jw_a_gswrd"; //greatsword
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSWMKA002");
|
|
sMake="jw_a_katana"; //katana
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSWRP002");
|
|
sMake="jw_a_rapier"; //rapier
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSWMSC002");
|
|
sMake="jw_a_scimi"; //scimitar
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSWMSS002");
|
|
sMake="jw_a_sswrd"; //shortsword
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBLMCL002");
|
|
sMake="jw_a_club"; //club
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBLMFH002");
|
|
sMake="jw_a_hflail"; //heavy flail
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBLMFL002");
|
|
sMake="jw_a_lflail"; //light flail
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBLMHL002");
|
|
sMake="jw_a_lham"; //light hammer
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBLMHW002");
|
|
sMake="jw_a_wham"; //war hammer
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBLMML002");
|
|
sMake="jw_a_mace"; //mace
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBLMMS002");
|
|
sMake="jw_a_morn"; //morningstar
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WDBMMA002");
|
|
sMake="jw_a_dmace"; //dire mace
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WDBMAX002");
|
|
sMake="jw_a_daxe"; //double axe
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WDBMQS002");
|
|
sMake="jw_a_qstaff"; //quarter staff
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WDBMSW002");
|
|
sMake="jw_a_twoblad"; //two bladed sword
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSPMKA002");
|
|
sMake="jw_a_kama"; //kama
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSPMKU002");
|
|
sMake="jw_a_kukri"; //kukri
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WSPMSC002");
|
|
sMake="jw_a_sickle"; //sickle
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WPLMHB002");
|
|
sMake="jw_a_halb"; //halberd
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WPLMSC002");
|
|
sMake="jw_a_scythe"; //halberd
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WPLMSS002");
|
|
sMake="jw_a_spear"; //spear
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBWMXH002");
|
|
sMake="jw_a_hcross"; //heavy crossbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBWMXL002");
|
|
sMake="jw_a_lcross"; //light crossbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBWMLN002");
|
|
sMake="jw_a_longb"; //long bow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBWMSH002");
|
|
sMake="jw_a_shortb"; //short bow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBWMSL001");
|
|
sMake="jw_a_sling"; //sling
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBWMLN010");
|
|
sMake="jw_a_compl"; //composite longbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"NW_WBWMSH010");
|
|
sMake="jw_a_comps"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_banded_plus3");
|
|
sMake="jw_tband"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"by_tbarbarian001");
|
|
sMake="jw_tbard"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_orcarme3");
|
|
sMake="jw_torc"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_drowceme3");
|
|
sMake="jw_tdrow"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"by_dwarvenwar011");
|
|
sMake="jw_tdwarf"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"fullplate_plus3");
|
|
sMake="jw_tfull"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"halfplate_plus3");
|
|
sMake="jw_thalf"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"splint_plus3");
|
|
sMake="jw_tsplint"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_thiriun_arm4");
|
|
sMake="jw_thin"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"ph_paddedarchtem");
|
|
sMake="jw_tarch"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"vi_westgatetem");
|
|
sMake="jw_terth"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_darkleth3");
|
|
sMake="jw_tshad"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_newlightt");
|
|
sMake="jw_toxe"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_corma_t");
|
|
sMake="jw_tcorm"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_bluelight_t");
|
|
sMake="jw_thap"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"nk_gobboarmorpl3");
|
|
sMake="jw_tgob"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"hide_plus3");
|
|
sMake="jw_thide"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"leather_plus3");
|
|
sMake="jw_tleth"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"nk_lgobboarmpl3");
|
|
sMake="jw_tlg"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"padded_plus3");
|
|
sMake="jw_tpad"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"studded_plus3");
|
|
sMake="jw_tstud"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_newy_armt");
|
|
sMake="jw_tamn"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"chainshirt_plus3");
|
|
sMake="jw_tchain"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_green_arm3");
|
|
sMake="jw_tfeth"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"jw_arch_arm3");
|
|
sMake="jw_tlad"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
oEquip=GetItemPossessedBy(oAnvil,"scale_plus3");
|
|
sMake="jw_tscale"; //composite shortbow
|
|
}
|
|
|
|
if (!GetIsObjectValid(oEquip))
|
|
{
|
|
SendMessageToPC(oPC,"Nothing happens - something seems to be missing");
|
|
return;
|
|
}
|
|
|
|
sMake=sMake+IntToString(nHeart);
|
|
|
|
DestroyObject(oHeart);
|
|
DestroyObject(oDiamond);
|
|
DestroyObject(oEquip);
|
|
|
|
object oLoot=CreateItemOnObject(sMake,oAnvil,1);
|
|
|
|
if (!GetIsObjectValid(oLoot))
|
|
{
|
|
SendMessageToAllDMs(GetName(oPC)+" has a problem with the Andros shrine, it failed to make "+sMake+" tell Palmer");
|
|
SendMessageToPC(oPC, "Sorry, you have a problem with the Andros shrine, it failed to make "+sMake+" tell Palmer and he'll give you the item and fix it.");
|
|
}
|
|
|
|
DelayCommand(0.3,ApplyEffectToObject(DURATION_TYPE_TEMPORARY,EffectVisualEffect(VFX_DUR_PROTECTION_GOOD_MAJOR),oAnvil,20.0));
|
|
DelayCommand(1.5,ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_SCREEN_SHAKE),oAnvil,10.0));
|
|
DelayCommand(1.5,ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_SUNBEAM),oAnvil,10.0));
|
|
}
|