Added ACP v4.1

Added ACP v4.1. Full compile.  Updated module name.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-09-08 18:23:43 -04:00
parent d8c9dd6e90
commit 4dba880acb
2690 changed files with 1034142 additions and 27131 deletions

View File

@@ -0,0 +1,46 @@
void IdentifyAll(object oItem, object oPC);
void main()
{
object oPC = GetPCSpeaker();
object oItem = GetNextItemInInventory(oPC);
if (GetGold(oPC) >= 2000)
{
AssignCommand(oPC, TakeGoldFromCreature(2000, oPC, TRUE));
IdentifyAll(oPC, oPC);
IdentifyAll(OBJECT_SELF, oPC);
}
else
{
SendMessageToPC(oPC, "You don't have enough gold to identify all of the items!");
}
}
void IdentifyAll(object oObject, object oPC)
{
object oItem = GetFirstItemInInventory(oPC);
while(oItem != OBJECT_INVALID)
{
if(!GetIdentified(oItem))
{
/*
SetIdentified(oItem, TRUE); // setting TRUE to get the true value of the item
nItemValue = GetGoldPieceValue(oItem);
SetIdentified(oItem, FALSE); // back to FALSE
if(nMaxValue >= nItemValue)
{
SetIdentified(oItem, TRUE);
SendMessageToPC(oPC, GetName(OBJECT_SELF) + " " + GetStringByStrRef(75930) + " " + GetName(oItem));
}
*/
SetIdentified(oItem, TRUE);
}
oItem = GetNextItemInInventory(oObject);
}
}