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("hardlog", GetLastAttacker(), 1); break; case 3: CreateItemOnObject("hardlog", GetLastAttacker(), 1); break; } } }