Aschbourne_PRC8/_module/nss/ldf_calc.nss
GetOffMyYarn 69879d6957 Areas and Fixes
Added CCOH and missing areas
Changed some areas to be craftable,
Fixed some on death issues,
Fixed the Gaurd
2024-08-30 11:38:44 -04:00

16 lines
628 B
Plaintext

#include "ld_forge"
void main()
{
AssignCommand(GetPCSpeaker(),ActionPauseConversation());
DelayCommand(3.0,AssignCommand(GetPCSpeaker(),ActionResumeConversation()));
int iCost = GetModCost(GetFirstItemInInventory(GetLocalObject(OBJECT_SELF,"Forge")),
GetLocalObject(OBJECT_SELF,"Forge"),
GetLocalObject(OBJECT_SELF,"Anvil"),
GetLocalString(OBJECT_SELF,"Mods"));
if(iCost < 0){SetLocalInt(OBJECT_SELF,"Refund",TRUE);}
if(GetLocalInt(OBJECT_SELF,"Visual")){iCost = 15;}
SetLocalInt(OBJECT_SELF,"Cost",iCost);
SetCustomToken(4500,IntToString(iCost));
}