Redoing drop rates and other minor stuff
This commit is contained in:
@@ -1,25 +1,19 @@
|
||||
//RANDOM DROP
|
||||
// Ginge McDaggart
|
||||
void main()
|
||||
{
|
||||
object oNPC = OBJECT_SELF;
|
||||
object oItem = GetFirstItemInInventory(oNPC);
|
||||
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
if(GetDroppableFlag(oItem)== TRUE)
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
SetDroppableFlag(oItem, TRUE);
|
||||
}
|
||||
|
||||
if(GetDroppableFlag(oItem)== FALSE)
|
||||
{
|
||||
int bDroppable=d100()>65;
|
||||
SetDroppableFlag(oItem, bDroppable);
|
||||
}
|
||||
// if item set to droppable it will 100% drop
|
||||
if (GetDroppableFlag(oItem)== TRUE)
|
||||
{
|
||||
SetDroppableFlag(oItem, TRUE);
|
||||
}
|
||||
//10% chance of item in inventory being droppable if not marked droppable
|
||||
int bDroppable=d100()>90;
|
||||
|
||||
SetDroppableFlag(oItem, bDroppable);
|
||||
oItem = GetNextItemInInventory(oNPC);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user