Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2023-09-21 19:51:32 -04:00
parent 65b5bd7fd3
commit 102ba7dab6
6400 changed files with 5741850 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
int StartingConditional()
{
object oPC = GetPCSpeaker();
object oItem = GetFirstItemInInventory(oPC);
int nValue;
string sValue;
string sCost;
while (GetIsObjectValid(oItem))
{
if (GetLocalInt(oItem, "Prototype") == TRUE)
{
nValue = GetGoldPieceValue(oItem);
if (GetLocalString(oItem, "Type") == "Ammo") nValue = 99*nValue;
if (GetLocalString(oItem, "Type") == "Throwing" || GetLocalString(oItem, "Type") == "MightyThrowing") nValue = 50*nValue;
sValue = IntToString(nValue);
SetCustomToken(799, sValue);
sCost = IntToString(3*nValue/4);
SetCustomToken(800, sCost);
return TRUE;
}
oItem = GetNextItemInInventory(oPC);
}
return TRUE;
}