Module commit
Module commit.
This commit is contained in:
15
_module/nss/ldf_calc.nss
Normal file
15
_module/nss/ldf_calc.nss
Normal 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));
|
||||
}
|
Reference in New Issue
Block a user