23 lines
417 B
Plaintext
23 lines
417 B
Plaintext
|
|
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;
|
|
}
|
|
}
|
|
}
|