ID:140197
 
Solution:
the while loop was not being called after the technique was performed. to counter this, make a seperate while proc and call the jutsu from that.
whats max cooldown set to ?

while works by replaying the code when the condition is true (any non zero/non null entry)
Format:
while( E ) Statement
If E is true (non-zero) execute Statement. Continue testing E and doing the while block until E becomes false (zero).

Statement may be a block of code or a single statement.

Example:
var/i = 3
while(i)
world << i--
This outputs:

3
2
1
In response to Zecronious
yes i did press f1 but according to it, what i did is not wrong.
In response to Pirion
maxcooldown is the actual cooldown of the jutsu. preview:

Bunshin
cooldown=20
maxcooldown=20

the while is meant to reduce the cooldown by 1 per second.

maxcooldown is realy just there to reset the cooldown when the move is done again.
In response to Rapmaster
if you move your test to right before where you excute the while loop to check src.cooldown is being set

In case it has been changed elsewhere or assigned to a different type you can check its giving a value correctly.




Just checking, This proc is under Bunshin?
In response to Pirion
no the proc is for all skills. and i thought of a way of doing it. ill repost if that fails.
In response to Rapmaster
The maxcooldown is 20 for Bunshin - what is the maxcooldown for players?
In response to Pirion
the proc is not a mob proc so src in this case is the Bunshin object.

Jutsus
proc/clicker()
//////////////////the code above.

Click()
clicker()


Bunshin
cooldown=20
maxcooldown=20

//techniques under the Jutsus Datum..if thats what its called.


You say it doesn't reach the inside of the while() loop, but does it even get TO the while() loop?