Amon_PRC8/_module/nss/tr_get_log_a.nss

23 lines
417 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 <= 50)
{
switch(nDiceRoll2){
case 1:
CreateItemOnObject("Log", GetLastAttacker(), 1);
break;
case 2:
CreateItemOnObject("ashlog", GetLastAttacker(), 1);
break;
case 3:
CreateItemOnObject("ashlog", GetLastAttacker(), 1);
break;
}
}
}