Module commit

Module commit.
This commit is contained in:
Jaysyn904
2024-06-14 10:48:20 -04:00
parent 079830314c
commit f5ffe7d0b9
11110 changed files with 4747686 additions and 0 deletions

15
_module/nss/ldf_calc.nss Normal file
View File

@@ -0,0 +1,15 @@
#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));
}