Initial Upload
Initial Upload
This commit is contained in:
25
_module/nss/random_drop.nss
Normal file
25
_module/nss/random_drop.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
//RANDOM DROP
|
||||
// Ginge McDaggart
|
||||
void main()
|
||||
{
|
||||
object oNPC = OBJECT_SELF;
|
||||
object oItem = GetFirstItemInInventory(oNPC);
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if(GetDroppableFlag(oItem)== TRUE)
|
||||
{
|
||||
SetDroppableFlag(oItem, TRUE);
|
||||
}
|
||||
|
||||
if(GetDroppableFlag(oItem)== FALSE)
|
||||
{
|
||||
int bDroppable=d100()>65;
|
||||
SetDroppableFlag(oItem, bDroppable);
|
||||
}
|
||||
|
||||
oItem = GetNextItemInInventory(oNPC);
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user