Aschbourne_PRC8/_module/ldf_calc.nss
GetOffMyYarn 8622e5ce08 Area Changes and other fixes
added areas and ccoh,
fixed some areas to work with crafting
fixed some on death issues
added server entry/ooc
2024-08-30 10:38:04 -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));
}