22 lines
415 B
Plaintext
22 lines
415 B
Plaintext
void main()
|
|
{
|
|
object oPC= GetLastAttacker();
|
|
int nDiceRoll = d100(1);
|
|
int nDiceRoll2 = d3(1);
|
|
if(nDiceRoll <= 40)
|
|
{
|
|
switch(nDiceRoll2){
|
|
|
|
case 1:
|
|
CreateItemOnObject("ironore", GetLastAttacker(), 1);
|
|
break;
|
|
case 2:
|
|
CreateItemOnObject("ironore", GetLastAttacker(), 1);
|
|
break;
|
|
case 3:
|
|
CreateItemOnObject("", GetLastAttacker(), 1);
|
|
break;
|
|
}
|
|
}
|
|
}
|