Changed folder name.

Changed folder name.
This commit is contained in:
Jaysyn904
2022-10-07 21:08:37 -04:00
parent 1c33c2843e
commit 8d97886c3f
7060 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
//::///////////////////////////////////////////////
//:: Tailoring - Copy Cost
//:: tlr_copycost.nss
//:: Copyright (c) 2003 Jake E. Fitch
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Jake E. Fitch (Milambus Mandragon)
//:: Created On: March 9, 2004
//:://////////////////////////////////////////////
int StartingConditional()
{
object oPC = GetPCSpeaker();
object oNPCItem = GetItemInSlot(INVENTORY_SLOT_CHEST, OBJECT_SELF);
object oPCItem = GetItemInSlot(INVENTORY_SLOT_CHEST, oPC);
int iCost = GetGoldPieceValue(oNPCItem) + FloatToInt(IntToFloat(GetGoldPieceValue(oPCItem)) * 0.2f);
int iAC = GetItemACValue(oNPCItem);
string sOut = "Cost: " + IntToString(iCost) + " gold.\n";
sOut += "AC: " + IntToString(iAC) + "\n";
sOut += "(Note: You may only copy appearances that have the same AC value as your current clothing.)\n";
sOut += "\nDo you wish to continue with the purchase?";
SetCustomToken(9876, sOut);
return TRUE;
}