Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2025-04-03 11:24:16 -04:00
parent 3ba3cf1b81
commit 5e558169a0
6086 changed files with 1502996 additions and 1 deletions

25
_module/nss/identify.nss Normal file
View File

@@ -0,0 +1,25 @@
#include "nw_i0_plot"
void main()
{
object oPC = GetPCSpeaker();
object oItem = GetFirstItemInInventory(oPC);
while (oItem != OBJECT_INVALID)
{
if(!GetIdentified(oItem))
{
if (GetGold(oPC) >= 100)
{
SetIdentified(oItem,TRUE);
TakeGold(100, oPC, TRUE);
SendMessageToPC(oPC, GetName(OBJECT_SELF) + " " + GetStringByStrRef(75930) + " " + GetName(oItem));
}
else
{
SendMessageToPC(oPC, "You do not have enough gold to identify items.");
return;
}
}
oItem = GetNextItemInInventory(oPC);
}
}