Amon_PRC8/_module/nss/tr_get_ores.nss

22 lines
419 B
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
object oPC= GetLastAttacker();
int nDiceRoll = d100(1);
int nDiceRoll2 = d3(1);
if(nDiceRoll <= 40)
{
switch(nDiceRoll2){
case 1:
CreateItemOnObject("", GetLastAttacker(), 1);
break;
case 2:
CreateItemOnObject("copperore", GetLastAttacker(), 1);
break;
case 3:
CreateItemOnObject("copperore", GetLastAttacker(), 1);
break;
}
}
}