Aller au contenu

Photo

Bleed script help.


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
 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()));        }    }

#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
iRnd == 1000;

change to

iRnd = 1000;

#3
Baragg

Baragg
  • Members
  • 271 messages
Shouldn't they also change:

iRnd == 10

to

iRnd = 10 ?

#4
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages

Baragg wrote...

Shouldn't they also change:

iRnd == 10

to

iRnd = 10 ?


Yes.

#5
Knight_Shield

Knight_Shield
  • Members
  • 444 messages
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.