script fixes, additions to merchant

This commit is contained in:
EpicValor
2023-08-31 20:34:52 -05:00
parent e6bd2ef68d
commit eb5060ffdd
28 changed files with 2441 additions and 40 deletions

View File

@@ -0,0 +1,24 @@
void main()
{
object oNPC = OBJECT_SELF;
object oItem = GetFirstItemInInventory(oNPC);
while (GetIsObjectValid(oItem))
oItem = GetNextItemInInventory(oNPC);
{
if (GetDroppableFlag(oItem) == FALSE)
{
SetLocalInt (oItem, "notdroppable", 1);
}
if (GetLocalInt(oItem, "notdroppable") == 1)
{
//20% chance to drop item inventory not already set as droppable
//object oDrop = GetLocalObject(oItem, "notdroppable");
int bDroppable = d100()>50;
SetDroppableFlag(oItem, bDroppable);
}
}
}