Here is a script that works great.It is by Scott Thorne.
Monsters steal some of your gold while lying unconcious .
Problem: They take to much.I tried to adjust but not sure I did it properly,here is the take gold part .I think they should only take 5% IMHO .It says it shouldnt take more than 1000 but my players say it takes like half or more.
void LootVictim(object oFoe, object oDying){ int iGold = GetGold(oDying); if(iGold > 9) { int iRnd = Random(iGold-1)+1; if(iRnd < 10) { iRnd == 10; } if(iRnd > 1000) { iRnd == 1000; //1000 gold max to steal } DelayCommand(2.0,AssignCommand(oFoe,ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW,1.0,6.0))); DelayCommand(6.0,AssignCommand(oFoe,TakeGoldFromCreature(iRnd,oDying))); DelayCommand(15.0,AssignCommand(oFoe,ActionRandomWalk())); } else { int iGold = GetGold(oDying)-1; int iRnd = Random(iGold)+1; DelayCommand(2.0,AssignCommand(oFoe,ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW,1.0,6.0))); DelayCommand(6.0,AssignCommand(oFoe,TakeGoldFromCreature(iRnd,oDying))); DelayCommand(15.0,AssignCommand(oFoe,ActionRandomWalk())); } }