27 lines
649 B
Plaintext
27 lines
649 B
Plaintext
|
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);
|
||
|
}
|