All pastes #69725 Raw Edit

Someone

public text v1 · immutable
#69725 ·published 2006-06-23 11:14 UTC
rendered paste body
L2CubicInstance

doAction()
....
case VIPER_CUBIC:
                _actionTask = ThreadPoolManager.getInstance().scheduleEffectAtFixedRate(new Action(30),
                                                                                        0, 20000)

.......

private class Action implements Runnable
    {
        private int _chance;

        Action(int chance)
        {
            _chance = chance;
            // run task
        }
         ......
        if( if (Rnd.get(1, 100) < _chance))
         .....
         useSkill(....);