Amon_PRC8/_module/nss/tr_get_egg.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

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;
}
}
}