Amon_PRC8/_module/nss/jewelsafe.nss

27 lines
649 B
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
int nDiceRoll = d100(1);
if(nDiceRoll <= 10)
{
CreateItemOnObject("RewardGold1", OBJECT_SELF, 1);
}
else if(nDiceRoll <= 20)
{
CreateItemOnObject("RewardGold2", OBJECT_SELF, 1);
}
else if(nDiceRoll <= 25)
{
CreateItemOnObject("RewardGold3", OBJECT_SELF, 1);
}
else if(nDiceRoll <= 30)
{
CreateItemOnObject("RewardGold4", OBJECT_SELF, 1);
}
ExecuteScript("lootgems", OBJECT_SELF);
ExecuteScript("lootgems", OBJECT_SELF);
ExecuteScript("lootgems", OBJECT_SELF);
ExecuteScript("lootgems", OBJECT_SELF);
ExecuteScript("lootgems", OBJECT_SELF);
DestroyObject(OBJECT_SELF);
}