22 lines
528 B
Plaintext
22 lines
528 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC= GetLastAttacker();
|
||
|
int nDiceRoll = d100(1);
|
||
|
int nDiceRoll2 = d2(1);
|
||
|
if(nDiceRoll <= 50)
|
||
|
{
|
||
|
switch(nDiceRoll2){
|
||
|
|
||
|
case 1:
|
||
|
CreateItemOnObject("egg", GetLastAttacker(), 1);
|
||
|
FloatingTextStringOnCreature("*You get an egg*", oPC);
|
||
|
break;
|
||
|
case 2:
|
||
|
CreateItemOnObject("feather", GetLastAttacker(), 1);
|
||
|
CreateItemOnObject("feather", GetLastAttacker(), 1);
|
||
|
FloatingTextStringOnCreature("*You get some feathers*", oPC);
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|