Amon_PRC8/_module/nss/lootpotions.nss

99 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
int nCheck = d100(1);
if(nCheck <= 4)
{
CreateItemOnObject("Potion1", OBJECT_SELF, 1);
}
else if(nCheck <= 8)
{
CreateItemOnObject("Potion2", OBJECT_SELF, 1);
}
else if(nCheck <= 12)
{
CreateItemOnObject("Potion3", OBJECT_SELF, 1);
}
else if(nCheck <= 16)
{
CreateItemOnObject("Potion4", OBJECT_SELF, 1);
}
else if(nCheck <= 20)
{
CreateItemOnObject("Potion5", OBJECT_SELF, 1);
}
else if(nCheck <= 24)
{
CreateItemOnObject("Potion6", OBJECT_SELF, 1);
}
else if(nCheck <= 28)
{
CreateItemOnObject("Potion7", OBJECT_SELF, 1);
}
else if(nCheck <= 32)
{
CreateItemOnObject("Potion8", OBJECT_SELF, 1);
}
else if(nCheck <= 36)
{
CreateItemOnObject("Potion9", OBJECT_SELF, 1);
}
else if(nCheck <= 40)
{
CreateItemOnObject("Potion10", OBJECT_SELF, 1);
}
else if(nCheck <= 44)
{
CreateItemOnObject("Potion11", OBJECT_SELF, 1);
}
else if(nCheck <= 48)
{
CreateItemOnObject("Potion12", OBJECT_SELF, 1);
}
else if(nCheck <= 52)
{
CreateItemOnObject("Potion13", OBJECT_SELF, 1);
}
else if(nCheck <= 56)
{
CreateItemOnObject("Potion14", OBJECT_SELF, 1);
}
else if(nCheck <= 60)
{
CreateItemOnObject("Potion15", OBJECT_SELF, 1);
}
else if(nCheck <= 64)
{
CreateItemOnObject("Potion16", OBJECT_SELF, 1);
}
else if(nCheck <= 68)
{
CreateItemOnObject("Potion17", OBJECT_SELF, 1);
}
else if(nCheck <= 72)
{
CreateItemOnObject("Potion18", OBJECT_SELF, 1);
}
else if(nCheck <= 76)
{
CreateItemOnObject("Potion19", OBJECT_SELF, 1);
}
else if(nCheck <= 80)
{
CreateItemOnObject("Potion20", OBJECT_SELF, 1);
}
else if(nCheck <= 84)
{
CreateItemOnObject("Potion21", OBJECT_SELF, 1);
}
else if(nCheck <= 88)
{
CreateItemOnObject("Potion22", OBJECT_SELF, 1);
}
else if(nCheck <= 92)
{
CreateItemOnObject("Potion23", OBJECT_SELF, 1);
}
}