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())); } }
Bleed script help.
Débuté par
Knight_Shield
, mars 27 2011 10:19
#1
Posté 27 mars 2011 - 10:19
#2
Posté 27 mars 2011 - 10:47
iRnd == 1000;
change to
iRnd = 1000;
change to
iRnd = 1000;
#3
Posté 28 mars 2011 - 02:34
Shouldn't they also change:
iRnd == 10
to
iRnd = 10 ?
iRnd == 10
to
iRnd = 10 ?
#4
Posté 28 mars 2011 - 04:28
Baragg wrote...
Shouldn't they also change:
iRnd == 10
to
iRnd = 10 ?
Yes.
#5
Posté 29 mars 2011 - 01:05
Thanks guys I thought of that but wasnt sure.Even with the =1000 monster only takes 10% but I will definitely try =10. If you guys are someone else would like to see the whole script just let me know.





Retour en haut







