Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 18:13:22 -04:00
parent 684ef76c20
commit 499aba4eb3
5734 changed files with 4843758 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
void main()
{
object oSelf = OBJECT_SELF;
object oItem = GetFirstItemInInventory(oSelf);
int iChance = 50; //Percenatage of the time each item has a chance of dropping
do{
int iDroppable = GetDroppableFlag(oItem);
if (iDroppable == FALSE){
int iCopy = GetLocalInt(oItem, "copied");
if (iCopy == 0){
string sResref = GetResRef(oItem);
int id100 = d100(1);
if (id100 <= iChance){
object oItem2 = CreateItemOnObject(sResref, oSelf, 1);
}
}
}
if (iDroppable == TRUE){} //This is so it doesn't make addittional things that are already droppable
SetLocalInt(oItem, "copied", 1);
}while ((oItem = GetNextItemInInventory(oSelf)) != OBJECT_INVALID);
}