punisher19
2011-12-26 17:07:17
could someone give me an example of:
function FightNPC(Colors: TIntegerArray; Tol, TimeOut: Integer): Boolean;
thanks!
Nebula
2011-12-26 17:16:07
I'm not sure if this is right, but it's what is looks like to me.
FightNPC([123456,654321], 25, 7000);
123456 and 654321 are the colors of the monster you want to fight, 25 is the tolerance of the colors, and 7000 is the maximum amount of time it should take to kill the monster.
punisher19
2011-12-26 17:21:26
does this mean it is a color from 123456 till 654321?
because I can't find a color like this…
Nebula
2011-12-26 17:23:04
From: punisher19
does this mean it is a color from 123456 till 654321?
because I can't find a color like this…
No, you put whatever colors the monster is where 123456 and 654321 are. I just used those number as an example.
Basically FightNPC will find colors matching the colors you specify, then fight the monster until it is dead or the time you specify is over.
punisher19
2011-12-26 17:24:45
if my color is this: 2895440
How do I write it with the ","?
Jhangir
2011-12-26 17:28:30
He picked two numbers you should pick another color from the monster. Your thing should be like. FightNPC([2895440, Pick another color], 25, 7000);
Yanhua
2011-12-26 17:28:36
From: punisher19
if my color is this: 2895440
How do I write it with the ","?
If it is an Array, use [] around it even if there is only one colour.
If it is an integer just put the colour in there by itself and it will work.
Nebula
2011-12-26 17:29:45
FightNPC(2895440, 20, 14000);
That will Find the color 2895440 with a tolerance of 20, fight that monster until it is dead or 14 seconds is over.